Jump to content

إستفسار


EL-JoKeR

Recommended Posts

اذا ابي احط صورة مكان الـ Wnd

وش استخدم ؟

وهل اقدر اغير البوتن بصور ؟

تقدر تستخدم صوره كـ نافذة ، وتقدر تستخدم كود يحول النافذة الى صوره

هذا الكود:

function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "img.png", relative2 ) 
    local mainBackgroundLabel = guiCreateLabel ( 50, 0, 400, 100, titleBarText2, false, mainBackground ) 
    guiLabelSetColor ( mainBackgroundLabel, 255, 0, 0) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    guiBringToFront (mainBackground)     
    return mainBackground 
end 

. بخصوص تغير الزر الى صوره تقدر تسوي صوره كـ زر

Link to comment
شكرا لحن افدتني كتير

طيب ازاي اغير البوتن إلي صور ؟

بس لما احط الماوس عليه يجي صوره تاني لما ابعد الماوس يجي صوره تانية ؟

حيآك الله ، تقدر تستخدم الصوره كـ زر

يعني تسوي صوره بدل م تسوي زر واذ ظغط عليها ( كمل مودك )ء

بخصوص طلبكك"

'onClientMouseEnter' -- اذ لمس الصوره 
guiStaticImageLoadImage -- تتغير الصوره 
  
'onClientMouseLeave' -- اذ ابعد الماوس عن الصوره 
guiStaticImageLoadImage -- تتغير الصوره 

Link to comment
شكرا لحن افدتني كتير

طيب ازاي اغير البوتن إلي صور ؟

بس لما احط الماوس عليه يجي صوره تاني لما ابعد الماوس يجي صوره تانية ؟

حيآك الله ، تقدر تستخدم الصوره كـ زر

يعني تسوي صوره بدل م تسوي زر واذ ظغط عليها ( كمل مودك )ء

بخصوص طلبكك"

'onClientMouseEnter' -- اذ لمس الصوره 
guiStaticImageLoadImage -- تتغير الصوره 
  
'onClientMouseLeave' -- اذ ابعد الماوس عن الصوره 
guiStaticImageLoadImage -- تتغير الصوره 

شكرآ , اتمني ان اكون م ازعجتك

يسلمؤؤو :)

Link to comment
  • 2 weeks later...

تفضل هاذا الكود يتم تغير جميع الازرار الى صورهه

function guiCreateButton( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "img.png", relative2 ) 
    local mainBackgroundLabel = guiCreateLabel ( 50, 0, 400, 100, titleBarText2, false, mainBackground ) 
    guiLabelSetColor ( mainBackgroundLabel, 255, 0, 0) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    guiBringToFront (mainBackground)    
    return mainBackground 
end 

img.png -- اسم الصورهه ذذ

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