A10: Menus and settings
The game now opens on a main menu when it has a window: practice against bots (count and skill), join a server (by address, or from a LAN search list), settings, and quit. In a match, Escape brings up a pause menu (the match goes on) with settings and leave; when a match the player was in ends, a results screen shows their place, eliminations and the last of the feed. - KeyBindings: every action rebindable to a key or mouse button. bind() refuses an input another action uses and names it; Escape is reserved. ClientInput reads keys through the bindings. - GameSettings: bindings, mouse, graphics (quality preset and the print pass), audio (master, music and effects buses), display (window mode, vsync, frame cap), name, last server and practice choices, saved in user://settings.cfg. Missing, unreadable or corrupt files and bad values fall back to defaults, value by value; hand-edited key clashes are repaired on load. - Menus (src/ui): paper-and-ink panels, brass focus edge, keyboard navigable; a drawn sea-and-tide-post backdrop, or an ink wash over a match. AppShell runs menus and the session. - LocalServer takes a bot difficulty. - make menu-captures renders every screen. Closes #50 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## Tidewall's one table of colours: the drowned-coast palette from docs/STYLE.md.
|
||||
## Every colour the client draws with comes from here, so the look stays one look; a
|
||||
## test (test_palette.gd) fails on a colour literal anywhere else in src/client or
|
||||
## src/app. All values are sRGB. Add a colour here, named for what it is in the world,
|
||||
## test (test_palette.gd) fails on a colour literal anywhere else in src/client,
|
||||
## src/app or src/ui. All values are sRGB. Add a colour here, named for what it is in the world,
|
||||
## before using it, and add it to the table in docs/STYLE.md.
|
||||
class_name Palette
|
||||
extends RefCounted
|
||||
@@ -80,6 +80,8 @@ const INK: Color = Color(0.16, 0.13, 0.11)
|
||||
const PAPER: Color = Color(0.91, 0.87, 0.78)
|
||||
## Paper in shadow, for panel edges and dimmed text.
|
||||
const PAPER_DIM: Color = Color(0.66, 0.62, 0.54)
|
||||
## Brass seen on paper: the edge of the menu control that has focus.
|
||||
const GILT_DEEP: Color = Color(0.62, 0.45, 0.12)
|
||||
## Dark text outline on the HUD.
|
||||
const OUTLINE: Color = Color(0.08, 0.08, 0.08)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user