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

Navigation between management screens. More...

Functions

void open (GUIView *view, NavSection section)
 Opens a top-level section.
 
void openPlayer (GUIView *view, PlayerID playerId)
 Opens a player's profile above the current screen.
 
void openMatchReport (GUIView *view, GameDateValue date, TeamID homeId, TeamID awayId)
 Opens the report of a played fixture above the current screen.
 
void openClub (GUIView *view, TeamID teamId)
 Opens another club's squad list.
 
void openCompare (GUIView *view, PlayerID first, PlayerID second=0)
 Compares players side by side (0 = pick one on the screen).
 
bool canOpen (const GUIView *view, const NavEntry &entry)
 Whether a history entry can still be opened: its player or clubs still exist and its section is available (out of work only a few are).
 
void back (GUIView *view)
 Goes back to the previous screen of the history (Back button, Alt+Left, mouse button 4, a swipe to the right), skipping screens that can no longer be opened. With no history it closes the top screen. Does nothing unless a career screen is shown (never leaves a live match, the club choice or the career).
 
void forward (GUIView *view)
 Re-opens the screen Back left (Alt+Right, mouse button 5).
 
void close (GUIView *view)
 Closes the top screen, back to the one beneath it or Home (Esc). When that is the previous screen of the history, this is a step back.
 
bool canGoBack (GUIView *view)
 Whether back() would change the screen.
 
bool canGoForward (GUIView *view)
 Whether forward() would change the screen.
 

Detailed Description

Navigation between management screens.

Sections replace whatever is stacked above the club dashboard (one routine screen at a time, no overlay pile-up). Detail screens such as a player profile stack on top of the current section. Every screen shown is recorded in the view's history (GUIView::navHistory()), which Back and Forward walk like a browser's.

Function Documentation

◆ back()

void Navigation::back ( GUIView *  view)

Goes back to the previous screen of the history (Back button, Alt+Left, mouse button 4, a swipe to the right), skipping screens that can no longer be opened. With no history it closes the top screen. Does nothing unless a career screen is shown (never leaves a live match, the club choice or the career).

◆ canGoBack()

bool Navigation::canGoBack ( GUIView *  view)

Whether back() would change the screen.

◆ canGoForward()

bool Navigation::canGoForward ( GUIView *  view)

Whether forward() would change the screen.

◆ canOpen()

bool Navigation::canOpen ( const GUIView *  view,
const NavEntry &  entry 
)

Whether a history entry can still be opened: its player or clubs still exist and its section is available (out of work only a few are).

◆ close()

void Navigation::close ( GUIView *  view)

Closes the top screen, back to the one beneath it or Home (Esc). When that is the previous screen of the history, this is a step back.

◆ forward()

void Navigation::forward ( GUIView *  view)

Re-opens the screen Back left (Alt+Right, mouse button 5).

◆ open()

void Navigation::open ( GUIView *  view,
NavSection  section 
)

Opens a top-level section.

◆ openClub()

void Navigation::openClub ( GUIView *  view,
TeamID  teamId 
)

Opens another club's squad list.

◆ openCompare()

void Navigation::openCompare ( GUIView *  view,
PlayerID  first,
PlayerID  second 
)

Compares players side by side (0 = pick one on the screen).

◆ openMatchReport()

void Navigation::openMatchReport ( GUIView *  view,
GameDateValue  date,
TeamID  homeId,
TeamID  awayId 
)

Opens the report of a played fixture above the current screen.

◆ openPlayer()

void Navigation::openPlayer ( GUIView *  view,
PlayerID  playerId 
)

Opens a player's profile above the current screen.