feat(ui): captura F9, tema a data/ui.yaml i retocs estètics

Captura de pantalla amb F9: volca el canvas ARGB a
screenshots/scr_<timestamp>.png via stb_image_write.

Tot el tema d'UI (colors, timings, fonts, flag hud.bg_enabled)
passa a data/ui.yaml via UiConfig; els valors de Defaults::UI
queden com a fallbacks si el fitxer falta o li manca alguna clau.

Retocs estètics: paleta "uzebox" per a la UI, strings del HUD
(P1/P2/V/T/PIRAMIDE/SALA) traduïts a locale, i fons del marcador
opcional amb backdrop continu de franja per evitar el trencament
visual durant el shake o l'animació d'entrada dels panells.
This commit is contained in:
JailDesigner committed 2026-04-24 10:58:02 +02:00
1 parent 82b229222f
commit dc8a7723e3
26 files changed
+2593 -210

No files matched your search

+6 -6
View File
@@ -29,18 +29,18 @@ keys:
- id: toggle_vsync
code: "F8"
desc: "Activa / desactiva VSync"
- id: menu_toggle
- id: screenshot
code: "F9"
desc: "Obri / tanca el menú de servei"
desc: "Captura de pantalla (PNG)"
- id: toggle_render_info
code: "F12"
desc: "Cicle de l'overlay de debug: apagat / dalt / baix"
- id: toggle_render_time
code: "F10"
desc: "Mostra o amaga el temps de joc dins de l'overlay"
desc: "Cicle de l'overlay de debug: apagat / dalt / baix"
- id: pause
code: "F11"
desc: "Pausa el joc (o botó START del mando)"
- id: menu_toggle
code: "F12"
desc: "Obri / tanca el menú de servei"
- id: editor_toggle
code: "9"
desc: "Entra/surt del mode editor (només Debug)"
+9
View File
@@ -14,6 +14,7 @@ input:
shader_off: "Shaders desactivats"
vsync_on: "VSync activat"
vsync_off: "VSync desactivat"
screenshot: "Captura"
shader: "Shader"
preset: "Preset"
scaling_disabled: "Escalat sense"
@@ -27,6 +28,14 @@ input:
editor_off: "Editor OFF"
editor_save_error: "Editor: error guardant el mapa"
hud:
p1: "P1"
p2: "P2"
lives: "Vides"
treasures: "Tres."
pyramid: "Piramide"
room: "Sala"
menu:
titles:
root: "Menú de servei"
+9
View File
@@ -14,6 +14,7 @@ input:
shader_off: "Shaders off"
vsync_on: "VSync on"
vsync_off: "VSync off"
screenshot: "Screenshot"
shader: "Shader"
preset: "Preset"
scaling_disabled: "Scaling off"
@@ -27,6 +28,14 @@ input:
editor_off: "Editor OFF"
editor_save_error: "Editor: map save failed"
hud:
p1: "P1"
p2: "P2"
lives: "L"
treasures: "T"
pyramid: "PYRAMID"
room: "ROOM"
menu:
titles:
root: "Service menu"
+14 -14
View File
@@ -39,20 +39,20 @@ geometry:
data:
- [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
- [ 1,230,233,233,233,233,233,233,233,233,233,233,233,233,233,233,233,233,233,231, 1]
- [ 1,202,292,260,292,292,260,292,292,260,292,292,260,292,260,292,292,260,260,200, 1]
- [ 1,202, 32, 32, 2, 32, 65, 34, 34, 32, 65, 2, 32, 32, 65, 32, 34, 32, 32,200, 1]
- [ 1,202, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 34, 2, 2, 2, 32,200, 1]
- [ 1,202, 65, 32, 32, 33, 33, 32, 32, 32, 32, 32, 2, 32, 32, 32, 34, 32, 65,200, 1]
- [ 1,202, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32,200, 1]
- [ 1,202, 65, 32, 33, 33, 32, 32, 32, 32, 32, 32, 32, 32, 34, 32, 32, 32, 65,200, 1]
- [ 1,202, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32,200, 1]
- [ 1,202, 65, 32, 32, 32, 33, 33, 32, 32, 32, 32, 2, 32,181, 32, 32, 32, 65,200, 1]
- [ 1,202, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32,200, 1]
- [ 1,202, 65, 32, 33, 2, 34, 32, 32, 32, 32, 32, 32, 33, 32, 32, 34, 32, 65,200, 1]
- [ 1,202, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32, 2, 2, 2, 32,200, 1]
- [ 1,202, 32, 32, 34, 34, 65, 32, 2, 32, 65, 32, 34, 33, 65, 32, 32, 32, 32,200, 1]
- [ 1,262,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,263, 1]
- [ 1, 91,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105, 92, 1]
- [ 1, 98,113,113, 95,113, 94,113,113,113,113,113,113,113, 94,113,102,113,113, 96, 1]
- [ 1, 98, 8, 8, 6, 8, 17, 8, 10, 8, 17, 8, 8, 8, 17, 8, 8, 8, 8, 96, 1]
- [ 1, 98, 8, 2, 2, 2, 8, 2, 2, 2, 8, 2, 2, 2, 8, 2, 2, 2, 8, 96, 1]
- [ 1, 98, 17, 8, 9, 2, 8, 10, 8, 8, 8, 8, 10, 8, 8, 26, 8, 8, 17, 96, 1]
- [ 1, 98, 8, 2, 2, 2, 2, 2, 2, 2, 8, 2, 2, 2, 8, 2, 2, 2, 8, 96, 1]
- [ 1, 98, 17, 8, 8, 26, 8, 8, 9, 8, 8, 8, 8, 8, 10, 8, 6, 8, 17, 96, 1]
- [ 1, 98, 8, 2, 2, 2, 8, 2, 2, 2, 8, 2, 2, 2, 8, 2, 2, 2, 8, 96, 1]
- [ 1, 98, 17, 8, 10, 8, 8, 8, 2, 8, 8, 8, 9, 8, 8, 8, 10, 8, 17, 96, 1]
- [ 1, 98, 8, 2, 2, 2, 8, 2, 2, 2, 6, 2, 2, 2, 8, 2, 2, 2, 8, 96, 1]
- [ 1, 98, 17, 8, 10, 8, 8, 10, 2, 8, 8, 26, 8, 8, 8, 8, 10, 8, 17, 96, 1]
- [ 1, 98, 8, 2, 2, 2, 8, 2, 2, 2, 8, 2, 2, 2, 8, 2, 2, 2, 8, 96, 1]
- [ 1, 98, 8, 10, 6, 6, 17, 8, 8, 8, 17, 8, 9, 8, 17, 8, 2, 8, 8, 96, 1]
- [ 1, 99, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89,100, 1]
# Spawns d'entitats per a aquest nivell. Es llegeixen des de
# EntityManager::loadFromLevel al GameScene. Convencions:
+259
View File
@@ -0,0 +1,259 @@
JASC-PAL
0100
256
0 0 0
36 0 0
72 0 0
109 0 0
145 0 0
182 0 0
218 0 0
255 0 0
0 36 0
36 36 0
72 36 0
109 36 0
145 36 0
182 36 0
218 36 0
255 36 0
0 72 0
36 72 0
72 72 0
109 72 0
145 72 0
182 72 0
218 72 0
255 72 0
0 109 0
36 109 0
72 109 0
109 109 0
145 109 0
182 109 0
218 109 0
255 109 0
0 145 0
36 145 0
72 145 0
109 145 0
145 145 0
182 145 0
218 145 0
255 145 0
0 182 0
36 182 0
72 182 0
109 182 0
145 182 0
182 182 0
218 182 0
255 182 0
0 218 0
36 218 0
72 218 0
109 218 0
145 218 0
182 218 0
218 218 0
255 218 0
0 255 0
36 255 0
72 255 0
109 255 0
145 255 0
182 255 0
218 255 0
255 255 0
0 0 85
36 0 85
72 0 85
109 0 85
145 0 85
182 0 85
218 0 85
255 0 85
0 36 85
36 36 85
72 36 85
109 36 85
145 36 85
182 36 85
218 36 85
255 36 85
0 72 85
36 72 85
72 72 85
109 72 85
145 72 85
182 72 85
218 72 85
255 72 85
0 109 85
36 109 85
72 109 85
109 109 85
145 109 85
182 109 85
218 109 85
255 109 85
0 145 85
36 145 85
72 145 85
109 145 85
145 145 85
182 145 85
218 145 85
255 145 85
0 182 85
36 182 85
72 182 85
109 182 85
145 182 85
182 182 85
218 182 85
255 182 85
0 218 85
36 218 85
72 218 85
109 218 85
145 218 85
182 218 85
218 218 85
255 218 85
0 255 85
36 255 85
72 255 85
109 255 85
145 255 85
182 255 85
218 255 85
255 255 85
0 0 170
36 0 170
72 0 170
109 0 170
145 0 170
182 0 170
218 0 170
255 0 170
0 36 170
36 36 170
72 36 170
109 36 170
145 36 170
182 36 170
218 36 170
255 36 170
0 72 170
36 72 170
72 72 170
109 72 170
145 72 170
182 72 170
218 72 170
255 72 170
0 109 170
36 109 170
72 109 170
109 109 170
145 109 170
182 109 170
218 109 170
255 109 170
0 145 170
36 145 170
72 145 170
109 145 170
145 145 170
182 145 170
218 145 170
255 145 170
0 182 170
36 182 170
72 182 170
109 182 170
145 182 170
182 182 170
218 182 170
255 182 170
0 218 170
36 218 170
72 218 170
109 218 170
145 218 170
182 218 170
218 218 170
255 218 170
0 255 170
36 255 170
72 255 170
109 255 170
145 255 170
182 255 170
218 255 170
255 255 170
0 0 255
36 0 255
72 0 255
109 0 255
145 0 255
182 0 255
218 0 255
255 0 255
0 36 255
36 36 255
72 36 255
109 36 255
145 36 255
182 36 255
218 36 255
255 36 255
0 72 255
36 72 255
72 72 255
109 72 255
145 72 255
182 72 255
218 72 255
255 72 255
0 109 255
36 109 255
72 109 255
109 109 255
145 109 255
182 109 255
218 109 255
255 109 255
0 145 255
36 145 255
72 145 255
109 145 255
145 145 255
182 145 255
218 145 255
255 145 255
0 182 255
36 182 255
72 182 255
109 182 255
145 182 255
182 182 255
218 182 255
255 182 255
0 218 255
36 218 255
72 218 255
109 218 255
145 218 255
182 218 255
218 218 255
255 218 255
0 255 255
36 255 255
72 255 255
109 255 255
145 255 255
182 255 255
218 255 255
255 255 255
Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

+54
View File
@@ -0,0 +1,54 @@
# Tema de la UI: índexs de paleta, timings, fonts i flags visuals. Tota
# clau absent cau al valor compilat a Defaults::UI (veure defaults.hpp).
colors:
render_info_text: 58
render_info_shadow: 16
canvas_bg: 72
notification_text: 232
notification_bg: 64
exit_text: 71
exit_bg: 2
menu_bg: 2
menu_border: 232
menu_title: 237
menu_label: 58
menu_value: 232
menu_cursor: 71
menu_disabled: 16
hud_bg: 9
hud_label: 58
hud_value: 187
hud_flash: 237
timings:
notification_ms: 4000
exit_ms: 4000
fonts:
hud:
name: "8bithud"
gif: "data/fonts/8bithud.gif"
fnt: "data/fonts/8bithud.fnt"
kerning: 1
placeholder:
name: "ari-w9500-condensed-display"
gif: "data/fonts/ari-w9500-condensed-display.gif"
fnt: "data/fonts/ari-w9500-condensed-display.fnt"
kerning: 1
menu_title:
name: "ari-w9500-display"
gif: "data/fonts/ari-w9500-display.gif"
fnt: "data/fonts/ari-w9500-display.fnt"
kerning: 0
menu_items:
name: "ari-w9500-condensed-display"
gif: "data/fonts/ari-w9500-condensed-display.gif"
fnt: "data/fonts/ari-w9500-condensed-display.fnt"
kerning: 0
hud:
bg_enabled: true
entry_ms: 800 # durada de l'animació d'entrada dels tres blocs
flash_ms: 250 # durada del flash quan un jugador rep un hit
shake_ms: 300 # durada del shake que acompanya el flash