Opened 11 years ago

Last modified 4 years ago

#1899 new enhancement

[PATCH] Cycle entities

Reported by: alpha123 Owned by:
Priority: Should Have Milestone: Backlog
Component: UI – In-game Keywords: patch
Cc: Patch:

Description (last modified by nani)

This patch allows quick selection of training buildings by means of keyboard shortcuts. For example, I can press J to select my first civ center, and J again with that CC selected to get my second civ center. Alt+J would select all CCs, and Shift+J adds them to the selection (Shift+Alt+J adds all CCs to the selection).

This patch has hotkeys for:

heroes: '
civcentre: J
barracks: K
fortress: Y
corral: O
market: P
stables: L
elestables: L
kennel: L
gymnasion: L
syssiton: L
armycamp: L
apadana: I
prytaneion: I

Attachments (1)

cycle-entities.patch (10.0 KB ) - added by alpha123 11 years ago.

Download all attachments as: .zip

Change History (15)

by alpha123, 11 years ago

Attachment: cycle-entities.patch added

comment:1 by alpha123, 11 years ago

Type: defectenhancement

comment:2 by historic_bruno, 11 years ago

For stables through prytaneion, it seems yucky to be adding civ-specific hotkeys to the config file, I would prefer if instead they were grouped into more generic categories e.g. "hotkey.selection.building.special", whichever is most appropriate.

What about docks?

comment:3 by alpha123, 11 years ago

I personally don't feel that it is at all yucky.

I thought about something generic like .special, but config entries are so cheap that allowing a little extra customization seems just fine. Not everything has to be displayed in the options GUI anyway.

I didn't include docks or temples because they are of very little importance currently and I was starting to run a little low on available keys. I could add them if you feel like they're necessary.

comment:4 by alpha123, 11 years ago

Owner: set to alpha123

comment:5 by Kieran P, 11 years ago

Milestone: Alpha 14Alpha 15

comment:6 by wraitii, 10 years ago

Milestone: Alpha 15Alpha 16

comment:7 by sanderd17, 10 years ago

Milestone: Alpha 16Alpha 17

comment:8 by Josh, 10 years ago

I think a '.special' would be easier to explain to users. I don't even know what a number of those buildings are.

comment:9 by leper, 10 years ago

Keywords: review removed

specialN (N being a decimal) to account for multiple special buildings would be nice.

The hotkeys should go to the hotkey specific gui file, and there are probably other merge issues with this patch (thus removing review).

comment:10 by leper, 10 years ago

Milestone: Alpha 17Backlog

comment:11 by leper, 9 years ago

Component: Core engineUI & Simulation
Owner: alpha123 removed

comment:12 by elexis, 8 years ago

First the user should press a button like K to enter "building-selection-mode" which would then enable those hotkeys while disabling other hotkeys (to avoid conflicts) (like the broken patches in #1492).

IMO we should have one hotkey for every building type, so players can assign a hotkey for every type easily instead of having to lookup the numbers ingame and then still failing when picking a civ which has a different button order (f.e. spartans cant build walls).

Last edited 8 years ago by elexis (previous) (diff)

comment:13 by Imarok, 5 years ago

Component: UI & SimulationIn-game UI

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

comment:14 by nani, 4 years ago

Description: modified (diff)

Implemented and successfully added/working to/in autociv mod https://wildfiregames.com/forum/index.php?/topic/24649-autociv-mod-0ad-enhancer/page/3/&tab=comments#comment-380525. The code was refactored and made more performant but used this a base.

Note: See TracTickets for help on using tickets.