mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-24 13:45:57 +00:00
Text entry on SDL: hint lines come from the catalog, a password shows stars, a surrogate pair goes in and out whole and obeys the length limit, TOTK_SWKBD_TEST=ok presses OK, and the window redraws when exposed (#401)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
37551aedad
commit
c3cd1e31c2
3 files changed
+52
-10
No files matched your search
@@ -40,6 +40,11 @@ typedef struct { const char *lang; const char *const *text; } Row;
|
||||
|
||||
static const char *const text_en[UI_TEXT_COUNT] = {
|
||||
SWKBD("Text entry", "Enter a name", "Horse", "OK", "Cancel", "Controller: A = OK, B = Cancel"),
|
||||
// The SDL text entry draws with SDL's ASCII debug font, so these three exist in English only (the other rows fall
|
||||
// back to it).
|
||||
[UI_SWKBD_SDL_KEYS_HINT] = "Keys: type, Enter OK, Esc cancel",
|
||||
[UI_SWKBD_SDL_PAD_HINT1] = "Pad: D-pad move, bottom add, right del",
|
||||
[UI_SWKBD_SDL_PAD_HINT2] = "Start OK, top cancel",
|
||||
|
||||
[UI_MENU_TITLE] = "Settings",
|
||||
[UI_MENU_TAB_SCREEN] = "Screen", [UI_MENU_TAB_GAME] = "Game", [UI_MENU_TAB_MODS] = "Mods", [UI_MENU_TAB_SOUND] = "Sound",
|
||||
|
||||
Reference in new issue
Block a user