Jump to content

طلب كود اغلاق الوندو


Recommended Posts

._. ترى ااغلاق الويندو في البند كي

يعني لو مثلا انت حطيت البند كي والكود ماله يغلق اللوحه ._. وتفتحها

مثلا

local Key = "F1" 

._. = { 
    staticimage = {}, 
    label = {}, 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
  
GiveAdmin.window[1] = guiCreateWindow(245, 137, 280, 344, "test", false) 
guiWindowSetSizable(GiveAdmin.window[1], false) 
guiSetAlpha(GiveAdmin.window[1], 1.00) 
guiSetProperty(GiveAdmin.window[1], "CaptionColour", "FF03D7F7") 
  

bindKey(Key,"down", 
function () 
    guiSetVisible(GiveAdmin.window[1],not guiGetVisible(GiveAdmin.window[1])) 
    showCursor(guiGetVisible(GiveAdmin.window[1])) 
     if ( guiGetVisible(GiveAdmin.window[1]) == true ) then 
             guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
               end 
end 
) 
  
guiSetVisible (GiveAdmin.window[1],false) 

Link to comment

طيب عطه مثال على على اخفاء اللوحة

مب على الليبل وتغير لون الليبل

بالنسبة لصاحب الموضوع

مثلا تبي اذا لمس المارركر تخفي له اللوحة

بس عليك بهذا السطرين

guiSetVisible ( GUIEditor.window[1] ,false) 
    showCursor ( false) 

بس عليك تضيف حدث لمس الماركر او الي تبيه عشان يخفي اللوحة !

GUIEditor.window[1] == اسم اللوحة حقتك استبدلها بها

Link to comment
function showGui () 
guiSetVisible (win, not guiGetVisible (win)) 
showCursor( not isCursorShowing()) 
end 
--Event 

وش ذي الخربيط ~_~

اطرح كود + وين اخلي الوندو + البوتون ؟؟ ~_~

انت طلبت كود فتح واغلاق النافذ, ماطلبت وندو وزر

مافهمنا وش تبي بـ الضبط

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