Mikali
#1
Is there a way to disable the newtaskbar GUI screen? I tried deleting most of its contents, but get an Access Violation when starting a mission. For my Mission Grid mod, between “missions” I want to design my own GUI and need to at the very least hide the newtaskbar so that it doesn’t interfere. Thanks.
[edit]
I also tried adding
visible = 0,
ignored = 1,
to the root element, but these parameters are ignored.
[edit]
Does the GUI have a Z-Index, so that I can make all screen elements be “below” my custom ones? Is there a way to ensure my GUI stays on “top”?
I could block all the default screens and prevent mouse clicks, but keyboard shortcuts still cause things like the Build menu to pop up on top.
Mikali
#2
I tried overriding the “keybindings.lua” file to see if I could change the bindings based on a variable, but the file only gets loaded when you start the game from the desktop, not between missions.
[edit]
I also tried these commands with no luck:
Universe_EnableCmd(0, eBuildManager)
Universe_EnableCmd(0, eLaunchManager)
Universe_EnableCmd(0, eResearchManager)
[edit]
These commands do work however:
UI_HideScreen("NewTaskbar")
UI_SetScreenEnabled("NewTaskbar", 0)
MainUI_DisableCommand(eBuildManager, 1)
MainUI_DisableCommand(eLaunchManager, 1)
MainUI_DisableCommand(eResearchManager, 1)
This means I can progress further with my mod.
2 Likes