RigsofRods
Soft-body Physics Simulation
GUI_GameSettings.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2016-2020 Petr Ohlidal
4 
5  For more information, see http://www.rigsofrods.org/
6 
7  Rigs of Rods is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License version 3, as
9  published by the Free Software Foundation.
10 
11  Rigs of Rods is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #pragma once
21 
22 #include "Application.h"
23 #include "OgreImGui.h"
24 
25 namespace RoR {
26 namespace GUI {
27 
29 {
30 public:
31  void Draw();
32 
33  bool IsVisible() const { return m_is_visible; }
34  void SetVisible(bool v);
35 
36 private:
38  void DrawGeneralSettings();
39  void DrawGameplaySettings();
40  void DrawGraphicsSettings();
41  void DrawAudioSettings();
42  void DrawControlSettings();
43  void DrawDiagSettings();
44 
45  // GUI state
46  bool m_is_visible = false;
47  ImVec2 m_window_size = ImVec2(0, 0);
48 
49  // Buffers for text input boxes
55 
56  // Pre-formatted combobox items
66 
67  // Render settings
68  bool m_render_must_restart = false;
69  float m_bump_height = 0.0f;
70 };
71 
72 } // namespace GUI
73 } // namespace RoR
RoR::GUI::GameSettings::DrawControlSettings
void DrawControlSettings()
Definition: GUI_GameSettings.cpp:448
RoR::GUI::GameSettings::m_combo_items_extcam_mode
std::string m_combo_items_extcam_mode
Definition: GUI_GameSettings.h:64
RoR::GUI::GameSettings::SetVisible
void SetVisible(bool v)
Definition: GUI_GameSettings.cpp:493
RoR::GUI::GameSettings::m_window_size
ImVec2 m_window_size
Definition: GUI_GameSettings.h:47
RoR::GUI::GameSettings::IsVisible
bool IsVisible() const
Definition: GUI_GameSettings.h:33
RoR::GUI::GameSettings::m_buf_diag_preset_vehicle
Str< 1000 > m_buf_diag_preset_vehicle
Definition: GUI_GameSettings.h:51
RoR::GUI::GameSettings::DrawAudioSettings
void DrawAudioSettings()
Definition: GUI_GameSettings.cpp:308
RoR::GUI::GameSettings::Draw
void Draw()
Definition: GUI_GameSettings.cpp:37
OgreImGui.h
RoR::GUI::GameSettings::m_combo_items_water_mode
std::string m_combo_items_water_mode
Definition: GUI_GameSettings.h:63
RoR::GUI::GameSettings::m_combo_items_vegetation
std::string m_combo_items_vegetation
Definition: GUI_GameSettings.h:62
RoR::GUI::GameSettings::m_bump_height
float m_bump_height
Definition: GUI_GameSettings.h:69
RoR::Str< 1000 >
RoR::GUI::GameSettings::DrawDiagSettings
void DrawDiagSettings()
Definition: GUI_GameSettings.cpp:414
RoR::GUI::GameSettings::DrawGameplaySettings
void DrawGameplaySettings()
Definition: GUI_GameSettings.cpp:269
RoR::GUI::GameSettings::m_buf_app_extra_mod_dir
Str< 1000 > m_buf_app_extra_mod_dir
Definition: GUI_GameSettings.h:53
RoR::GUI::GameSettings::m_buf_diag_preset_terrain
Str< 1000 > m_buf_diag_preset_terrain
Definition: GUI_GameSettings.h:50
RoR::GUI::GameSettings::m_combo_items_sky_mode
std::string m_combo_items_sky_mode
Definition: GUI_GameSettings.h:60
RoR::GUI::GameSettings::DrawRenderSystemSettings
void DrawRenderSystemSettings()
Definition: GUI_GameSettings.cpp:118
Application.h
Central state/object manager and communications hub.
RoR::GUI::GameSettings::m_combo_items_tex_filter
std::string m_combo_items_tex_filter
Definition: GUI_GameSettings.h:61
RoR::GUI::GameSettings::m_buf_diag_preset_veh_config
Str< 1000 > m_buf_diag_preset_veh_config
Definition: GUI_GameSettings.h:52
RoR::GUI::GameSettings::m_is_visible
bool m_is_visible
Definition: GUI_GameSettings.h:46
RoR::GUI::GameSettings::m_combo_items_shadow_type
std::string m_combo_items_shadow_type
Definition: GUI_GameSettings.h:59
RoR::GUI::GameSettings::DrawGeneralSettings
void DrawGeneralSettings()
Definition: GUI_GameSettings.cpp:195
RoR::GUI::GameSettings::m_combo_items_light_sources
std::string m_combo_items_light_sources
Definition: GUI_GameSettings.h:58
RoR::GUI::GameSettings::m_combo_items_gearbox_mode
std::string m_combo_items_gearbox_mode
Definition: GUI_GameSettings.h:57
RoR::GUI::GameSettings::DrawGraphicsSettings
void DrawGraphicsSettings()
Definition: GUI_GameSettings.cpp:338
RoR::GUI::GameSettings::m_combo_items_input_grab
std::string m_combo_items_input_grab
Definition: GUI_GameSettings.h:65
RoR::GUI::GameSettings::m_render_must_restart
bool m_render_must_restart
Definition: GUI_GameSettings.h:68
RoR
Definition: AppContext.h:36
RoR::GUI::GameSettings
Definition: GUI_GameSettings.h:28
RoR::GUI::GameSettings::m_buf_io_outgauge_ip
Str< 1000 > m_buf_io_outgauge_ip
Definition: GUI_GameSettings.h:54