Jump to content

Recommended Posts

Posted

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

مساكم الله بالخير يالربع

ياشباب انا بغير شكل الزر

ابي احط بداله صوره

مثل زر اغلاق النافذه X

احط بداله صوره واذا ضغطت الصوره تتقفل النافذه

Posted (edited)

سو صورهـ بدال الزر

guiCreateStaticImage 

  
  
function Wnd() 
           
   guiSetVisible(Window, false) 
             
    showCursor(false) 
        
 end 
        
 addEventHandler("onClientGUIClick", Button , Wnd, false) 

^ كود يغلق نافذتكـ

Edited by Guest
Posted

تسوي الصورهـ

+

  
-------- 
--- client side 
-------- 
  
  
function onGuiClick (button, state, absoluteX, absoluteY) 
if ( source ==  اسم الصورهـ ) then  
guiSetVisible(اسم النافذهـ, not guiGetVisible(اسم النافذهـ)) 
showCursor(guiGetVisible(اسم النافذهـ)) 
 end 
end  
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

Posted

ياشباب انا ابي اخلي الزر يتحرك

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
الشراع من فوق لتحت ؟

صبر اجيبلك مثال

شوف اول ثنيتين

setTimer 
-- تحريك النافذة 
guiSetPosition 
guiGetPosition 
-- اخفاء النافذة بالتدريج 
guiSetAlpha 
guiGetAlpha 
-- تغير حجم النافذة  
guiSetSize 
guiGetSize 

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