Tactics as a pencil sketch on the page, after the design

The pitch, the own eleven, the runs of the forwards, the passes and the goal kick
are drawn in pencil; their shape follows the settings. Wide players and arrow heads
are dragged, the two boxes and the exclamation marks are clicked, the list at the
right steps every setting. The question before a change is the same cream note as
the other dialogs. The chalkboard picture stays in the library for its tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 18:03:32 +01:00
1 parent 03b46a32f7
commit 1af53ec26a
7 files changed
+253 -45

No files matched your search

+11
View File
@@ -124,6 +124,7 @@ void App::drag_event(Rml::Event &event) {
void App::ProcessEvent(Rml::Event &event) try {
const auto type = event.GetType();
if (notebook_home_event(event)) return;
if (tactics_page_event(event)) return;
if (engine_mode_) { engine_event(event); return; }
// Native widgets can emit intermediate selected values while their options
// are being constructed. Opening a squad menu must stay read-only.
@@ -746,6 +747,16 @@ void App::dispatch(const std::string &action, Rml::Element *target) {
}
return;
}
if (action == "tactic-effort-set") {
int value = std::clamp(std::stoi(id), 0, 11);
if (snap().state.at("tactics").at("values")[7] == value) value = std::max(0, value - 1);
if (apply("tactics", {{"kind", "effort"}, {"value", value}})) {
last_tactic_ = 7;
focus_after_render_ = "tactic-effort-" + id;
refresh();
}
return;
}
if (action == "tactic-cycle") {
const int i = std::stoi(id);
if (i < 0 || i > 6)