فتى تبوك Posted December 17, 2012 Posted December 17, 2012 السلام عليكم ورحمة الله وبركاته مساكم الله بالخير يالربع ياشباب انا بغير شكل الزر ابي احط بداله صوره مثل زر اغلاق النافذه X احط بداله صوره واذا ضغطت الصوره تتقفل النافذه
iPrestege Posted December 17, 2012 Posted December 17, 2012 (edited) سو صورهـ بدال الزر guiCreateStaticImage function Wnd() guiSetVisible(Window, false) showCursor(false) end addEventHandler("onClientGUIClick", Button , Wnd, false) ^ كود يغلق نافذتكـ Edited December 17, 2012 by Guest
abu5lf Posted December 17, 2012 Posted December 17, 2012 guiCreateStaticImage - تسوي صورة ثم onClientGUIClick - عند الضغط على الصورة guiSetVisible - تقفل النافذة
TD[M]ER Posted December 17, 2012 Posted December 17, 2012 تسوي الصورهـ + -------- --- client side -------- function onGuiClick (button, state, absoluteX, absoluteY) if ( source == اسم الصورهـ ) then guiSetVisible(اسم النافذهـ, not guiGetVisible(اسم النافذهـ)) showCursor(guiGetVisible(اسم النافذهـ)) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
فتى تبوك Posted December 17, 2012 Author Posted December 17, 2012 ياشباب انا ابي اخلي الزر يتحرك addEventHandler( "onClientMouseEnter", getRootElement(), function() if source == Button then anim = Animation.createAndPlay( source, Animation.presets.guiPulse(1000) ) end end ) addEventHandler("onClientMouseLeave", root, function() if source == Button then anim:Pause() end end ) جربت هاذا بس ظبط بس المشكله انه يخلي الزر كل ماضغطه يصغر
فتى تبوك Posted December 17, 2012 Author Posted December 17, 2012 طآلع في مكتبه الانمي زين بتعرف الحل وش تقول
[S.R]==|>K$hK$h Posted December 18, 2012 Posted December 18, 2012 الشراع من فوق لتحت ؟ صبر اجيبلك مثال شوف اول ثنيتين setTimer -- تحريك النافذة guiSetPosition guiGetPosition -- اخفاء النافذة بالتدريج guiSetAlpha guiGetAlpha -- تغير حجم النافذة guiSetSize guiGetSize
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