Player12
An open source football management simulator
Loading...
Searching...
No Matches
management_scene.h File Reference
#include <imgui.h>
#include <array>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
#include "global/types.h"
#include "gui/gui_scene.h"
#include "gui/nav_history.h"
#include "gui/scenes/holiday_dialog.h"
#include "gui/swipe_gesture.h"
#include "model/gamedate.h"
#include "model/next_action.h"

Go to the source code of this file.

Classes

class  ManagementScene
 Base class for every in-career screen. More...
 
struct  ManagementScene::PaletteEntry
 

Namespaces

namespace  Navigation
 Navigation between management screens.
 

Functions

void Navigation::open (GUIView *view, NavSection section)
 Opens a top-level section.
 
void Navigation::openPlayer (GUIView *view, PlayerID playerId)
 Opens a player's profile above the current screen.
 
void Navigation::openMatchReport (GUIView *view, GameDateValue date, TeamID homeId, TeamID awayId)
 Opens the report of a played fixture above the current screen.
 
void Navigation::openClub (GUIView *view, TeamID teamId)
 Opens another club's squad list.
 
void Navigation::openCompare (GUIView *view, PlayerID first, PlayerID second=0)
 Compares players side by side (0 = pick one on the screen).
 
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).
 
void Navigation::forward (GUIView *view)
 Re-opens the screen Back left (Alt+Right, mouse button 5).
 
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.
 
bool Navigation::canGoBack (GUIView *view)
 Whether back() would change the screen.
 
bool Navigation::canGoForward (GUIView *view)
 Whether forward() would change the screen.
 
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).