Jump to content

طلب كود


Recommended Posts

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

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

المهممم

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

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

وشكرا

Link to comment

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 

Link to comment

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
Link to comment
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 
  

Link to comment
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:

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