30 static constexpr const char*
WINDOW_ID =
"###match_tactics_modal";
Tactics dialog of the live match: style presets, the five instructions and the formation,...
Definition match_tactics_panel.h:27
bool close_requested
Definition match_tactics_panel.h:82
void renderInstructions()
Definition match_tactics_panel.cpp:200
void resetPopup()
Next render() opens the popup again, with a fresh draft.
Definition match_tactics_panel.h:42
bool canUndo() const
Definition match_tactics_panel.h:59
std::vector< Vector2F > draft_shape
Definition match_tactics_panel.h:64
void renderFormation(const TouchlineContext &context)
Definition match_tactics_panel.cpp:231
void syncDraft(const TouchlineContext &context)
Draft starts again from the tactics in force.
Definition match_tactics_panel.cpp:82
bool undo(const TouchlineContext &context)
Restores the tactics in force before the last apply.
Definition match_tactics_panel.cpp:119
void reset(const Strategy &plan)
Starts a match from the club's tactics (clears the history).
Definition match_tactics_panel.cpp:74
std::vector< Snapshot > history
Definition match_tactics_panel.h:80
void renderStyle()
Definition match_tactics_panel.cpp:174
const Strategy & getApplied() const
Definition match_tactics_panel.h:60
bool render(const TouchlineContext &context)
Draws the dialog while it is shown.
Definition match_tactics_panel.cpp:139
StrategySliders draft_sliders
Definition match_tactics_panel.h:63
bool popup_opened
Definition match_tactics_panel.h:81
bool apply(const TouchlineContext &context)
Sends the draft to the engine; false when nothing changed.
Definition match_tactics_panel.cpp:95
static constexpr const char * WINDOW_ID
Definition match_tactics_panel.h:30
bool hasChanges(const TouchlineContext &context) const
Whether the draft differs from the tactics in force.
Definition match_tactics_panel.cpp:88
void renderFamiliarity(const TouchlineContext &context)
Definition match_tactics_panel.cpp:311
Strategy applied
Definition match_tactics_panel.h:79
void requestClose()
Closes the dialog on its next frame.
Definition match_tactics_panel.h:45
void renderFooter(const TouchlineContext &context)
Definition match_tactics_panel.cpp:343
Represents the tactical setup of a team for a match.
Definition strategy.h:61
Definition match_tactics_panel.h:68
Strategy strategy
Definition match_tactics_panel.h:69
std::vector< Vector2F > shape
Definition match_tactics_panel.h:70
Team-wide tactical preferences in [0, 1].
Definition strategy.h:27
What the matchday dialogs act on: the live engine and the managed side, plus the match HUD's status l...
Definition match_touchline.h:27