View previous topic :: View next topic |
Author |
Message |
ostacro Newbie cheater Reputation: 0
Joined: 17 Aug 2011 Posts: 11 Location: Croatia
|
Posted: Mon Sep 05, 2011 4:29 am Post subject: hide/unhide panel box? |
|
|
Hi all
What I want is to have 2 separate panels with cheats.
The problem is that if both cheat panel boxes are shown, the trainer will consume most of monitor space, that's why I want to have a button for both panels that can hide/unhide panels, if you can understand me its like:
button that has width same as panel box but only little height, when you click on it, panel box expands, when you click on that button again panel box hides its self, same goes for 2. panel box
EDIT: its like spoiler tag on some forums
So is there any way to do this and how, the main problem is I don't know how to even start coding this cause I know very little in Lua scripting.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Mon Sep 05, 2011 6:15 am Post subject: |
|
|
use
control_setVisible(FORMNAME_PANELNAME, true) to make it visible
and
control_setVisible(FORMNAME_PANELNAME, false) to hide the panel
Of course replace formname and panelname with the appropriate names
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
ostacro Newbie cheater Reputation: 0
Joined: 17 Aug 2011 Posts: 11 Location: Croatia
|
Posted: Wed Sep 07, 2011 3:14 am Post subject: |
|
|
tnx for the help, will help me a lot
|
|
Back to top |
|
|
|