Jump to content

[resolved]The button doesn't open the window?


Turbesz

Recommended Posts

i created a button, button is working, but doesn't open the window

code:

local GUIEditor = { 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.button[1] = guiCreateButton(485, 0, 499, 23, "Információs panel megnyitásához kattints ide!", false) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")     
    end 
) 
  
local GUIEditorr = { 
    window = {} 
    buttonn = {} 
} 
addEventHandler("onClientGUIClick", GUIEditor.button[1], root 
GUIEditor.window[1] = guiCreateWindow(292, 127, 868, 583, "[FullFunPlay] INFORMÁCIÓS PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF35FE9D") 
GUIEditor.memo[1] = guiCreateMemo(9, 28, 849, 485, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.button[1] = guiCreateButton(9, 521, 425, 52, "ELFOGADOM A LEÍRTAKAT, ÉS EGYET ÉRTEK VELÜK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF24FE00") 
GUIEditor.button[2] = guiCreateButton(443, 522, 415, 51, "NEM FOGADOM EL A LEÍRTAKAT, ÉS NEM ÉRTEK EGYET VELÜK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000")     
) 

Edited by Guest
Link to comment
     bb = guiCreateButton(485, 0, 499, 23, "Információs panel megnyitásához kattints ide!", false) 
        guiSetProperty(bb, "NormalTextColour", "FFFF0000")     
guiSetVisible(bb,true) 
local GUIEditor = { 
    window = {}, 
    button = {}, 
    memo = {}, 
} 
  
GUIEditor.window[1] = guiCreateWindow(292, 127, 868, 583, "[FullFunPlay] INFORMÁCIÓS PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF35FE9D") 
GUIEditor.memo[1] = guiCreateMemo(9, 28, 849, 485, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.button[1] = guiCreateButton(9, 521, 425, 52, "ELFOGADOM A LEÍRTAKAT, ÉS EGYET ÉRTEK VELÜK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF24FE00") 
GUIEditor.button[2] = guiCreateButton(443, 522, 415, 51, "NEM FOGADOM EL A LEÍRTAKAT, ÉS NEM ÉRTEK EGYET VELÜK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000")     
  
guiSetVisible(GUIEditor.window[1],false) 
  
  
addEventHandler("onClientGUIClick",root,  
function () 
  
if source == bb then  
  
guiSetVisible(GUIEditor.window[1],true) 
  
  
end 
  
end 
  
) 

Link to comment
     bb = guiCreateButton(485, 0, 499, 23, "Információs panel megnyitásához kattints ide!", false) 
        guiSetProperty(bb, "NormalTextColour", "FFFF0000")     
guiSetVisible(bb,true) 
local GUIEditor = { 
    window = {}, 
    button = {}, 
    memo = {}, 
} 
  
GUIEditor.window[1] = guiCreateWindow(292, 127, 868, 583, "[FullFunPlay] INFORMÁCIÓS PANEL | TELJESEN TURBESZ ÁLTAL", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF35FE9D") 
GUIEditor.memo[1] = guiCreateMemo(9, 28, 849, 485, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.button[1] = guiCreateButton(9, 521, 425, 52, "ELFOGADOM A LEÍRTAKAT, ÉS EGYET ÉRTEK VELÜK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF24FE00") 
GUIEditor.button[2] = guiCreateButton(443, 522, 415, 51, "NEM FOGADOM EL A LEÍRTAKAT, ÉS NEM ÉRTEK EGYET VELÜK", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000")     
  
guiSetVisible(GUIEditor.window[1],false) 
  
  
addEventHandler("onClientGUIClick",root,  
function () 
  
if source == bb then  
  
guiSetVisible(GUIEditor.window[1],true) 
  
  
end 
  
end 
  
) 

many thanks :D

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