Page 1 of 1
Disable the default FPS HUD
Posted: 03 Jun 2009, 17:44
by Anarchid
Before filing a feature request, i thought i'd ask first if this is somewhere around and i just missed that.
The idea is simple: i already can detect when a unit is direct-controlled, and with that i can enforce the use of direct-control thingy by giving units various combat bonuses for being fps'ed as well as possibly drawing some slick HUD with blackjack and bitches. However, with the latter case, the default HUD with colored vector lines and crosshairs still remains in place.
So: can i disable it? And if, then how?
Re: Disable the default FPS HUD
Posted: 03 Jun 2009, 18:29
by Tribulexrenamed
Personally, I knock out the whole gui and draw directly on the world. This works for what I have to do... maybe its good for you too?
Re: Disable the default FPS HUD
Posted: 03 Jun 2009, 18:41
by jK
check the docs folder of your spring install it contains a file named cmds.txt
Re: Disable the default FPS HUD
Posted: 03 Jun 2009, 19:15
by Anarchid
/fpshud 0 ftw
Thx for that one

Re: Disable the default FPS HUD
Posted: 03 Jun 2009, 20:13
by Anarchid
Oh.
I tried both /fpshud 0 and killing all gui.
The default crosshairs stay

Re: Disable the default FPS HUD
Posted: 03 Jun 2009, 20:28
by Argh
/cross doesn't kill it?
Re: Disable the default FPS HUD
Posted: 03 Jun 2009, 20:55
by Anarchid
Hmm, i missed that one. However, it only kills the mouse cross, not the aiming crosshairs for the guns.
Re: Disable the default FPS HUD
Posted: 03 Jun 2009, 22:28
by zwzsg
Sometimes the following works:
function gadget:DrawScreen()
Spring.SetMouseCursor("none")
end
Re: Disable the default FPS HUD
Posted: 04 Jun 2009, 10:44
by Anarchid
Spring.SetMouseCursor("none")
Now
that just disables the mouse cursor, leaving both the mouse cross and the default aiming sights intact >.<
Eh, seems this won't be around until the next spring comes out.
Re: Disable the default FPS HUD
Posted: 07 Jun 2009, 20:01
by zwzsg
What is very special, is that Spring.SetMouseCursor("none") works where the interface is shown, but not when the interface is hidden (F5).
Re: Disable the default FPS HUD
Posted: 08 Jun 2009, 10:51
by Anarchid
It works on the mouse
cursor, that it does.
It doesn't do anything about the
crosshair (the + in the middle of the screen that appears when you go fps or just squeeze the mb3), nor the actual aiming
sights (i.e, the colored lines that show where the cannon will hit in fps mode).
While it's fortunately possible to disable the crosshair with /cross, and the cursor with that lua call, neither does anything to the aiming sights, irrespective whether you enable or disable the gui and hud.
(you can try any combo of gui/hud/cross/cursor flags, the aimsight stays either way)

- The aiming sights hang around even after the crosshair, fpshud, gui, and mouse cursor have all been finished off.
- crop.PNG (101.18 KiB) Viewed 2309 times
Re: Disable the default FPS HUD
Posted: 08 Jun 2009, 11:37
by lurker
A UFO making crop circles!