ScribblaZ UI Polish Archive
This page records the earlier tool-palette, most-recently-used color, and shape-tool polish work. It is superseded by the canonical ScribblaZ hub, architecture, game design, opcode reference, runbook, and verification checklist.
Historical changes captured here
- The shared
ToolTypeandCanvasEventcontracts live insrc/lib/gameState.ts; draw replay and rendering live insrc/lib/canvasEngine.ts; canvas interaction is insrc/components/DrawCanvas.svelte. - Shape operations use the current TypeScript authoritative handler,
server/match_handler.ts, which validatesDRAW_SHAPEand relays accepted drawing operations (server/match_handler.ts:459-509). There is no currentmatch_handler.luaauthority. - The controller’s MRU list keeps up to 8 unique colors:
mruColors = [c, ...].slice(0, 8)insrc/lib/ScribblaZController.svelte.ts:350-353, not four. PALETTEcontains 15 curated entries insrc/lib/gameState.ts:83-93.src/components/PaintColorPanel.svelte:32-64renders those entries and adds a native<input type="color">; it is not a 16-color static palette.- The completed dock/palette sprint is recorded in
CHECKLIST.md:62-67: shortcut labels, the continuous 15-swatch strip plus native picker, aligned dock utilities, tighter HintBar chrome, and no runtime floating-ui/tooltip chrome.
This archive intentionally preserves the historical scope without treating it as the live source of truth for match flow or current UI verification.