![]() |
RigsofRods
Soft-body Physics Simulation
|
#include <GUIManager.h>
Data Structures | |
struct | GuiTheme |
Public Types | |
enum | MouseCursorVisibility { MouseCursorVisibility::VISIBLE, MouseCursorVisibility::HIDDEN, MouseCursorVisibility::SUPRESSED } |
Public Member Functions | |
GUIManager () | |
~GUIManager () | |
void | ShowMessageBox (const char *title, const char *text, bool allow_close=true, const char *btn1_text="OK", const char *btn2_text=nullptr) |
void | ShowMessageBox (GUI::MessageBoxConfig const &conf) |
void | RequestGuiCaptureKeyboard (bool val) |
Pass true during frame to prevent input passing to application. More... | |
bool | IsGuiCaptureKeyboardRequested () const |
void | ApplyGuiCaptureKeyboard () |
Call after rendered frame to apply queued value. More... | |
bool | AreStaticMenusAllowed () |
i.e. top menubar / vehicle UI buttons More... | |
void | NewImGuiFrame (float dt) |
void | DrawMainMenuGui () |
void | DrawSimulationGui (float dt) |
Touches live data; must be called in sync with sim. thread. More... | |
void | DrawSimGuiBuffered (GfxActor *player_gfx_actor) |
Reads data from simbuffer. More... | |
void | DrawCommonGui () |
void | SetGuiHidden (bool visible) |
bool | IsGuiHidden () const |
void | SetSceneManagerForGuiRendering (Ogre::SceneManager *scene_manager) |
void | ShutdownMyGUI () |
void | SetMouseCursorVisibility (MouseCursorVisibility visi) |
void | UpdateMouseCursorVisibility () |
void | SupressCursor (bool do_supress) |
void | SetUpMenuWallpaper () |
OgreImGui & | GetImGui () |
GuiTheme & | GetTheme () |
void | WakeUpGUI () |
void | UpdateInputEvents (float dt) |
Private Member Functions | |
void | SetupImGui () |
void | eventRequestTag (const MyGUI::UString &_tag, MyGUI::UString &_result) |
Private Attributes | |
MyGUI::Gui * | m_mygui = nullptr |
MyGUI::OgrePlatform * | m_mygui_platform = nullptr |
bool | m_hide_gui = false |
OgreImGui | m_imgui |
GuiTheme | m_theme |
bool | m_gui_kb_capture_queued = false |
Resets and accumulates every frame. More... | |
bool | m_gui_kb_capture_requested = false |
Effective value, persistent. More... | |
Ogre::Timer | m_last_mousemove_time |
bool | m_is_cursor_supressed = false |
True if cursor was manually hidden. More... | |
Definition at line 66 of file GUIManager.h.
|
strong |
Definition at line 94 of file GUIManager.h.
RoR::GUIManager::GUIManager | ( | ) |
RoR::GUIManager::~GUIManager | ( | ) |
Definition at line 87 of file GUIManager.cpp.
void RoR::GUIManager::ApplyGuiCaptureKeyboard | ( | ) |
Call after rendered frame to apply queued value.
Definition at line 108 of file GUIManager.cpp.
bool RoR::GUIManager::AreStaticMenusAllowed | ( | ) |
i.e. top menubar / vehicle UI buttons
Definition at line 113 of file GUIManager.cpp.
void RoR::GUIManager::DrawCommonGui | ( | ) |
Definition at line 375 of file GUIManager.cpp.
void RoR::GUIManager::DrawMainMenuGui | ( | ) |
Definition at line 398 of file GUIManager.cpp.
void RoR::GUIManager::DrawSimGuiBuffered | ( | GfxActor * | player_gfx_actor | ) |
Reads data from simbuffer.
Definition at line 160 of file GUIManager.cpp.
void RoR::GUIManager::DrawSimulationGui | ( | float | dt | ) |
Touches live data; must be called in sync with sim. thread.
Definition at line 127 of file GUIManager.cpp.
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
void RoR::GUIManager::NewImGuiFrame | ( | float | dt | ) |
Definition at line 302 of file GUIManager.cpp.
void RoR::GUIManager::RequestGuiCaptureKeyboard | ( | bool | val | ) |
Pass true during frame to prevent input passing to application.
Definition at line 448 of file GUIManager.cpp.
void RoR::GUIManager::SetGuiHidden | ( | bool | visible | ) |
Definition at line 263 of file GUIManager.cpp.
void RoR::GUIManager::SetMouseCursorVisibility | ( | MouseCursorVisibility | visi | ) |
Definition at line 274 of file GUIManager.cpp.
void RoR::GUIManager::SetSceneManagerForGuiRendering | ( | Ogre::SceneManager * | scene_manager | ) |
Definition at line 258 of file GUIManager.cpp.
|
private |
Definition at line 322 of file GUIManager.cpp.
void RoR::GUIManager::SetUpMenuWallpaper | ( | ) |
void RoR::GUIManager::ShowMessageBox | ( | const char * | title, |
const char * | text, | ||
bool | allow_close = true , |
||
const char * | btn1_text = "OK" , |
||
const char * | btn2_text = nullptr |
||
) |
Definition at line 438 of file GUIManager.cpp.
void RoR::GUIManager::ShowMessageBox | ( | GUI::MessageBoxConfig const & | conf | ) |
void RoR::GUIManager::ShutdownMyGUI | ( | ) |
Definition at line 91 of file GUIManager.cpp.
void RoR::GUIManager::SupressCursor | ( | bool | do_supress | ) |
void RoR::GUIManager::UpdateInputEvents | ( | float | dt | ) |
Definition at line 467 of file GUIManager.cpp.
void RoR::GUIManager::UpdateMouseCursorVisibility | ( | ) |
void RoR::GUIManager::WakeUpGUI | ( | ) |
Definition at line 453 of file GUIManager.cpp.
GUI::GameChatBox RoR::GUIManager::ChatBox |
Definition at line 114 of file GUIManager.h.
GUI::CollisionsDebug RoR::GUIManager::CollisionsDebug |
Definition at line 105 of file GUIManager.h.
GUI::ConsoleWindow RoR::GUIManager::ConsoleWindow |
Definition at line 124 of file GUIManager.h.
GUI::DirectionArrow RoR::GUIManager::DirectionArrow |
Definition at line 126 of file GUIManager.h.
GUI::FlexbodyDebug RoR::GUIManager::FlexbodyDebug |
Definition at line 128 of file GUIManager.h.
GUI::FrictionSettings RoR::GUIManager::FrictionSettings |
Definition at line 117 of file GUIManager.h.
GUI::GameAbout RoR::GUIManager::GameAbout |
Definition at line 107 of file GUIManager.h.
GUI::GameControls RoR::GUIManager::GameControls |
Definition at line 119 of file GUIManager.h.
GUI::GameMainMenu RoR::GUIManager::GameMainMenu |
Definition at line 106 of file GUIManager.h.
GUI::GameSettings RoR::GUIManager::GameSettings |
Definition at line 108 of file GUIManager.h.
GUI::LoadingWindow RoR::GUIManager::LoadingWindow |
Definition at line 122 of file GUIManager.h.
|
private |
Resets and accumulates every frame.
Definition at line 174 of file GUIManager.h.
|
private |
Effective value, persistent.
Definition at line 175 of file GUIManager.h.
|
private |
Definition at line 171 of file GUIManager.h.
|
private |
Definition at line 172 of file GUIManager.h.
|
private |
True if cursor was manually hidden.
Definition at line 177 of file GUIManager.h.
|
private |
Definition at line 176 of file GUIManager.h.
|
private |
Definition at line 169 of file GUIManager.h.
|
private |
Definition at line 170 of file GUIManager.h.
|
private |
Definition at line 173 of file GUIManager.h.
GUI::MainSelector RoR::GUIManager::MainSelector |
Definition at line 113 of file GUIManager.h.
Ogre::Overlay* RoR::GUIManager::MenuWallpaper = nullptr |
Definition at line 129 of file GUIManager.h.
GUI::MessageBoxDialog RoR::GUIManager::MessageBoxDialog |
Definition at line 111 of file GUIManager.h.
GUI::MpClientList RoR::GUIManager::MpClientList |
Definition at line 116 of file GUIManager.h.
GUI::MultiplayerSelector RoR::GUIManager::MultiplayerSelector |
Definition at line 112 of file GUIManager.h.
GUI::NodeBeamUtils RoR::GUIManager::NodeBeamUtils |
Definition at line 121 of file GUIManager.h.
GUI::RepositorySelector RoR::GUIManager::RepositorySelector |
Definition at line 120 of file GUIManager.h.
GUI::SimActorStats RoR::GUIManager::SimActorStats |
Definition at line 109 of file GUIManager.h.
GUI::SimPerfStats RoR::GUIManager::SimPerfStats |
Definition at line 110 of file GUIManager.h.
GUI::SurveyMap RoR::GUIManager::SurveyMap |
Definition at line 125 of file GUIManager.h.
GUI::TextureToolWindow RoR::GUIManager::TextureToolWindow |
Definition at line 118 of file GUIManager.h.
GUI::TopMenubar RoR::GUIManager::TopMenubar |
Definition at line 123 of file GUIManager.h.
GUI::VehicleButtons RoR::GUIManager::VehicleButtons |
Definition at line 127 of file GUIManager.h.
GUI::VehicleDescription RoR::GUIManager::VehicleDescription |
Definition at line 115 of file GUIManager.h.