Waypoint Dragging Widget
Moderator: Moderators
Waypoint Dragging Widget
Small LuaUI widget, lets you drag unit waypoints SupCom-style.
http://www.darkstars.co.uk/downloads/vi ... 2.lua&dl=1
http://www.darkstars.co.uk/downloads/vi ... 2.lua&dl=1
Last edited by Kloot on 14 Aug 2009, 00:41, edited 4 times in total.
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
-
- Posts: 250
- Joined: 22 Jul 2006, 19:58
@AF
The widget can't access your cmdcolor options, but I've added a boolean that lets it act as if it can (noShift, see the source). A problem though is that dragging a waypoint causes your units to be deselected, so there's no visual confirmation of their path being changed until you reselect them. OTOH I think having to press shift before you can drag anything is preferable, so I'm not sure it should be specially supported.
Also, the bug I mentioned turned out to be something Spring-side todo with removing orders from idle factories, rather than with the Lua code. I've patched it, but until 0.75b3 is released factory waypoints can only be moved if the factory that owns them doesn't have an empty build-queue.
@Acidd
Yes, inserting new waypoints anywhere into the queue is now possible. Say you have a queue consisting of three points, A, B, and C. To stick a fourth waypoint in between A and B, hold down shift and alt together and drag A to where you want the new waypoint (this preserves everything after B).
@Tim
Also possible now. If you have multiple units selected, hold down shift and control together and move your mouse along all the waypoints you want to merge, then drag one of them (with control still pressed) to the merge-point. You can also use this to merge waypoints owned by a single selected unit; if it's following eg. A, B, C, D and you merge B and C into E, the new path will be A, E, D.
Anyway, new download link is in the first post.
The widget can't access your cmdcolor options, but I've added a boolean that lets it act as if it can (noShift, see the source). A problem though is that dragging a waypoint causes your units to be deselected, so there's no visual confirmation of their path being changed until you reselect them. OTOH I think having to press shift before you can drag anything is preferable, so I'm not sure it should be specially supported.
Also, the bug I mentioned turned out to be something Spring-side todo with removing orders from idle factories, rather than with the Lua code. I've patched it, but until 0.75b3 is released factory waypoints can only be moved if the factory that owns them doesn't have an empty build-queue.
@Acidd
Yes, inserting new waypoints anywhere into the queue is now possible. Say you have a queue consisting of three points, A, B, and C. To stick a fourth waypoint in between A and B, hold down shift and alt together and drag A to where you want the new waypoint (this preserves everything after B).
@Tim
Also possible now. If you have multiple units selected, hold down shift and control together and move your mouse along all the waypoints you want to merge, then drag one of them (with control still pressed) to the merge-point. You can also use this to merge waypoints owned by a single selected unit; if it's following eg. A, B, C, D and you merge B and C into E, the new path will be A, E, D.
Anyway, new download link is in the first post.
Re: Waypoint Dragging Widget
CAn someone reuplaod this please.
Re: Waypoint Dragging Widget
http://www.evolutionrts.info/ufmirror/filelist.html
edit: you must look at the link and manually download + rename the file from http://evolutionrts.info/ufmirror/spring/ until lurker uploads a download.php file
edit: you must look at the link and manually download + rename the file from http://evolutionrts.info/ufmirror/spring/ until lurker uploads a download.php file
Re: Waypoint Dragging Widget
Is it a widget or a gadget?
Re: Waypoint Dragging Widget
It appears ot be not even half finished unfortunatly.
It only support move orders.
It needs to support all orders including guard orders build orders reclaim circles capture restore transport load and unload etc..
Also when you click a point to drag it a different icon should appear and the white selection menu that normally appears when you press and drag with the left mouse button should not appear.
It only support move orders.
It needs to support all orders including guard orders build orders reclaim circles capture restore transport load and unload etc..
Also when you click a point to drag it a different icon should appear and the white selection menu that normally appears when you press and drag with the left mouse button should not appear.
Re: Waypoint Dragging Widget
Is someone working on this?
It would be really nice if you could see all queues by pressing shift while having no units selected, then being able to modify the queuepoints by dragging them, and the modified queues would apply to all units having them in their command queue.
And another nice feature would be a double-right-click on a unit to copy its queue, contrary to normal right-click that assigns the unit a guard command (this one would be trivial to implement, i guess?)
It would be really nice if you could see all queues by pressing shift while having no units selected, then being able to modify the queuepoints by dragging them, and the modified queues would apply to all units having them in their command queue.
And another nice feature would be a double-right-click on a unit to copy its queue, contrary to normal right-click that assigns the unit a guard command (this one would be trivial to implement, i guess?)
Re: Waypoint Dragging Widget
Doubt anyone is..
If moving commands was possible supcom style this would be an awesome widget.
But it has to come with a widget that makes severla units share the same command line.
so if u select 5 air units and tell them to move to x there will only be 1 mutual move line for the entire group just like in supcom.
If moving commands was possible supcom style this would be an awesome widget.
But it has to come with a widget that makes severla units share the same command line.
so if u select 5 air units and tell them to move to x there will only be 1 mutual move line for the entire group just like in supcom.