|
Player12
An open source football management simulator
|
Base class for every in-career screen. More...
#include <management_scene.h>
Classes | |
| struct | PaletteEntry |
Public Member Functions | |
| ManagementScene (GUIView *guiViewPtr) | |
| void | render () final |
| Renders the scene. | |
| void | onEnter () override |
| Called when the scene is entered/becomes active. | |
| void | onResume () override |
| Called when an overlay above this scene closes and it becomes the active scene again. Screens use it to refresh cached view models after a match, a transfer or any other state change made elsewhere. | |
| void | handleEvent (const SDL_Event &event) override |
| std::optional< NavEntry > | historyEntry () const override |
Public Member Functions inherited from GUIScene | |
| GUIScene (GUIView *guiView_ptr) | |
| Constructs a new GUIScene. | |
| virtual | ~GUIScene ()=default |
| Destroys the GUIScene. | |
| virtual void | update (float deltaTime)=0 |
| Updates scene logic. | |
| virtual void | onExit () |
| Called when the scene is exited/becomes inactive. | |
| virtual void | onResize (int width, int height) |
| Called when the window is resized. | |
| virtual SceneID | getID () const =0 |
| Gets the ID of the scene. | |
Protected Member Functions | |
| virtual void | renderContent ()=0 |
| Draws the page body inside the content region. | |
| virtual NavSection | navSection () const =0 |
| Sidebar entry highlighted for this screen. | |
| virtual void | refresh () |
| Rebuilds cached view models from the game state. | |
| virtual std::optional< EditorContext > | editorContext () const |
| void | showToast (std::string message, bool isError=false) |
| Shows a short confirmation message in the top bar. | |
| HolidayDialog & | holidayDialog () |
| Holiday planner and return report of this screen. | |
Protected Member Functions inherited from GUIScene | |
| SDL_Renderer * | getRenderer () const |
| Gets the SDL renderer. | |
| SDL_Window * | getWindow () const |
| Gets the SDL window. | |
| GUIView * | getGuiView () const |
| Gets the associated GUIView. | |
| void | changeScene (std::unique_ptr< GUIScene > newScene) |
| Requests a scene change. | |
| void | quit () |
| Requests the application to quit. | |
Private Member Functions | |
| void | renderSidebar (bool collapsed) |
| void | renderSidebarFlyout () |
| Screens of the hovered hub beside the collapsed sidebar. | |
| void | renderTopBar (float height) |
| void | renderPalette () |
| void | renderMainMenuConfirm () |
| void | handleShortcuts () |
| void | renderSwipeIndicator () |
| void | openPalette () |
| void | buildPaletteIndex () |
| void | filterPalette () |
| void | activatePaletteEntry (const PaletteEntry &entry) |
| void | syncClubAccent () const |
| void | pollSaveStatus () |
Private Attributes | |
| std::string | toast_message |
| float | toast_seconds = 0.0f |
| bool | toast_is_error = false |
| std::string | save_label |
| float | save_poll_seconds = 0.0f |
| bool | save_failed = false |
| bool | palette_requested = false |
| bool | palette_focus_input = false |
| std::array< char, 64 > | palette_query {} |
| std::string | palette_filtered_query |
| std::vector< PaletteEntry > | palette_entries |
| std::vector< size_t > | palette_matches |
| std::vector< NextAction > | palette_actions |
| int | palette_selection = 0 |
| SwipeGesture::Step | pending_history_step = SwipeGesture::Step::NONE |
| bool | main_menu_confirm_requested = false |
| HolidayDialog | holiday_dialog |
| bool | sidebar_nav_overflow = false |
| int | flyout_hub = -1 |
| ImVec2 | flyout_anchor {} |
| float | flyout_grace = 0.0f |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
| class | GameFlowTest_ManagementScreensMidSeason_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Base class for every in-career screen.
Draws the persistent shell (sidebar navigation, top bar with club, date, balance and the context-aware Continue button, command palette and keyboard shortcuts) and delegates the page body to renderContent().
|
explicit |
|
private |
|
private |
|
inlineprotectedvirtual |
Override for new/custom data domains. Record filtering and related items belong to the page; schema discovery remains inside the generic editor.
|
private |
|
overridevirtual |
Mouse side buttons and the sideways touchpad swipe (Back / Forward).
Reimplemented from GUIScene.
|
private |
|
overridevirtual |
The screen's sidebar section; detail screens override it.
Reimplemented from GUIScene.
Reimplemented in MatchReportScene, PlayerCompareScene, PlayerProfileScene, and RosterScene.
|
inlineprotected |
Holiday planner and return report of this screen.
|
protectedpure virtual |
Sidebar entry highlighted for this screen.
Implemented in AwardsScene, CalendarScene, CallUpScene, ClubScene, DataHubScene, DelegationScene, FixturesScene, InboxScene, InternationalScene, LineupScene, MainGameScene, ManagerScene, MatchReportScene, MedicalScene, NewsScene, OppositionScene, PlayerCompareScene, PlayerProfileScene, PreseasonScene, RecordsScene, ReservesScene, RosterScene, ScoutingScene, SquadPlannerScene, StaffScene, StandingsScene, StrategyScene, TimelineScene, TrainingScene, TransferMarketScene, and YouthScene.
|
overridevirtual |
Called when the scene is entered/becomes active.
Reimplemented from GUIScene.
|
overridevirtual |
Called when an overlay above this scene closes and it becomes the active scene again. Screens use it to refresh cached view models after a match, a transfer or any other state change made elsewhere.
Reimplemented from GUIScene.
Reimplemented in TransferMarketScene.
|
private |
|
private |
|
inlineprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented in AwardsScene, CalendarScene, CallUpScene, ClubScene, DataHubScene, DelegationScene, FixturesScene, InboxScene, InternationalScene, LineupScene, MainGameScene, ManagerScene, MatchReportScene, MedicalScene, NewsScene, OppositionScene, PlayerCompareScene, PlayerProfileScene, PreseasonScene, RecordsScene, ReservesScene, RosterScene, ScoutingScene, SquadPlannerScene, StaffScene, StandingsScene, StrategyScene, TimelineScene, TrainingScene, TransferMarketScene, and YouthScene.
|
finalvirtual |
Renders the scene.
Implements GUIScene.
|
protectedpure virtual |
Draws the page body inside the content region.
Implemented in AwardsScene, CalendarScene, CallUpScene, ClubScene, DataHubScene, DelegationScene, FixturesScene, InboxScene, InternationalScene, LineupScene, MainGameScene, ManagerScene, MatchReportScene, MedicalScene, NewsScene, OppositionScene, PlayerCompareScene, PlayerProfileScene, PreseasonScene, RecordsScene, ReservesScene, RosterScene, ScoutingScene, SquadPlannerScene, StaffScene, StandingsScene, StrategyScene, TimelineScene, TrainingScene, TransferMarketScene, and YouthScene.
|
private |
|
private |
|
private |
|
private |
Screens of the hovered hub beside the collapsed sidebar.
|
private |
Arrow bubble at the window edge while a sideways swipe is under way.
|
private |
|
protected |
Shows a short confirmation message in the top bar.
|
private |
|
friend |
|
friend |
|
private |
|
private |
Seconds left once the mouse has left.
|
private |
Hub whose flyout is open beside the collapsed sidebar (-1: none).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Back / Forward asked for by a side button or swipe, done next frame.
|
private |
|
private |
Top-bar save indicator, refreshed about once per second.
|
private |
|
private |
Whether the sidebar navigation needed scrolling last frame.
|
private |
|
private |
|
private |