Loading...
  OR  Zero-K Name:    Password:   

SupCom-style range widget

5 posts, 121 views
Post comment
Filter:    Player:  
sort
Hey all,

Is there a widget that would display ranges in the style of Supreme Commander? I mean three things specifically: (1) a button to display the range of everything, (2) a thicker ring, (3) overlapping rings converge.

I expect (1) might already exist, but I can't find it. The use-case for this would be to hold a button to reveal how much area is covered by anti-air, or by shields, or by jammers. I expect (2) would be very easy to implement - I never actually looked that one up. But (3) is the one I find most important... it would make the UI so much cleaner when moving an army around - there wouldn't be 30 different overlapping circles, instead you'd just have one blob of danger.

If it doesn't exist, would I need to mess around with LUA to make it happen, or Zero-K's source, or Spring's source?

Here is an example:



Thanks :)

+0 / -0
39 hours ago
Hey the pictures in this guide arent active currently but have what you want anyway and should show you the way, point 4. and 5.

https://zero-k.info/Forum/Thread/38175
+0 / -0
38 hours ago
I have rewritten the range widgets to have thicker lines.
+0 / -0
I expect the circle merging could be adapted from a BAR widget. It looks like it just works if you drop the files in ZK:



I've added the widgets to the repository, for simplicity: https://github.com/ZeroK-RTS/Zero-K/commit/44b72441cc5ad9260a61cfe125d912204a848770

You can experiment with running it locally like this: http://zero-k.info/mediawiki/Widget_Configuration#Using_custom_widgets

It would be great if you could clean them up and commit something back to the repository. I'd mainly make the outer circles more obvious, and simplify everything, eg by removing the faint inner circles (hard to see in the screenshot). Multi-weapon units such as Krow and Dante also create a bit of a mess of lines. I'd also want to add options for our integrated menu framework.

In short, the answer is you need to mess around with lua a bit. But most of it is there.
+0 / -0
Oh wow, thanks GoogleFrog! And thank Skel and Brackman; I'll tweak this widget and submit a PR to the repo.
+0 / -0