Jump to content

طلب dx


Recommended Posts

Posted
2 minutes ago, coNolel said:

dxDrawRectangle
isMouseInPosition
addEventHandler("onClientClick")
dxDrawText

 

isMouseInPosition

مب موجود بالويكي

Posted
41 minutes ago, +Source|> said:

طيب برضو عندي مشكله

 

كيف اسوي 

Progress DX

في يوزفل فنكشن موجود في الويكي اسمه

dxDrawProgressBar

او استخدم

dxDrawRectangle

 

  • Like 1
  • Confused 1
Posted
16 minutes ago, #_iMr,[E]coo said:

إذا ما تعرف تستخدم الدي إكس , 

وتكتكها ( "GUI" ) إستخدم صورة عآدية

المشكله انو انا اقدر اسوي الدي اكس في مكان محدد لكل الشاشات

 

لكن GUI

معرف اسويها الا بالنص بس

Posted
Just now, +Source|> said:

المشكله انو انا اقدر اسوي الدي اكس في مكان محدد لكل الشاشات

 

لكن GUI

معرف اسويها الا بالنص بس

دور بالقسم تلآقي فنكشنات تسآعدك , 

GUI , هذي سيئة ال

Posted

تفضل ذا اليوزفل كنت مسويه زمان استخدمه يوم اسوي سكربت دي اكس , 

للازرار

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

 

  • Thanks 1
  • Sad 1
Posted
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

 

لا تعطيه الجاهز :@

عيب تدمره كذا

Posted

ماعطيته شي جاهز ابداً الي مسويه انا يقدر يسويه من  ال guieditor 

انا سويت اليوزفل ذا لي زمان عشان يسهل علي

Posted
11 hours ago, +Source|> said:

المشكله انو انا اقدر اسوي الدي اكس في مكان محدد لكل الشاشات

 

لكن GUI

معرف اسويها الا بالنص بس

شبه الدي اكس و اسهل  Dgs والله الاسهل تستعمل مكتبة 

ذا راي تبي تكمل دي اكس براحتك

  • Like 1

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...