Key bindings Step 2 (#8872)

* Configurable key bindings - Enable via Hidden debug-option

* Configurable key bindings - better Help

* Configurable key bindings - better Widget step 1
This commit is contained in:
SomeTroglodyte
2023-03-12 21:45:06 +01:00
committed by GitHub
parent f4dca2281e
commit 10caf8e93e
6 changed files with 210 additions and 22 deletions

View File

@ -390,5 +390,27 @@
"steps": [
"One of your cities is under a naval blockade! When all adjacent water tiles of a coastal city are blocked - city loses harbor connection to all other cities, including capital. Make sure to de-blockade cities by deploying friendly military naval units to fight off invaders."
]
}
},
{
"name": "Keyboard Bindings",
"civilopediaText": [
{"text":"Limitations","header":3},
{"text":"This is a work in progress.","color":"#b22222","starred":true},
{"text":"For technical reasons, only direct keys or Ctrl-Letter combinations can be used.","starred":true},
{"text":"The Escape key is intentionally excluded from being reassigned.","starred":true},
{"text":"Currently, there are no checks to prevent conflicting assignments.","starred":true},
{},
{"text":"Using the Keys page","header":3},
{"text":"Each binding has a label, a text field, and a key button looking like this:"},
{"extraImage":"OtherIcons/Keyboard","imageSize":36},
{"text":"While hovering the mouse over the key button, you can press a desired key directly to assign it."},
{"text":"Alternatively, you can enter the key's name in the text field."},
{"text":"To reset a binding to its default, simply clear the text field."},
{},
{"text":"Bindings mapped to their default keys are displayed in gray, those reassigned by you in white."},
{},
{"text":"For discussion about missing entries, see the linked github issue.","link":"https://github.com/yairm210/Unciv/issues/8862"}
],
// "uniques": ["Will not be displayed in Civilopedia"] // would prevent use for help link
}
]