Self-D icons widget

Self-D icons widget

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

Moderator: Moderators

Post Reply
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Self-D icons widget

Post by Floris »

Displays a skull icon plus countdown timer at every unit that received a self-d order.
Attachments
selfd_icons.zip
14 february 2015
(19.8 KiB) Downloaded 10 times
screen00041.jpg
screen00041.jpg (48.51 KiB) Viewed 1621 times
Last edited by Floris on 14 Feb 2015, 16:20, edited 8 times in total.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Self-D icons widget

Post by smoth »

very cool.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Self-D icons widget

Post by jK »

Floris wrote:Displays a skull icon plus countdown timer at every unit that received a self-d order.

- known bug: when selfd-units get emp'd the countdown won't pause.
Spring.GetUnitSelfDTime?
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Self-D icons widget

Post by Floris »

Thanks jK!


new version uploaded:
- Changed font to have more detail and a black outline, same style as the skull.
- Searches for selfd cmd's on initialize()
- Units that are not self-d-ing yet but have the cmd queued will only display the skull icon.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Self-D icons widget

Post by jamerlan »

[f=0002676] Error in DrawWorld(): [string "LuaUI/Widgets/gui_selfd_icons.lua"]:50: attempt to index upvalue 'font' (a nil value)
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Self-D icons widget

Post by Floris »

Included the font in the package, hope this helps. Thought it was a default font.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Self-D icons widget

Post by Floris »

fixed error
Post Reply

Return to “Lua Scripts”