RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields | Private Member Functions | Private Attributes
RoR::GUI::GameMainMenu Class Reference

#include <GUI_GameMainMenu.h>

Public Member Functions

bool IsVisible () const
 
void SetVisible (bool v)
 
void Draw ()
 
void CacheUpdatedNotice ()
 

Data Fields

const float WINDOW_WIDTH = 200.f
 
const ImVec4 WINDOW_BG_COLOR = ImVec4(0.1f, 0.1f, 0.1f, 0.8f)
 
const ImVec4 BUTTON_BG_COLOR = ImVec4(0.25f, 0.25f, 0.24f, 0.6f)
 
const ImVec2 BUTTON_PADDING = ImVec2(4.f, 6.f)
 

Private Member Functions

void DrawMenuPanel ()
 
void DrawVersionBox ()
 
void DrawNoticeBox ()
 
bool HighlightButton (const std::string &text, ImVec2 btn_size, int index) const
 
void HandleInputEvents ()
 

Private Attributes

bool m_is_visible = false
 
int m_num_buttons
 
int m_kb_focus_index = -1
 
int m_kb_enter_index = -1
 
const char * title
 
bool cache_updated = false
 

Detailed Description

Definition at line 33 of file GUI_GameMainMenu.h.

Member Function Documentation

◆ CacheUpdatedNotice()

void GameMainMenu::CacheUpdatedNotice ( )

Definition at line 56 of file GUI_GameMainMenu.cpp.

+ Here is the caller graph for this function:

◆ Draw()

void GameMainMenu::Draw ( )

Definition at line 43 of file GUI_GameMainMenu.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawMenuPanel()

void GameMainMenu::DrawMenuPanel ( )
private

Definition at line 61 of file GUI_GameMainMenu.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawNoticeBox()

void GameMainMenu::DrawNoticeBox ( )
private

Definition at line 253 of file GUI_GameMainMenu.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawVersionBox()

void GameMainMenu::DrawVersionBox ( )
private

Definition at line 227 of file GUI_GameMainMenu.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleInputEvents()

void GameMainMenu::HandleInputEvents ( )
private

Definition at line 288 of file GUI_GameMainMenu.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HighlightButton()

bool GameMainMenu::HighlightButton ( const std::string &  text,
ImVec2  btn_size,
int  index 
) const
private

Definition at line 283 of file GUI_GameMainMenu.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsVisible()

bool RoR::GUI::GameMainMenu::IsVisible ( ) const
inline

Definition at line 42 of file GUI_GameMainMenu.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void RoR::GUI::GameMainMenu::SetVisible ( bool  v)
inline

Definition at line 43 of file GUI_GameMainMenu.h.

+ Here is the caller graph for this function:

Field Documentation

◆ BUTTON_BG_COLOR

const ImVec4 RoR::GUI::GameMainMenu::BUTTON_BG_COLOR = ImVec4(0.25f, 0.25f, 0.24f, 0.6f)

Definition at line 39 of file GUI_GameMainMenu.h.

◆ BUTTON_PADDING

const ImVec2 RoR::GUI::GameMainMenu::BUTTON_PADDING = ImVec2(4.f, 6.f)

Definition at line 40 of file GUI_GameMainMenu.h.

◆ cache_updated

bool RoR::GUI::GameMainMenu::cache_updated = false
private

Definition at line 59 of file GUI_GameMainMenu.h.

◆ m_is_visible

bool RoR::GUI::GameMainMenu::m_is_visible = false
private

Definition at line 54 of file GUI_GameMainMenu.h.

◆ m_kb_enter_index

int RoR::GUI::GameMainMenu::m_kb_enter_index = -1
private

Definition at line 57 of file GUI_GameMainMenu.h.

◆ m_kb_focus_index

int RoR::GUI::GameMainMenu::m_kb_focus_index = -1
private

Definition at line 56 of file GUI_GameMainMenu.h.

◆ m_num_buttons

int RoR::GUI::GameMainMenu::m_num_buttons
private

Definition at line 55 of file GUI_GameMainMenu.h.

◆ title

const char* RoR::GUI::GameMainMenu::title
private

Definition at line 58 of file GUI_GameMainMenu.h.

◆ WINDOW_BG_COLOR

const ImVec4 RoR::GUI::GameMainMenu::WINDOW_BG_COLOR = ImVec4(0.1f, 0.1f, 0.1f, 0.8f)

Definition at line 38 of file GUI_GameMainMenu.h.

◆ WINDOW_WIDTH

const float RoR::GUI::GameMainMenu::WINDOW_WIDTH = 200.f

Definition at line 37 of file GUI_GameMainMenu.h.


The documentation for this class was generated from the following files: