Commit Graph

186 Commits

Author SHA1 Message Date
pavanvo 92cdcca576
Merge branch 'feat/command-priority' into play 2022-09-07 02:12:56 +04:00
pavanvo 204bac403e
fix: usabillity 2022-09-07 02:11:40 +04:00
pavanvo edc9de3d15
Merge branch 'feat/command-priority' into play 2022-09-06 17:54:44 +04:00
pavanvo 22a2abd3f4
fix: non-targed commands 2022-09-06 02:21:32 +04:00
pavanvo 35f755841d
feat: gui hotkey released 2022-09-06 02:18:17 +04:00
pavanvo d2d691024e
fix: non-targed commands + TODO 2022-09-06 02:18:10 +04:00
pavanvo 37b6fbb12e
fix: checkCommand + TODO 2022-09-06 02:11:27 +04:00
pavanvo 0b1dcc70f5
feat: allow queue after Morph commands 2022-09-06 02:11:27 +04:00
pavanvo d3c19ce9a5
fix: non-uniform selection
shows attack as empty position
2022-09-02 11:04:31 +04:00
pavanvo 1c1dd0a393
refactor: empty positions 2022-08-30 14:25:06 +04:00
pavanvo d5f15d2c72 Revert "refactor: remove some useless code,"
This reverts commit afc26199f7.
2022-08-18 05:57:20 +04:00
pavanvo 8caa800ee1
fix: reset command position for non-target commands 2022-08-16 22:00:31 +04:00
pavanvo aec7bf5c80
fix: reset command position for build commands 2022-08-16 21:59:41 +04:00
pavanvo ea3ede3c08
refactor: remove incompatible code,
code blocking switching from attack to anothe command
2022-08-16 21:58:18 +04:00
pavanvo afc26199f7
refactor: remove some useless code,
since we removed this hotkeys, we don't need this code any more
2022-08-16 21:56:36 +04:00
Rampoina a5438f6a93 Use the cancel icon for the unused grid locations 2022-08-14 13:38:16 +02:00
pavanvo 5523bba192 refactor: command sorting code 2022-08-14 13:38:16 +02:00
pavanvo f1e4a1bf83 feat: standart for cammand grid 2022-08-14 13:38:15 +02:00
Rampoina 46d5904578 Bump Command Keys to 12
Otherwise some units in the game don't have enough hotkeys like the
ballista.
Moves the hotkey for attacking units to ,
Moves the hotkey for font cOlor to O
2022-08-14 12:26:38 +02:00
Rampoina e209dcbd35 Fix numberCommands
It wasn't updated correctly for units with morphing abilities
2022-08-14 12:26:38 +02:00
Rampoina c4caa6b912 Display hotkey on hover 2022-08-14 12:26:38 +02:00
Rampoina c549a6b66c Correctly update numberCommands 2022-08-14 12:26:38 +02:00
Rampoina 9276faeeb5 Update the GUI immediately after calling the command from a hotkey
Otherwise the gui takes a bit to update
2022-08-14 12:26:38 +02:00
Rampoina 3313f187bb Rename HotKeyBuildN to CommandKeyN 2022-08-14 12:26:38 +02:00
Rampoina 1922522009 Rename commonCommands to numberCommands 2022-08-14 12:26:38 +02:00
Rampoina c3e8a25e9e Update commonCommands for a uniform selection 2022-08-14 12:26:38 +02:00
Rampoina 2cd190d822 Retabulate (use only tabs) 2022-08-14 12:26:38 +02:00
Rampoina 5783db3033 Check the number of shared commands before trying to click from a hotkey 2022-08-14 12:26:38 +02:00
Rampoina e9b771241f Add building and unit hotkeys 2022-08-14 12:26:38 +02:00
Rampoina ff9c9ad864 add hotkeybuild1 2022-08-14 12:26:38 +02:00
Rampoina 22a474b93b
Allow a selected group to have the attack command even if some units … (#217)
* Allow a selected group to have the attack command even if some units don't have it

* Add getUnitFromCC function

* return NULL if getFirstCtOfClass founds no unit

* Search for the unit containing the attack command in a non uniform selection

Co-authored-by: Rampoina <Rampoina@protonmail.com>
2022-08-08 23:26:47 +01:00
titiger ae5e308a28 set meeting point for whole selection ( via icon ) 2021-10-06 23:40:18 +02:00
titiger 32859457f6 world dump hotkey disabled by default
in big games accidently pressing this games made users drop out of the
game and its a developer option anyway. From now it only works If debug
is enabled.
2019-11-12 01:25:57 +01:00
titiger e978dd3561 build command had no colored icons 2019-10-21 20:09:15 +02:00
titiger 011f38912e red command icons if not enough resource
orange icons if not enough resources for whole selection
2019-10-21 00:46:06 +02:00
SoftCoder 865a665bf0 - round 2 of cppcheck code cleanup 2017-10-09 20:21:14 -07:00
SoftCoder 26581a77d2 - first round of cleanup from cppcheck report 2017-10-09 19:09:36 -07:00
titiger 4bf3e55dfc Select only operative or non operative units with property "uniformSelecion" 2017-03-05 00:43:37 +01:00
filux 6e9b463453 added missing spaces 2017-01-06 23:51:24 +01:00
titiger 6e53025d96 time in seconds an upgrade/produce/morph or build will take
build based on this one single unit building
2016-12-12 00:21:42 +01:00
titiger 2f45ffc59d display "time" value for upgrades/build or produced things 2016-12-11 19:41:08 +01:00
titiger 7b47f5edb1 When giving default orders we must respect cellmap of target unit
We need to respect cellmaps by searching for a cell which is really occupied.
This fixes an issue that new workers do not start with autorepair. It happens
 typically with round building were top left cell map is empty. Now order is given
to a place which is really occupied by the unit(building) to repair.
2016-11-11 01:34:28 +01:00
SoftCoder b180da5e3d - fixed issue #122 2016-10-30 09:21:34 -07:00
titiger 990df3b49b Fix for uniform-selection 2016-10-17 03:00:37 +02:00
titison 74ed3d73be Uniformselection
Added uniform selection of units.
Uniform means you can select multiple units, but only of the same type.
To make a unit uniform-selectable you need to add
```<uniform-selection value="true"/>```
to the ```<parameters>``` tag of a unit.
2016-08-24 00:53:56 +02:00
SoftCoder 35f3b2fa1a code cleanup from clang warnings 2016-01-07 08:48:35 -08:00
SoftCoder b54b295ac8 - memory cleanup and fixed from cpcpheck 2015-12-31 14:22:25 -08:00
titiger 01673dbb39 fix for #90 2015-12-10 01:28:09 +01:00
titiger c51599f4fe Coverty scan 1308703; Logically dead code 2015-11-30 20:53:04 +01:00
titiger 713dbd3003 problems with groups and non multiselect units fixed. ( issue #80 )
Now issue #80 should be completly fixed.
2015-11-11 01:25:28 +01:00