#include <imgui.h>
#include <string>
#include "global/types.h"
#include "gui/view_models/match_changes.h"
Go to the source code of this file.
|
| struct | TouchlineContext |
| | What the matchday dialogs act on: the live engine and the managed side, plus the match HUD's status line they report to. More...
|
| |
|
| namespace | Touchline |
| | Shared frame and wording of the substitutions and tactics dialogs.
|
| |
|
| bool | Touchline::beginDialog (const char *title, bool &opened, float width, float height) |
| | Opens (once) and begins a centred modal sized to the window: at most width x height unscaled pixels and 94% of the work area.
|
| |
| float | Touchline::footerHeight () |
| | Height to keep free under a dialog body for the button row.
|
| |
| void | Touchline::pauseSetting () |
| | "Pause the match while this is open" (a saved setting).
|
| |
| bool | Touchline::pausesMatch () |
| | Whether the match pauses while a matchday dialog is open.
|
| |
| std::string | Touchline::refusalText (MatchChanges::Refusal refusal, const MatchEngine &engine, const std::string &outName, const std::string &inName) |
| | Why a change is refused, with the players' names where useful.
|
| |
| std::string | Touchline::playerName (const Lineup &lineup, PlayerID player) |
| | Name of a player of the matchday squad (empty when unknown).
|
| |
| ImVec4 | Touchline::conditionColor (float condition) |
| | Condition bar colour (fresh, tiring, exhausted).
|
| |