HsSoN Posted April 3, 2013 Share Posted April 3, 2013 (edited) سلام عليكم ً أبي كود لتبديل صور مثلا أبيه لمود قوانين وإذا ضغط على صوره تجي ثانيه Edited April 3, 2013 by Guest Link to comment
jafar Posted April 3, 2013 Share Posted April 3, 2013 مشكور. + addEventHandler "onClientGUIClick" Link to comment
فاّرس Posted April 3, 2013 Share Posted April 3, 2013 addEventHandler ( "onClientGUIClick", root, function ( ) if source == ButtonChange then if Image then guiStaticImageLoadImage ( Images, "English.png" ) Image = false else guiStaticImageLoadImage ( Images, "Arabic.png" ) Image = true end end end ) Link to comment
HsSoN Posted April 3, 2013 Author Share Posted April 3, 2013 addEventHandler("onClientGUIClick",صوره) كذا صح Link to comment
iPrestege Posted April 3, 2013 Share Posted April 3, 2013 addEventHandler ( "onClientGUIClick", root, function ( ) if source == ButtonChange then if Image then guiStaticImageLoadImage ( Images, "English.png" ) Image = false else guiStaticImageLoadImage ( Images, "Arabic.png" ) Image = true end end end ) 3NAD Copy right's? Link to comment
HsSoN Posted April 3, 2013 Author Share Posted April 3, 2013 addEventHandler ( "onClientGUIClick", root, function ( ) if source == ButtonChange then if Image then guiStaticImageLoadImage ( Images, "English.png" ) Image = false else guiStaticImageLoadImage ( Images, "Arabic.png" ) Image = true end end end ) خخخخخخ ما يحتاج لازم نعتمد على نفسنا Link to comment
فاّرس Posted April 3, 2013 Share Posted April 3, 2013 addEventHandler ( "onClientGUIClick", root, function ( ) if source == ButtonChange then if Image then guiStaticImageLoadImage ( Images, "English.png" ) Image = false else guiStaticImageLoadImage ( Images, "Arabic.png" ) Image = true end end end ) 3NAD Copy right's? آنآ ما قلت عناد ما سواه لي + من بعد ما سواه لي صرت اعرف اسويه + ما نسخته اصلا مدري وين الموضوع الي عطاني فيه الكود Link to comment
jafar Posted April 3, 2013 Share Posted April 3, 2013 addEventHandler("onClientGUIClick",صوره) كذا صح addEventHandler("onClientGUIClick",صوره function() -- الوظيفة end,false) Link to comment
iPrestege Posted April 3, 2013 Share Posted April 3, 2013 عموما كودك غلط : Button = guiCreateButton(....); Pic = guiCreateStaticImage(....); local load = load addEventHandler("onClientGUIClick",Button, function ( ) if not ( load ) then guiStaticImageLoadImage ( Pic, "1.png" ); load = not load; else guiStaticImageLoadImage ( Pic, "2.png" ); load = not load; end; end,false ); Link to comment
فاّرس Posted April 3, 2013 Share Posted April 3, 2013 عموما كودك غلط : Button = guiCreateButton(....); Pic = guiCreateStaticImage(....); local load = load addEventHandler("onClientGUIClick",Button, function ( ) if not ( load ) then guiStaticImageLoadImage ( Pic, "1.png" ); load = not load; else guiStaticImageLoadImage ( Pic, "2.png" ); load = not load; end; end,false ); جربه وبعدين قول خطأ انا مجربه شغال,, Link to comment
yazan Posted April 3, 2013 Share Posted April 3, 2013 (edited) GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/1.png",false) GUIEditor_Image[2] = guiCreateStaticImage(444,125,256,306,"images/2.png",false) addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Image[1] ) then guiSetVisible(GUIEditor_Image[1],false) guiSetVisible(GUIEditor_Image[2],true) elseif ( source == GUIEditor_Image[2] ) then guiSetVisible(GUIEditor_Image[2],false) guiSetVisible(GUIEditor_Image[1],true) end end) Edited April 4, 2013 by Guest Link to comment
jafar Posted April 3, 2013 Share Posted April 3, 2013 GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/1.png",false)GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/2.png",false) addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Image[1] ) then guiSetVisible(GUIEditor_Image[1],false) guiSetVisible(GUIEditor_Image[2],true) elseif ( source == GUIEditor_Image[2] ) then guiSetVisible(GUIEditor_Image[2],false) guiSetVisible(GUIEditor_Image[1],true) end end) Link to comment
yazan Posted April 3, 2013 Share Posted April 3, 2013 GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/1.png",false)GUIEditor_Image[2] = guiCreateStaticImage(444,125,256,306,"images/2.png",false) addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Image[1] ) then guiSetVisible(GUIEditor_Image[1],false) guiSetVisible(GUIEditor_Image[2],true) elseif ( source == GUIEditor_Image[2] ) then guiSetVisible(GUIEditor_Image[2],false) guiSetVisible(GUIEditor_Image[1],true) end end) بقلي ثانيه طارح الكود ما لحقت ههههه Link to comment
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