Player12
An open source football management simulator
Loading...
Searching...
No Matches
management_scene.cpp File Reference
#include "gui/scenes/management_scene.h"
#include <SDL3/SDL.h>
#include <imgui.h>
#include <imgui_internal.h>
#include <algorithm>
#include <cmath>
#include <format>
#include <memory>
#include <utility>
#include "controller/game_controller.h"
#include "database/gamedata.h"
#include "global/global.h"
#include "global/language_manager.h"
#include "gui/gui_view.h"
#include "gui/input_actions.h"
#include "gui/scenes/about_scene.h"
#include "gui/scenes/awards_scene.h"
#include "gui/scenes/calendar_scene.h"
#include "gui/scenes/callup_scene.h"
#include "gui/scenes/club_scene.h"
#include "gui/scenes/data_hub_scene.h"
#include "gui/scenes/delegation_scene.h"
#include "gui/scenes/fixtures_scene.h"
#include "gui/scenes/help_scene.h"
#include "gui/scenes/inbox_scene.h"
#include "gui/scenes/international_scene.h"
#include "gui/scenes/lineup_scene.h"
#include "gui/scenes/main_game_scene.h"
#include "gui/scenes/main_menu_scene.h"
#include "gui/scenes/manager_scene.h"
#include "gui/scenes/match_report_scene.h"
#include "gui/scenes/medical_scene.h"
#include "gui/scenes/news_scene.h"
#include "gui/scenes/onboarding_overlay.h"
#include "gui/scenes/opposition_scene.h"
#include "gui/scenes/player_compare_scene.h"
#include "gui/scenes/player_profile_scene.h"
#include "gui/scenes/preseason_scene.h"
#include "gui/scenes/records_scene.h"
#include "gui/scenes/reserves_scene.h"
#include "gui/scenes/roster_scene.h"
#include "gui/scenes/scouting_scene.h"
#include "gui/scenes/settings_scene.h"
#include "gui/scenes/squad_planner_scene.h"
#include "gui/scenes/staff_scene.h"
#include "gui/scenes/standings_scene.h"
#include "gui/scenes/strategy_scene.h"
#include "gui/scenes/timeline_scene.h"
#include "gui/scenes/training_scene.h"
#include "gui/scenes/transfer_market_scene.h"
#include "gui/scenes/youth_scene.h"
#include "gui/view_models/player_view.h"
#include "gui/widgets/format.h"
#include "gui/widgets/icons.h"
#include "gui/widgets/theme.h"
#include "gui/widgets/widgets.h"
#include "model/competition.h"
#include "model/inbox.h"
#include "model/role_utils.h"

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).
 
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).
 
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.