Jump to content

Recommended Posts

Posted

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

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

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

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

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

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

اسمي القديم

sultanalbalawi

Posted (edited)

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

guiCreateStaticImage 

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

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

Edited by Guest

  

Posted

guiCreateStaticImage - تسوي صورة ثم

onClientGUIClick - عند الضغط على الصورة

guiSetVisible - تقفل النافذة

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted

تسوي الصورهـ

+

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

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
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 
) 

جربت هاذا بس ظبط بس المشكله انه يخلي الزر كل ماضغطه يصغر

اسمي القديم

sultanalbalawi

Posted
الشراع من فوق لتحت ؟

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

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

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

n-560x95_008CFF_FFA500_000000_000000.png

Skype : kshksh871

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