Opened 8 years ago

Last modified 2 years ago

#4040 new defect

Control-all cheat should select all units

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: UI – In-game Keywords: simple
Cc: Patch:

Description (last modified by Freagarach)

Once the option from the developer overlay to control all units is toggled, the selection lasso should include entities of all players and gaia, not only the viewed player. Relevant code: the calls to PickPlayerEntitiesInRect in input.js.

A new scriptfunction PickAllEntitiesInRect is probably required. Notice it should check whether the entities are visible for the currently viewed player.

Furthermore the related code in ScriptFunctions.js should be cleaned, i.e. moved to Selection.cpp, perhaps CCmpRangeManager.cpp and shouldn't iterate through players anymore but just use the ownership mask for the desired players.

Change History (4)

comment:1 by Imarok, 5 years ago

Component: UI & SimulationIn-game UI

Move tickets to In-game UI as UI & Simulation got some sub components.

comment:2 by Silier, 3 years ago

Keywords: simple removed
severity: simple

comment:3 by Silier, 3 years ago

Keywords: simple added

comment:4 by Freagarach, 2 years ago

Description: modified (diff)

r26327 allowed selecting by shift+click.

For the lasso one could keep in mind that selecting all is not always what is wanted, but since it is a cheat one could "meh" it.

Note: See TracTickets for help on using tickets.