Liberty Unleashed

Scripting => Scripting Discussion => Topic started by: Tiberius on July 05, 2016, 10:09:52 pm

Title: function Remove() for GUI elements
Post by: Tiberius on July 05, 2016, 10:09:52 pm
Dear forum users. Somehow function Remove() for the GUI elements is not working and I want to ask you what else there are ways to remove GUI elements?

Sorry for this English, I used Google Translate.
Title: Re: function Remove() for GUI elements
Post by: Motley on July 06, 2016, 01:56:41 am
I think it's a little more simpler than that.

Typically you have your GUI window which is similar to
Code: [Select]
::Example_Window <- GUIWindow( VectorScreen( ScreenWidth - ( ScreenWidth / 1.5 ), ScreenHeight - ( ScreenHeight / 1.5 ) );

Which is correct.
The next call would be to place an code either in a command or withing a button or hotkey/bindkey.

The code for that would be
for showing the window
Code: [Select]
::Example_Window.Visible = true;
For disabling that window
Code: [Select]
::Example_Window.Visible = false;
If you have any more help please feel free to ask more,.
Title: Re: function Remove() for GUI elements
Post by: Tiberius on July 06, 2016, 02:06:55 pm
Mötley, thx for the answer. I think it's fine)