Add the tabbed settings menu: option rows over the cfg table for the Screen, Game, Sound, Controls and Menu tabs, Continue and Quit game in the bottom row, and a note when totk.ini cannot be written

Rows read and write their key through cfg, mark the default, say "after restart" for start-only settings and grey out what an environment variable fixes; totk.ini is written 0.4 s after the last change and when the menu closes. The graphics card list comes from the Vulkan devices, the window sizes from the monitor, and the language names of Japanese, Korean and Chinese are drawn with glyphs merged in from a system font (plat_font_path). The font atlas and style follow the window height. TOTK_MENU_TEST saves one shot per tab and ignores real input meanwhile; TOTK_MENU_TEST_SET sets settings at given frames (SAVE=1 writes totk.ini). A background test window going fullscreen no longer comes to the front or takes focus, and the log names the present mode the swapchain gets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-10-26 10:13:33 +03:00
1 parent 4d4b0efeb8
commit f8d584b3db
10 files changed
+752 -67

No files matched your search

+2 -2
View File
@@ -32,8 +32,8 @@ static ImGuiKey key_of(WPARAM vk) {
case VK_NEXT: return ImGuiKey_PageDown;
case VK_SHIFT: return ImGuiKey_LeftShift;
case VK_CONTROL: return ImGuiKey_LeftCtrl;
case 'Q': return ImGuiKey_Q; // previous page (later)
case 'E': return ImGuiKey_E; // next page (later)
case 'Q': return ImGuiKey_Q; // previous tab
case 'E': return ImGuiKey_E; // next tab
default: return ImGuiKey_None;
}
}