Ulysses

General => Developers Corner => Topic started by: jakej78b on November 11, 2014, 10:26:10 PM

Title: Make XGUI close
Post by: jakej78b on November 11, 2014, 10:26:10 PM
Only if it is open. Possible? How?
Title: Re: Make XGUI close
Post by: Bryantdl7 on November 12, 2014, 07:51:28 AM
What do you mean?
Title: Re: Make XGUI close
Post by: Decicus on November 12, 2014, 10:58:30 AM
This is in the developer's corner for a reason. Pretty sure Jake is developing an addon or something similar and wants to know if he can close the XGUI using Lua.
Title: Re: Make XGUI close
Post by: Bryantdl7 on November 13, 2014, 02:01:45 PM
just typing the cvar xgui into console closes it so that could work
Title: Re: Make XGUI close
Post by: Stickly Man! on November 15, 2014, 09:29:18 AM
You can just call xgui.hide(), it should hide it if it's open. Alternatively, you can call RunConsoleCommand( "xgui", "hide" ), which should do the same thing.