Jump to content

x[ طلب ]x فانكشنات وأحداث مود لوحه الانتقالات


Mr.OppS

Recommended Posts

السلام عليكم
كيف الحال؟

لوحة  من اف2

الكود:

Client

function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Checkbox = {}
GUIEditor_Scrollbar = {}
wnd = guiCreateWindow(136,91,534,452,"Panel Car",false)
guiWindowSetSizable(wnd,false)
centerWindow(wnd)
GUIEditor_Label[1] = guiCreateLabel(11,28,505,30,"Information/",false,wnd)
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(29,50,505,30,"Name: ",false,wnd)
guiLabelSetColor(GUIEditor_Label[2],255,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(29,89,505,30,"Ping:",false,wnd)
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Label[61] = guiCreateLabel(60,89,505,30,"",false,wnd)
guiLabelSetColor(GUIEditor_Label[61],255,0,0)
guiSetFont(GUIEditor_Label[61],"default-bold-small")
GUIEditor_Label[5] = guiCreateLabel(29,110,505,30,"Serial:",false,wnd)
guiLabelSetColor(GUIEditor_Label[5],255,0,255)
guiSetFont(GUIEditor_Label[5],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(240,200,110,36,"Report",false,wnd)
Image = guiCreateStaticImage( 0, 0, 1920, 1200, "Photo.png", false ,wnd)
guiSetVisible(wnd,false)

bindKey("F2","down",
	function ()
		if guiGetVisible(wnd) then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
		else
			guiSetVisible(wnd,true)
			showCursor(true)
			guiSetInputEnabled(true)
		end
	end
)
chat = true
addEventHandler("onClientGUIClick",root,
	function ()
      if source == GUIEditor_Button[7] then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
			executeCommandHandler("report")
		end
	end
)

ابي اسوي 2 اضافة :/
1)  ماعرف كيف ض,لان هذا شاشتة الطول اكثير من العرض وهذا العرض اكثير من الطو ! وهذا مسوي لعبة حجم صغير والخخ(full Screen)الـوحـة تظهر بحجم شاشة كلها

2)  اذا تحدد بالماوس على اسم = تقدر تحرك الوحة,(panel Car) الوحة ثـابـتـة ! لاتتـحـرك,أعلى لوحة مكتوب اسم
3) (full Screen) انا ضايف بالوحة صورة ! بس اريد اخلي صورة بحجم شاشة كلها

شكراً

Link to comment
9 hours ago, Mr.OppS said:

السلام عليكم
كيف الحال؟

لوحة  من اف2

الكود:

Client


function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Checkbox = {}
GUIEditor_Scrollbar = {}
wnd = guiCreateWindow(136,91,534,452,"Panel Car",false)
guiWindowSetSizable(wnd,false)
centerWindow(wnd)
GUIEditor_Label[1] = guiCreateLabel(11,28,505,30,"Information/",false,wnd)
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(29,50,505,30,"Name: ",false,wnd)
guiLabelSetColor(GUIEditor_Label[2],255,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(29,89,505,30,"Ping:",false,wnd)
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Label[61] = guiCreateLabel(60,89,505,30,"",false,wnd)
guiLabelSetColor(GUIEditor_Label[61],255,0,0)
guiSetFont(GUIEditor_Label[61],"default-bold-small")
GUIEditor_Label[5] = guiCreateLabel(29,110,505,30,"Serial:",false,wnd)
guiLabelSetColor(GUIEditor_Label[5],255,0,255)
guiSetFont(GUIEditor_Label[5],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(240,200,110,36,"Report",false,wnd)
Image = guiCreateStaticImage( 0, 0, 1920, 1200, "Photo.png", false ,wnd)
guiSetVisible(wnd,false)

bindKey("F2","down",
	function ()
		if guiGetVisible(wnd) then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
		else
			guiSetVisible(wnd,true)
			showCursor(true)
			guiSetInputEnabled(true)
		end
	end
)
chat = true
addEventHandler("onClientGUIClick",root,
	function ()
      if source == GUIEditor_Button[7] then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
			executeCommandHandler("report")
		end
	end
)

ابي اسوي 2 اضافة :/
1)  ماعرف كيف ض,لان هذا شاشتة الطول اكثير من العرض وهذا العرض اكثير من الطو ! وهذا مسوي لعبة حجم صغير والخخ(full Screen)الـوحـة تظهر بحجم شاشة كلها

2)  اذا تحدد بالماوس على اسم = تقدر تحرك الوحة,(panel Car) الوحة ثـابـتـة ! لاتتـحـرك,أعلى لوحة مكتوب اسم
3) (full Screen) انا ضايف بالوحة صورة ! بس اريد اخلي صورة بحجم شاشة كلها

شكراً

مفهمت ول شي

Link to comment
10 hours ago, Source|> said:

مفهمت ول شي

^_^اوضح اكثير
1)  ماعرف كيف ض,لان هذا شاشتة الطول اكثير من العرض وهذا العرض اكثير من الطو ! وهذا مسوي لعبة حجم صغير والخخ(full Screen)الـوحـة تظهر بحجم شاشة كلها
الأكـواد المذكورة فى الأعلى^ خاصة بالوحة سيارات & تظهر الوحة من اف2
اذا تنسـخ الاكواد المذكورة بالأعلى ^ و تنشاء ملف"كلينت"وتجرب لوحة فى السيرفر المحلى ,' تـظهـر بهذا الشكل :- شوف صورة


1506628369812.png

الوحة تظهر بـمـنـتـصـف الشاشـة ! وبحجم مـتـوسط, تم وضع اطار بالون الاخضر الفاتح !!
,',',',',',',',',',',',',',',',',',',',','
(full Screen) أنـا اريد اسوي الوحـة تظهـر بحـجـم الشاشـة كلها
اذا شخص مسوي حجم اللعبة صغيرة(نافذة) او شخص شاشـتـه اطول او اصغر تناسبة !!
شوف هذة صورة ! يوجود اطار بالون الأخضر الفاتـح !! اريد اسوى اللوحة بنفس حـجـم اللون الاخضر
1506628369751.png


2)  اذا تحدد بالماوس على اسم = تقدر تحرك الوحة,(panel Car) الوحة ثـابـتـة ! لاتتـحـرك,أعلى لوحة مكتوب اسم
3) (full Screen) انا ضايف بالوحة صورة ! بس اريد اخلي صورة بحجم شاشة كلها

Link to comment
function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Checkbox = {}
GUIEditor_Scrollbar = {}
wnd = guiCreateWindow(136,91,534,452,"Panel Car",false)
guiWindowSetSizable(wnd,false)
centerWindow(wnd)
GUIEditor_Label[1] = guiCreateLabel(11,28,505,30,"Information/",false,wnd)
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(29,50,505,30,"Name: ",false,wnd)
guiLabelSetColor(GUIEditor_Label[2],255,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(29,89,505,30,"Ping:",false,wnd)
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Label[61] = guiCreateLabel(60,89,505,30,"",false,wnd)
guiLabelSetColor(GUIEditor_Label[61],255,0,0)
guiSetFont(GUIEditor_Label[61],"default-bold-small")
GUIEditor_Label[5] = guiCreateLabel(29,110,505,30,"Serial:",false,wnd)
guiLabelSetColor(GUIEditor_Label[5],255,0,255)
guiSetFont(GUIEditor_Label[5],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(240,200,110,36,"Report",false,wnd)
Image = guiCreateStaticImage( 0, 0, 1920, 1200, "Photo.png", false ,wnd)
guiSetVisible(wnd,false)

bindKey ( 'F2' , 'Down' , function ()
guiSetVisible ( wnd , not guiGetVisible ( wnd ) )
showCursor ( guiGetVisible ( wnd ) )
centerWindow (  )
end
)
addEventHandler("onClientGUIClick",root,
	function ()
      if source == GUIEditor_Button[7] then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
			executeCommandHandler("report")
		end
	end
)

try this :D .

Link to comment
4 minutes ago, MR.StoRm said:

function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Checkbox = {}
GUIEditor_Scrollbar = {}
wnd = guiCreateWindow(136,91,534,452,"Panel Car",false)
guiWindowSetSizable(wnd,false)
centerWindow(wnd)
GUIEditor_Label[1] = guiCreateLabel(11,28,505,30,"Information/",false,wnd)
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(29,50,505,30,"Name: ",false,wnd)
guiLabelSetColor(GUIEditor_Label[2],255,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(29,89,505,30,"Ping:",false,wnd)
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Label[61] = guiCreateLabel(60,89,505,30,"",false,wnd)
guiLabelSetColor(GUIEditor_Label[61],255,0,0)
guiSetFont(GUIEditor_Label[61],"default-bold-small")
GUIEditor_Label[5] = guiCreateLabel(29,110,505,30,"Serial:",false,wnd)
guiLabelSetColor(GUIEditor_Label[5],255,0,255)
guiSetFont(GUIEditor_Label[5],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(240,200,110,36,"Report",false,wnd)
Image = guiCreateStaticImage( 0, 0, 1920, 1200, "Photo.png", false ,wnd)
guiSetVisible(wnd,false)

bindKey ( 'F2' , 'Down' , function ()
guiSetVisible ( wnd , not guiGetVisible ( wnd ) )
showCursor ( guiGetVisible ( wnd ) )
centerWindow (  )
end
)
addEventHandler("onClientGUIClick",root,
	function ()
      if source == GUIEditor_Button[7] then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
			executeCommandHandler("report")
		end
	end
)

try this :D .

نفس شئ

Link to comment
function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Checkbox = {}
GUIEditor_Scrollbar = {}
wnd = guiCreateWindow(136,91,534,452,"Panel Car",false)
guiWindowSetSizable(wnd,false)
GUIEditor_Label[1] = guiCreateLabel(11,28,505,30,"Information/",false,wnd)
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(29,50,505,30,"Name: ",false,wnd)
guiLabelSetColor(GUIEditor_Label[2],255,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(29,89,505,30,"Ping:",false,wnd)
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Label[61] = guiCreateLabel(60,89,505,30,"",false,wnd)
guiLabelSetColor(GUIEditor_Label[61],255,0,0)
guiSetFont(GUIEditor_Label[61],"default-bold-small")
GUIEditor_Label[5] = guiCreateLabel(29,110,505,30,"Serial:",false,wnd)
guiLabelSetColor(GUIEditor_Label[5],255,0,255)
guiSetFont(GUIEditor_Label[5],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(240,200,110,36,"Report",false,wnd)
Image = guiCreateStaticImage( 0, 0, 1920, 1200, "Photo.png", false ,wnd)
guiSetVisible(wnd,false)

bindKey ( 'F2' , 'Down' , function ()
guiSetVisible ( wnd , not guiGetVisible ( wnd ) )
showCursor ( guiGetVisible ( wnd ) )
centerWindow (  )
end
)
addEventHandler("onClientGUIClick",root,
	function ()
      if source == GUIEditor_Button[7] then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
			executeCommandHandler("report")
		end
	end
)






 

Link to comment
4 minutes ago, MR.StoRm said:

function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Checkbox = {}
GUIEditor_Scrollbar = {}
wnd = guiCreateWindow(136,91,534,452,"Panel Car",false)
guiWindowSetSizable(wnd,false)
centerWindow(wnd)
GUIEditor_Label[1] = guiCreateLabel(11,28,505,30,"Information/",false,wnd)
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(29,50,505,30,"Name: ",false,wnd)
guiLabelSetColor(GUIEditor_Label[2],255,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(29,89,505,30,"Ping:",false,wnd)
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Label[61] = guiCreateLabel(60,89,505,30,"",false,wnd)
guiLabelSetColor(GUIEditor_Label[61],255,0,0)
guiSetFont(GUIEditor_Label[61],"default-bold-small")
GUIEditor_Label[5] = guiCreateLabel(29,110,505,30,"Serial:",false,wnd)
guiLabelSetColor(GUIEditor_Label[5],255,0,255)
guiSetFont(GUIEditor_Label[5],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(240,200,110,36,"Report",false,wnd)
Image = guiCreateStaticImage( 0, 0, 1920, 1200, "Photo.png", false ,wnd)
guiSetVisible(wnd,false)

bindKey ( 'F2' , 'Down' , function ()
guiSetVisible ( wnd , not guiGetVisible ( wnd ) )
showCursor ( guiGetVisible ( wnd ) )
centerWindow (  )
end
)
addEventHandler("onClientGUIClick",root,
	function ()
      if source == GUIEditor_Button[7] then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
			executeCommandHandler("report")
		end
	end
)

try this :D .

4 minutes ago, MR.StoRm said:

function centerWindow(center_window)
    local screenW,screenH=guiGetScreenSize()
    local windowW,windowH=guiGetSize(center_window,false)
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2
    guiSetPosition(center_window,x,y,false)
end
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Checkbox = {}
GUIEditor_Scrollbar = {}
wnd = guiCreateWindow(136,91,534,452,"Panel Car",false)
guiWindowSetSizable(wnd,false)
GUIEditor_Label[1] = guiCreateLabel(11,28,505,30,"Information/",false,wnd)
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(29,50,505,30,"Name: ",false,wnd)
guiLabelSetColor(GUIEditor_Label[2],255,255,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(29,89,505,30,"Ping:",false,wnd)
guiLabelSetColor(GUIEditor_Label[4],255,255,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
GUIEditor_Label[61] = guiCreateLabel(60,89,505,30,"",false,wnd)
guiLabelSetColor(GUIEditor_Label[61],255,0,0)
guiSetFont(GUIEditor_Label[61],"default-bold-small")
GUIEditor_Label[5] = guiCreateLabel(29,110,505,30,"Serial:",false,wnd)
guiLabelSetColor(GUIEditor_Label[5],255,0,255)
guiSetFont(GUIEditor_Label[5],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(240,200,110,36,"Report",false,wnd)
Image = guiCreateStaticImage( 0, 0, 1920, 1200, "Photo.png", false ,wnd)
guiSetVisible(wnd,false)

bindKey ( 'F2' , 'Down' , function ()
guiSetVisible ( wnd , not guiGetVisible ( wnd ) )
showCursor ( guiGetVisible ( wnd ) )
centerWindow (  )
end
)
addEventHandler("onClientGUIClick",root,
	function ()
      if source == GUIEditor_Button[7] then
			guiSetVisible(wnd,false)
			showCursor(false)
			guiSetInputEnabled(false)
			executeCommandHandler("report")
		end
	end
)





 

نفس شئ,ولكن صارت على اليسار ! قبل كانت فى منتصف الشاشة | الان اصبحت فى جهة اليسار

Link to comment
1 minute ago, #,+( _xiRoc[K]; > said:

جرب الفنكشن الي عطيت ياه لاتتوقع كل شي جاهز

اضغط على الفنكشن وشوف المثال

:? انت الذى يتوقع,تتوقع انى ماضغطت على فانكش وشوفت مثال توقعك خطأ

Link to comment
Just now, Mr.OppS said:

:? انت الذى يتوقع,تتوقع انى ماضغطت على فانكش وشوفت مثال توقعك خطأ

اي توقع ؟ '-'

المهم

سطر 13 استبدله بهذا : ._.

local sX, sY = guiGetScreenSize ( );

wnd = guiCreateWindow(0,0,sX,sY,"Panel Car",false);

 

Link to comment
5 minutes ago, #,+( _xiRoc[K]; > said:

اي توقع ؟ '-'

المهم

سطر 13 استبدله بهذا : ._.


local sX, sY = guiGetScreenSize ( );
wnd = guiCreateWindow(0,0,sX,sY,"Panel Car",false);

 

كفوؤو صارت :x مشكور ماقصرت

 


تبقى الان 2 طلب

2)  اذا تحـدد بالماوس على اسم = تقدر تحرك الوحة,(panel Car) الوحة ثـابـتـة ! لاتتـحـرك,أعلى لوحة مكتوب اسم
3) (full Screen) انا ضايف بالوحة صورة ! بس اريد اخلي صورة بحجم شاشة كلها

رقـم3=صور خلفية للوحة بنفس حجم اللوحة كلها

Link to comment
46 minutes ago, Mr.OppS said:

كفوؤو صارت :x مشكور ماقصرت

 


تبقى الان 2 طلب

2)  اذا تحـدد بالماوس على اسم = تقدر تحرك الوحة,(panel Car) الوحة ثـابـتـة ! لاتتـحـرك,أعلى لوحة مكتوب اسم
3) (full Screen) انا ضايف بالوحة صورة ! بس اريد اخلي صورة بحجم شاشة كلها

رقـم3=صور خلفية للوحة بنفس حجم اللوحة كلها

اذا تبي حبيب قلبي اللوحه  تتناسب مع جميع الشاشات بدون ما تخليها حجم الشاشه كامله تقدر تستخدم اليوزفل فنكشن حقي توني احطه بموضوع useful functions

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...