coNolel Posted August 14, 2018 Posted August 14, 2018 dxDrawRectangle isMouseInPosition addEventHandler("onClientClick") dxDrawText
+Source|> Posted August 14, 2018 Author Posted August 14, 2018 2 minutes ago, coNolel said: dxDrawRectangle isMouseInPosition addEventHandler("onClientClick") dxDrawText isMouseInPosition مب موجود بالويكي
^iiEcoo'x_) Posted August 14, 2018 Posted August 14, 2018 11 minutes ago, +Source|> said: isMouseInPosition مب موجود بالويكي شوف : isCursorInPosition
Rockyz Posted August 14, 2018 Posted August 14, 2018 19 minutes ago, +Source|> said: isMouseInPosition مب موجود بالويكي يوزفل فنكشن 1
+Source|> Posted August 14, 2018 Author Posted August 14, 2018 1 hour ago, #,xiRocKyz said: يوزفل فنكشن طيب برضو عندي مشكله كيف اسوي Progress DX 1
Doffy Posted August 15, 2018 Posted August 15, 2018 41 minutes ago, +Source|> said: طيب برضو عندي مشكله كيف اسوي Progress DX في يوزفل فنكشن موجود في الويكي اسمه dxDrawProgressBar او استخدم dxDrawRectangle 1 1
^iiEcoo'x_) Posted August 15, 2018 Posted August 15, 2018 إذا ما تعرف تستخدم الدي إكس , وتكتكها ( "GUI" ) إستخدم صورة عآدية
+Source|> Posted August 15, 2018 Author Posted August 15, 2018 16 minutes ago, #_iMr,[E]coo said: إذا ما تعرف تستخدم الدي إكس , وتكتكها ( "GUI" ) إستخدم صورة عآدية المشكله انو انا اقدر اسوي الدي اكس في مكان محدد لكل الشاشات لكن GUI معرف اسويها الا بالنص بس
^iiEcoo'x_) Posted August 15, 2018 Posted August 15, 2018 Just now, +Source|> said: المشكله انو انا اقدر اسوي الدي اكس في مكان محدد لكل الشاشات لكن GUI معرف اسويها الا بالنص بس دور بالقسم تلآقي فنكشنات تسآعدك , GUI , هذي سيئة ال
Trefeor Posted August 15, 2018 Posted August 15, 2018 تفضل ذا اليوزفل كنت مسويه زمان استخدمه يوم اسوي سكربت دي اكس , للازرار function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function drawButton ( x,y,w,h , text , postgui ) local color = ( isMouseInPosition ( x , y , w , h ) and tocolor(119,119,119,200) or tocolor(0,0,0,200) ) if ( isMouseInPosition ( x,y,w,h ) and getKeyState ( "mouse1" ) ) then color = tocolor(199,199,199,255) end dxDrawRectangle ( x , y , w , h , color , ( postgui or false ) ) dxDrawText ( text , x , y , w + x , h + y , tocolor(255,255,255,255) , 1 , "default-bold" , "center" , "center" , false , false , ( postgui or false ) ) end 1 1
coNolel Posted August 15, 2018 Posted August 15, 2018 8 hours ago, Trefeor said: تفضل ذا اليوزفل كنت مسويه زمان استخدمه يوم اسوي سكربت دي اكس , للازرار function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function drawButton ( x,y,w,h , text , postgui ) local color = ( isMouseInPosition ( x , y , w , h ) and tocolor(119,119,119,200) or tocolor(0,0,0,200) ) if ( isMouseInPosition ( x,y,w,h ) and getKeyState ( "mouse1" ) ) then color = tocolor(199,199,199,255) end dxDrawRectangle ( x , y , w , h , color , ( postgui or false ) ) dxDrawText ( text , x , y , w + x , h + y , tocolor(255,255,255,255) , 1 , "default-bold" , "center" , "center" , false , false , ( postgui or false ) ) end لا تعطيه الجاهز :@ عيب تدمره كذا
Trefeor Posted August 15, 2018 Posted August 15, 2018 ماعطيته شي جاهز ابداً الي مسويه انا يقدر يسويه من ال guieditor انا سويت اليوزفل ذا لي زمان عشان يسهل علي
[T]|O|[P]George Posted August 15, 2018 Posted August 15, 2018 11 hours ago, +Source|> said: المشكله انو انا اقدر اسوي الدي اكس في مكان محدد لكل الشاشات لكن GUI معرف اسويها الا بالنص بس شبه الدي اكس و اسهل Dgs والله الاسهل تستعمل مكتبة ذا راي تبي تكمل دي اكس براحتك 1
Trefeor Posted August 15, 2018 Posted August 15, 2018 dgs مسويها بالدي اكس صاحبها ولاكن هو مسويها زي وظائف الـ GUI تقريباً .
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now