Player12
An open source football management simulator
Loading...
Searching...
No Matches
GuidanceUI Namespace Reference

Guidance pieces shared by the management screens: first-visit screen tips, the first-week checklist and the "Next steps" card. More...

Functions

std::optional< OnboardingTask > taskForSection (NavSection section)
 
NavSection sectionForTask (OnboardingTask task)
 
void noteVisit (GameController &controller, NavSection section)
 
void openAction (GUIView *view, const NextAction &action)
 
std::string text (const AnalysisLine &line)
 
const char * tipKey (NavSection section)
 
void renderScreenTip (NavSection section)
 
void renderReclaimNotice (const GUIView *view)
 

Detailed Description

Guidance pieces shared by the management screens: first-visit screen tips, the first-week checklist and the "Next steps" card.

Function Documentation

◆ noteVisit()

void GuidanceUI::noteVisit ( GameController &  controller,
NavSection  section 
)

Ticks the checklist step of a section the manager just opened.

◆ openAction()

void GuidanceUI::openAction ( GUIView *  view,
const NextAction &  action 
)

Opens the screen (or player) where an action is handled.

◆ renderReclaimNotice()

void GuidanceUI::renderReclaimNotice ( const GUIView *  view)

Notice after the manager took a delegated duty back by changing it by hand, with Undo (hand it back) and OK.

◆ renderScreenTip()

void GuidanceUI::renderScreenTip ( NavSection  section)

One-line tip at the top of a screen on its first visit. It stays for the rest of that visit and never comes back once seen; "Got it" hides it and "Turn off tips" disables tips (the Settings screen brings them back).

◆ sectionForTask()

NavSection GuidanceUI::sectionForTask ( OnboardingTask  task)

Section where a checklist step is done.

◆ taskForSection()

std::optional< OnboardingTask > GuidanceUI::taskForSection ( NavSection  section)

Checklist step a section completes when it is opened.

◆ text()

std::string GuidanceUI::text ( const AnalysisLine &  line)

Localised text of an analysis/report line.

◆ tipKey()

const char * GuidanceUI::tipKey ( NavSection  section)

Language key of a section's tip (nullptr when it has none).