Author Topic: function Remove() for GUI elements  (Read 1614 times)

Tiberius

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
function Remove() for GUI elements
« 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.

Motley

  • Full Member
  • ***
  • Posts: 252
  • Karma: +32/-34
    • View Profile
Re: function Remove() for GUI elements
« Reply #1 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,.

Tiberius

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: function Remove() for GUI elements
« Reply #2 on: July 06, 2016, 02:06:55 pm »
Mötley, thx for the answer. I think it's fine)

 

© Liberty Unleashed Team.