|
Player12
An open source football management simulator
|
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. | |
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.
| 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).
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 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.
| void Navigation::forward | ( | GUIView * | view | ) |
Re-opens the screen Back left (Alt+Right, mouse button 5).
| void Navigation::open | ( | GUIView * | view, |
| NavSection | section | ||
| ) |
Opens a top-level section.
Compares players side by side (0 = pick one on the screen).
| void Navigation::openMatchReport | ( | GUIView * | view, |
| GameDateValue | date, | ||
| TeamID | homeId, | ||
| TeamID | awayId | ||
| ) |
Opens the report of a played fixture above the current screen.