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

#include <GUI_GameControls.h>

+ Collaboration diagram for RoR::GUI::GameControls:

Public Member Functions

void SetVisible (bool visible)
 
bool IsVisible () const
 
bool IsHovered () const
 
bool IsInteractiveKeyBindingActive ()
 
void Draw ()
 

Data Fields

const ImVec4 GRAY_HINT_TEXT = ImVec4(0.62f, 0.62f, 0.61f, 1.f)
 

Private Member Functions

void DrawEventEditBox ()
 Only the editing UI, embeddable. More...
 
void DrawEvent (RoR::events ev_code)
 One line in table. More...
 
void DrawControlsTab (const char *prefix)
 Draws table with events matching prefix. More...
 
void DrawControlsTabItem (const char *name, const char *prefix)
 Wraps DrawControlsTab() with scrollbar and tabs-bar logic. More...
 
void ApplyChanges ()
 
void CancelChanges ()
 
void SaveMapFile ()
 
void ReloadMapFile ()
 
bool ShouldDisplay (event_trigger_t &trig)
 

Private Attributes

bool m_is_visible = false
 
bool m_is_hovered = false
 
float m_colum_widths [3] = {}
 body->header width sync More...
 
int m_active_mapping_file = InputEngine::DEFAULT_MAPFILE_DEVICEID
 
bool m_unsaved_changes = false
 
RoR::events m_active_event = events::EV_MODE_LAST
 
event_trigger_tm_active_trigger = nullptr
 
eventtypes m_selected_evtype = eventtypes::ET_NONE
 
Str< 1000 > m_active_buffer
 
bool m_interactive_keybinding_active = false
 
bool m_interactive_keybinding_expl = true
 

Detailed Description

Definition at line 28 of file GUI_GameControls.h.

Member Function Documentation

◆ ApplyChanges()

void GameControls::ApplyChanges ( )
private

Definition at line 354 of file GUI_GameControls.cpp.

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

◆ CancelChanges()

void GameControls::CancelChanges ( )
private

Definition at line 392 of file GUI_GameControls.cpp.

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

◆ Draw()

void GameControls::Draw ( )

Definition at line 37 of file GUI_GameControls.cpp.

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

◆ DrawControlsTab()

void GameControls::DrawControlsTab ( const char *  prefix)
private

Draws table with events matching prefix.

Definition at line 297 of file GUI_GameControls.cpp.

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

◆ DrawControlsTabItem()

void GameControls::DrawControlsTabItem ( const char *  name,
const char *  prefix 
)
private

Wraps DrawControlsTab() with scrollbar and tabs-bar logic.

Definition at line 321 of file GUI_GameControls.cpp.

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

◆ DrawEvent()

void GameControls::DrawEvent ( RoR::events  ev_code)
private

One line in table.

Definition at line 156 of file GUI_GameControls.cpp.

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

◆ DrawEventEditBox()

void GameControls::DrawEventEditBox ( )
private

Only the editing UI, embeddable.

Definition at line 231 of file GUI_GameControls.cpp.

+ Here is the call graph for this function:

◆ IsHovered()

bool RoR::GUI::GameControls::IsHovered ( ) const
inline

Definition at line 35 of file GUI_GameControls.h.

◆ IsInteractiveKeyBindingActive()

bool RoR::GUI::GameControls::IsInteractiveKeyBindingActive ( )
inline

Definition at line 37 of file GUI_GameControls.h.

◆ IsVisible()

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

Definition at line 34 of file GUI_GameControls.h.

+ Here is the caller graph for this function:

◆ ReloadMapFile()

void GameControls::ReloadMapFile ( )
private

Definition at line 408 of file GUI_GameControls.cpp.

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

◆ SaveMapFile()

void GameControls::SaveMapFile ( )
private

Definition at line 401 of file GUI_GameControls.cpp.

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

◆ SetVisible()

void GameControls::SetVisible ( bool  visible)

Definition at line 416 of file GUI_GameControls.cpp.

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

◆ ShouldDisplay()

bool GameControls::ShouldDisplay ( event_trigger_t trig)
private

Definition at line 427 of file GUI_GameControls.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ GRAY_HINT_TEXT

const ImVec4 RoR::GUI::GameControls::GRAY_HINT_TEXT = ImVec4(0.62f, 0.62f, 0.61f, 1.f)

Definition at line 31 of file GUI_GameControls.h.

◆ m_active_buffer

Str<1000> RoR::GUI::GameControls::m_active_buffer
private

Definition at line 67 of file GUI_GameControls.h.

◆ m_active_event

RoR::events RoR::GUI::GameControls::m_active_event = events::EV_MODE_LAST
private

Definition at line 64 of file GUI_GameControls.h.

◆ m_active_mapping_file

int RoR::GUI::GameControls::m_active_mapping_file = InputEngine::DEFAULT_MAPFILE_DEVICEID
private

Definition at line 60 of file GUI_GameControls.h.

◆ m_active_trigger

event_trigger_t* RoR::GUI::GameControls::m_active_trigger = nullptr
private

Definition at line 65 of file GUI_GameControls.h.

◆ m_colum_widths

float RoR::GUI::GameControls::m_colum_widths[3] = {}
private

body->header width sync

Definition at line 57 of file GUI_GameControls.h.

◆ m_interactive_keybinding_active

bool RoR::GUI::GameControls::m_interactive_keybinding_active = false
private

Definition at line 68 of file GUI_GameControls.h.

◆ m_interactive_keybinding_expl

bool RoR::GUI::GameControls::m_interactive_keybinding_expl = true
private

Definition at line 69 of file GUI_GameControls.h.

◆ m_is_hovered

bool RoR::GUI::GameControls::m_is_hovered = false
private

Definition at line 56 of file GUI_GameControls.h.

◆ m_is_visible

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

Definition at line 55 of file GUI_GameControls.h.

◆ m_selected_evtype

eventtypes RoR::GUI::GameControls::m_selected_evtype = eventtypes::ET_NONE
private

Definition at line 66 of file GUI_GameControls.h.

◆ m_unsaved_changes

bool RoR::GUI::GameControls::m_unsaved_changes = false
private

Definition at line 61 of file GUI_GameControls.h.


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