Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
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
25namespace RoR {
26namespace GUI {
27
29{
30public:
31 void Draw();
32
33 bool IsVisible() const { return m_is_visible; }
34 void SetVisible(bool v);
35
37
38private:
42 void DrawUiSettings();
44 void DrawAudioSettings();
46 void DrawDiagSettings();
47
48 // UI settings
49 const float UI_SELECTOR_WIDTH = 275.0f;
50 void DrawUiPresetCombo();
51 void DrawUiDefaultDashboard(CacheEntryPtr& entry, CVar* cvar, CacheCategoryId category_id, const std::string& label);
54
55 // GUI state
56 bool m_is_visible = false;
57 ImVec2 m_window_size = ImVec2(0, 0);
58
59 // Buffers for text input boxes
67
68 // Pre-formatted combobox items
80
81 // Render settings
83 float m_bump_height = 0.0f;
84};
85
86} // namespace GUI
87} // namespace RoR
Central state/object manager and communications hub.
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts.
Definition CVar.h:53
std::string m_combo_items_tex_filter
std::string m_combo_items_shadow_type
CacheCategoryId default_dash_being_selected
Str< 1000 > m_buf_app_extra_mod_dir
std::string m_combo_items_extcam_mode
Str< 1000 > m_buf_diag_preset_terrain
Str< 1000 > m_buf_diag_preset_vehicle
std::string m_combo_items_sky_mode
Str< 1000 > m_buf_audio_default_efx_preset
CacheEntryPtr m_ui_known_dash_truck
std::string m_combo_items_water_mode
Str< 1000 > m_buf_audio_force_listener_efx_preset
std::string m_cached_uipreset_combo_string
void DrawUiDefaultDashboard(CacheEntryPtr &entry, CVar *cvar, CacheCategoryId category_id, const std::string &label)
std::string m_combo_items_input_grab
std::string m_combo_items_gearbox_mode
std::string m_combo_items_light_sources
CacheEntryPtr m_ui_known_dash_boat
Str< 1000 > m_buf_diag_preset_veh_config
std::string m_combo_items_efx_reverb_engine
std::string m_combo_items_vegetation
Wrapper for classic c-string (local buffer) Refresher: strlen() excludes '\0' terminator; strncat() A...
Definition Str.h:36
CacheCategoryId
@ CID_None