feat(input): KP_2 dispara notificació llarga per a provar multilinia
This commit is contained in:
1 parent
2e8df45b38
commit
f816e75cc0
1 file changed
+12
@@ -154,6 +154,14 @@ namespace GlobalInputs {
|
|||||||
Options::setVideoRenderInfoPosition(static_cast<Defaults::RenderInfoPosition>(NEXT));
|
Options::setVideoRenderInfoPosition(static_cast<Defaults::RenderInfoPosition>(NEXT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Debug helper: dispara una notificació prou llarga perquè
|
||||||
|
// `wrapToWidth` la parteixi en (almenys) dues línies. Útil per a
|
||||||
|
// verificar visualment el padding asimètric, el line_gap i la caixa
|
||||||
|
// multilinia després de tocar la geometria a `data/ui.yaml`.
|
||||||
|
void onDebugLongNotification() {
|
||||||
|
Notification::notify("Notificació de prova llarga per a comprovar que el text es parteix correctament en dues línies dins la caixa.");
|
||||||
|
}
|
||||||
|
|
||||||
void onExit() {
|
void onExit() {
|
||||||
if (exit_window_s > 0.0F) {
|
if (exit_window_s > 0.0F) {
|
||||||
quit_requested = true;
|
quit_requested = true;
|
||||||
@@ -193,6 +201,10 @@ namespace GlobalInputs {
|
|||||||
onCycleRenderInfo();
|
onCycleRenderInfo();
|
||||||
} else if (SC == KeyConfig::get().scancode("exit")) {
|
} else if (SC == KeyConfig::get().scancode("exit")) {
|
||||||
onExit();
|
onExit();
|
||||||
|
} else if (SC == SDL_SCANCODE_KP_2) {
|
||||||
|
// Tecla de debug fora del KeyConfig: dispara una notificació
|
||||||
|
// multilinia per a inspeccionar el layout de la caixa.
|
||||||
|
onDebugLongNotification();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user