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:
1 parent
03b46a32f7
commit
1af53ec26a
7 files changed
+253
-45
No files matched your search
@@ -66,6 +66,14 @@ bool App::engine_sports_action(const std::string &action, const std::string &id,
|
||||
auto &v = engine_tactics_draft_["values"][size_t(i)]; v = v.get<int>() == hi ? lo : v.get<int>() + 1;
|
||||
last_tactic_ = i; focus_after_render_ = target->GetId(); refresh(); return true;
|
||||
}
|
||||
// an exclamation mark sets the effort to its number; the highest one that is set takes itself back
|
||||
if (action == "tactic-effort-set" && menu_ == "tactics" && engine_fresh_) {
|
||||
const int lo = engine_tactics_draft_.at("minima")[7], hi = engine_tactics_draft_.at("limits")[7];
|
||||
int value = std::clamp(std::stoi(id), lo, hi);
|
||||
if (engine_tactics_draft_.at("values")[7] == value) value = std::max(lo, value - 1);
|
||||
engine_tactics_draft_["values"][7] = value;
|
||||
last_tactic_ = 7; focus_after_render_ = target->GetId(); refresh(); return true;
|
||||
}
|
||||
if (action == "training-ball" && menu_ == "training" && engine_fresh_) {
|
||||
const auto group = target->GetAttribute<Rml::String>("data-group", "");
|
||||
const int i = std::stoi(id), value = target->GetAttribute<int>("data-value", 0);
|
||||
@@ -78,7 +86,7 @@ bool App::engine_sports_action(const std::string &action, const std::string &id,
|
||||
}
|
||||
focus_after_render_ = target->GetId(); refresh(); return true;
|
||||
}
|
||||
return action.starts_with("training-") || action.starts_with("sports-");
|
||||
return action.starts_with("training-") || action.starts_with("sports-") || action.starts_with("tactic-");
|
||||
}
|
||||
bool App::engine_sports_event(Rml::Event &event) {
|
||||
if (menu_ != "tactics" || !popup_.empty() || engine_busy_) return false;
|
||||
|
||||
Reference in new issue
Block a user