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

Post edit history

more than 10 autogroups with hotkeys

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
1/22/2016 12:50:16 PMUSrankShaman before revert after revert
Before After
1 [quote]We make it a modifier key USrankSoldier_Shaman same for the other words we don't use in zero-k. 1 [quote]We make it a modifier key USrankSoldier_Shaman same for the other words we don't use in zero-k.
2 \n 2 \n
3 I know that q, r, e ,t y, u ,i o, p, h, j, k, l, z, x, c, v, b, n, m, I don't use in the game. That means a total of 20X (1-10) means 200 autogroups. I barely play with 3 factories at once so I can easily setup a C1 C2 C3...C10 autogroup for a factory and a V1 V2 V3...V10 for another factory while using the default 1, 2 ,3 ,4 ...10 at the same time. [/quote] 3 I know that q, r, e ,t y, u ,i o, p, h, j, k, l, z, x, c, v, b, n, m, I don't use in the game. That means a total of 20X (1-10) means 200 autogroups. I barely play with 3 factories at once so I can easily setup a C1 C2 C3...C10 autogroup for a factory and a V1 V2 V3...V10 for another factory while using the default 1, 2 ,3 ,4 ...10 at the same time. [/quote]
4 \n 4 \n
5 A modifier key is a key that modifies a keystroke. These are Control (CTRL), Alt, and Shift. 5 A modifier key is a key that modifies a keystroke. These are Control (CTRL), Alt, and Shift.
6 [spoiler]
7 Logic for your extended hotkeys:
8 \n
9 function widget:KeyPress(key, mods, isRepeat)
10 Is the "await selection" variable set?
11 |true |false
12 | |
13 | Ctrl + E is pressed
14 | |
15 | set variable and wait for a keystroke and act on it
16 |
17 |
18 --------------------->Waiting keypress?
19 / \false
20 / \
21 / Is it a handled key?
22 true/ true/ |false
23 / / -> cancel
24 is it a handled key? set awaiting variable.
25 true/ \false
26 do selection |
27 cancel
28 \n
29 end
30 \n
31 [/spoiler]