You can show and hide the Game UI unlimited times, but if your code/triggers hides the UI twice in a row without the UI being shown in between, the only thing that shows back up from there on out is the 2d art behind where the battlenet button goes.
Rollback Post to RevisionRollBack
Stuff I've worked on: Carbot's StarCrafts Mod (2014-present) StarCraft 2 Hotkey Trainer (2010) | Mineralz Evolution (2011+) | Dungeon Legacy (2013+) | Phoenix TLMC 4 Entry (2014) Assisted: City of Tempest (2012) | BarCraft (2013) | Poker Defense (2014) and a few more.
Show/Hide Game UI seems to have some hard-coded additional functionality like showing the credits.
Also I think I had a problem before with hiding multiple times and I think it worked again with showing again.
But I changed my code to hide/show only once per player which should be the general rule with that state (because of its strange behavior),
-> Don't do multiple show/hide Game UI for each player !
Yeah, it reacts to me showing the first time by having the baground for the b.net button show up, and the second time nothing (and thats showing twice after hiding only twice.)
Rollback Post to RevisionRollBack
Stuff I've worked on: Carbot's StarCrafts Mod (2014-present) StarCraft 2 Hotkey Trainer (2010) | Mineralz Evolution (2011+) | Dungeon Legacy (2013+) | Phoenix TLMC 4 Entry (2014) Assisted: City of Tempest (2012) | BarCraft (2013) | Poker Defense (2014) and a few more.
show/hide game UI stores the game UI state at the moment of hiding, so if you hide it twice it is stored as hidden instead of leaving it as it is, Show game UI doesn't work then anymore. Going into cinematic mode also calls this trigger, so if your UI is hidden when cinematic mode starts then it loses the correct hiding settings.
Best fix is to create an action definition which sets the needed frames to show upon calling it. Also don't forget to reset the screenmode if needed.
below is the Show/Hide game UI action definition as it is shown in the trigger editor:
You can show and hide the Game UI unlimited times, but if your code/triggers hides the UI twice in a row without the UI being shown in between, the only thing that shows back up from there on out is the 2d art behind where the battlenet button goes.
Stuff I've worked on:
Carbot's StarCrafts Mod (2014-present) StarCraft 2 Hotkey Trainer (2010) | Mineralz Evolution (2011+) | Dungeon Legacy (2013+) | Phoenix TLMC 4 Entry (2014) Assisted: City of Tempest (2012) | BarCraft (2013) | Poker Defense (2014) and a few more.
Did you try to show it twice? (I am serious)
Show/Hide Game UI seems to have some hard-coded additional functionality like showing the credits.
Also I think I had a problem before with hiding multiple times and I think it worked again with showing again.
But I changed my code to hide/show only once per player which should be the general rule with that state (because of its strange behavior),
-> Don't do multiple show/hide Game UI for each player !
Yeah, it reacts to me showing the first time by having the baground for the b.net button show up, and the second time nothing (and thats showing twice after hiding only twice.)
Stuff I've worked on:
Carbot's StarCrafts Mod (2014-present) StarCraft 2 Hotkey Trainer (2010) | Mineralz Evolution (2011+) | Dungeon Legacy (2013+) | Phoenix TLMC 4 Entry (2014) Assisted: City of Tempest (2012) | BarCraft (2013) | Poker Defense (2014) and a few more.
There was also a thing where you set hide game UI then set cinematic mode on and set cinematic mode off and show game UI it WONT show.
pretty weird stuff.
Some UI show hide methods seem to use a increment/decrement counter in my experience.
show/hide game UI stores the game UI state at the moment of hiding, so if you hide it twice it is stored as hidden instead of leaving it as it is, Show game UI doesn't work then anymore. Going into cinematic mode also calls this trigger, so if your UI is hidden when cinematic mode starts then it loses the correct hiding settings.
Best fix is to create an action definition which sets the needed frames to show upon calling it. Also don't forget to reset the screenmode if needed.
below is the Show/Hide game UI action definition as it is shown in the trigger editor: