Wanted: Radius widgets (graphical)

Wanted: Radius widgets (graphical)

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

Moderator: Moderators

Post Reply
SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

Wanted: Radius widgets (graphical)

Post by SpikedHelmet »

So I need some visual graphic widgets, not sure if they're even possible.

What I want is basically stuff like this:

Image

Replacing various drawn circles such as radar and weapons range.

However I want mine to have a faint grid pattern "filling":

Image

That's just a rough sketch; I want hexagonal grid pattern, not square.

What's worse is I'd like them to overlap nicely, either merging or cancelling each other out or whathaveyou, particularly since it uses semi-transparency and several overlapping might lead to hideousness. But is this even possible to do in a way that doesn't look horrendous when two grids overlap?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Wanted: Radius widgets (graphical)

Post by Forboding Angel »

This might do what you want. You can see it in evo by simply building a powerplant.

http://svn.evolutionrts.info/evolutiond ... _range.lua

Supports animations in customparams a la:

Code: Select all

	groundtexselectimg = ":nc:bitmaps/power/power.png",
	groundtexselectimg1 = ":nc:bitmaps/power/power1.png",
	groundtexselectimg2 = ":nc:bitmaps/power/power2.png",
	groundtexselectimg3 = ":nc:bitmaps/power/power3.png",
	groundtexselectimg4 = ":nc:bitmaps/power/power4.png",
	groundtexselectimg5 = ":nc:bitmaps/power/power5.png",
	groundtexselectimg6 = ":nc:bitmaps/power/power6.png",
Or you can just leave it as one frame.
Post Reply

Return to “Lua Scripts”