Disable the default FPS HUD

Disable the default FPS HUD

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Disable the default FPS HUD

Post 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?
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Disable the default FPS HUD

Post 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?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Disable the default FPS HUD

Post by jK »

check the docs folder of your spring install it contains a file named cmds.txt
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Disable the default FPS HUD

Post by Anarchid »

/fpshud 0 ftw
Thx for that one :P
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Disable the default FPS HUD

Post by Anarchid »

Oh.
I tried both /fpshud 0 and killing all gui.
The default crosshairs stay :(
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Disable the default FPS HUD

Post by Argh »

/cross doesn't kill it?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Disable the default FPS HUD

Post by Anarchid »

Hmm, i missed that one. However, it only kills the mouse cross, not the aiming crosshairs for the guns.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Disable the default FPS HUD

Post by zwzsg »

Sometimes the following works:

function gadget:DrawScreen()
Spring.SetMouseCursor("none")
end
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Disable the default FPS HUD

Post 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.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Disable the default FPS HUD

Post 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).
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Disable the default FPS HUD

Post 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.
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 1713 times
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Disable the default FPS HUD

Post by lurker »

A UFO making crop circles!
Post Reply

Return to “Lua Scripts”