Jump to content

طلب كود


Recommended Posts

Posted

السلام عليكم ورحمه الله وبركاته

كيفكم شباب ان شاء الله بخير ..

المهممم

ابي كود لما أضغط على الزر أو أللمسه يصير لونه أحمر

ولما أبعد ألمؤشر عنه يرجع للون الافتراضي

وشكرا

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

onClientMouseEnter</p>\n<p>onClientMouseLeave

او اذا كنت تقصد اكواد dx

فإستخدم

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 

 

للتواصل سكايب : - justboyjb

Email : - [email protected]

Posted (edited)

addEventHandler ( "onClientMouseEnter", root, 
    function ( ) 
        if source == Button then 
            guiSetProperty(Button, "NormalTextColour", "FFFF0000"); 
        end 
    end 
) 
  

  
addEventHandler ( "onClientMouseLeave", root, 
    function ( ) 
        if source == Button then 
            guiSetProperty(Button, "NormalTextColour", "FFFFFFFF"); 
        end 
    end 
) 
Edited by Guest

"A Year from Now You May Wish You Had Started Today"

Posted
onClientMouseEnter<p>onClientMouseLeave

او اذا كنت تقصد اكواد dx

فإستخدم

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 

في طريقة اسهل للدي اكس يمديك تسوي زر عادي مو دي اكس وتخلي الشفافية 0 واعمل انه كل ما تدخل الماوس الزر يتغير الدي اكس

الفنكشنات

  
guiSetAlpha 
onClientMouseEnter 
onClientMouseLeave 
  

BACK!

هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك

Posted
onClientMouseEnter<p>onClientMouseLeave

او اذا كنت تقصد اكواد dx

فإستخدم

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 

في طريقة اسهل للدي اكس يمديك تسوي زر عادي مو دي اكس وتخلي الشفافية 0 واعمل انه كل ما تدخل الماوس الزر يتغير الدي اكس

الفنكشنات

  
guiSetAlpha 
onClientMouseEnter 
onClientMouseLeave 
  

كلامك خطأ هو ما قال شئ عن الدي اكس وسفاح عطاه الكود خلاص :roll:

[9MoD] - Car Wars / Shooter / DM / DD / Race KSA BH سيرفر صمود لحرب السيارات

IP : mtasa://51.254.116.69:22103

Posted

انتم ما فهمتو قصدي

#unknown

عطاه كود للدي اكس اذا بسوي دي اكس

انا اعرف طريقه اسهل وكتبتها

BACK!

هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك

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