Jump to content

gui button disapears?


Recommended Posts

Yo, started to help here.

It's not invisible. The button is moved to back, and the window in front. This is because the button was not attached inside the window GUI.

The solution is simple, you need to attach it inside the GUI window.

Attribute: As the window is parent, the button must be the child.

But first I need your GUI functions, cause other problems than this is possible.

Link to comment
GUIEditor_TabPanel = {}
GUIEditor_Button = {}
 
CharScreen = guiCreateTabPanel(42,53,395,514,false)
CharTAB = guiCreateTab("Character Selection",CharScreen)
AccountTAB = guiCreateTab("Account Managment",CharScreen)
SettingsTAB = guiCreateTab("Settings",CharScreen)
CharSlot1 = guiCreateButton(53,120,375,105,"",false,Char_SelectionTAB)
guiSetVisible ( CharSlot1, true )
--[[
CharSlot2 = guiCreateButton(53,230,375,105,"",false,Char_SelectionTAB)
CharSlot3 = guiCreateButton(53,340,375,105,"",false,Char_SelectionTAB)
CharSlot4 = guiCreateButton(53,450,375,105,"",false,Char_SelectionTAB)
]]--
showCursor ( true )
addEventHandler ("onClientGUIClick", CharSlot1, move1)
addEventHandler ("onClientGUIClick", CharSlot1, HideCharScreen)
addEventHandler ("onClientGUIClick", CharSlot1, MakePed)

sooo how would that work?

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