From 296ab7d73e0af4fdb4a54645275ab28186ddffa1 Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Thu, 7 Aug 2025 17:57:13 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20HarbourM?= =?UTF-8?q?asters/SpaghettiKart@334fdeafd26c15e03b4f198002ad86b8422c0e2f?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MenuTypes_8h.html | 12 +- MenuTypes_8h_source.html | 12 +- Menu_8h_source.html | 22 +- PortMenu_8h.html | 2 + PortMenu_8h.js | 1 + PortMenu_8h_source.html | 168 +- UIWidgets_8h.html | 4 + UIWidgets_8h.js | 4 + UIWidgets_8h_source.html | 1464 +++++++++--------- basics.js | 8 +- ceremony__and__credits_8c.html | 4 +- ceremony__and__credits_8h.html | 2 +- classGameUI_1_1PortMenu__coll__graph.map | 4 +- classGameUI_1_1PortMenu__coll__graph.md5 | 2 +- classGameUI_1_1PortMenu__coll__graph.svg | 221 +-- classGameUI_1_1PortMenu__coll__graph_org.svg | 223 +-- classShip_1_1Menu.html | 28 +- classShip_1_1Menu.js | 1 + classShip_1_1Menu__coll__graph.map | 4 +- classShip_1_1Menu__coll__graph.md5 | 2 +- classShip_1_1Menu__coll__graph.svg | 213 +-- classShip_1_1Menu__coll__graph_org.svg | 215 +-- collision__viewer_8c.html | 2 +- collision__viewer_8h.html | 2 +- compiling.html | 24 +- doxygen_crawl.html | 49 +- freecam_8cpp.html | 2 +- freecam_8h.html | 2 +- functions_u.html | 1 + functions_vars_u.html | 1 + md_docs_2BUILDING.html | 12 +- menu__items_8c.html | 2 +- menu__items_8h.html | 2 +- menudata.js | 41 +- namespaceGameUI.html | 30 + namespaceGameUI.js | 1 + namespaceUIWidgets.html | 22 + namespaceUIWidgets.js | 4 + namespacemembers.html | 252 --- namespacemembers_b.html | 127 ++ namespacemembers_c.html | 138 ++ namespacemembers_d.html | 142 ++ namespacemembers_dup.js | 24 + namespacemembers_e.html | 124 ++ namespacemembers_enum.html | 1 + namespacemembers_eval.html | 6 + namespacemembers_f.html | 124 ++ namespacemembers_g.html | 129 ++ namespacemembers_h.html | 122 ++ namespacemembers_i.html | 132 ++ namespacemembers_l.html | 131 ++ namespacemembers_m.html | 150 ++ namespacemembers_n.html | 124 ++ namespacemembers_o.html | 130 ++ namespacemembers_p.html | 137 ++ namespacemembers_r.html | 128 ++ namespacemembers_s.html | 138 ++ namespacemembers_t.html | 123 ++ namespacemembers_u.html | 127 ++ namespacemembers_v.html | 123 ++ namespacemembers_vars.html | 1 + namespacemembers_w.html | 125 ++ namespacemembers_y.html | 122 ++ navtreedata.js | 180 +-- navtreeindex15.js | 14 +- navtreeindex16.js | 6 +- navtreeindex17.js | 6 +- navtreeindex18.js | 6 +- navtreeindex19.js | 6 +- navtreeindex20.js | 6 +- navtreeindex21.js | 6 +- navtreeindex22.js | 6 +- navtreeindex23.js | 6 +- navtreeindex24.js | 6 +- navtreeindex25.js | 6 +- navtreeindex26.js | 14 +- navtreeindex27.js | 6 +- navtreeindex28.js | 6 +- navtreeindex29.js | 6 +- navtreeindex30.js | 6 +- navtreeindex31.js | 6 +- navtreeindex32.js | 6 +- navtreeindex33.js | 6 +- navtreeindex34.js | 6 +- navtreeindex35.js | 6 +- navtreeindex36.js | 6 +- navtreeindex37.js | 6 +- navtreeindex38.js | 6 +- navtreeindex39.js | 6 +- navtreeindex40.js | 6 +- navtreeindex41.js | 8 +- navtreeindex42.js | 16 +- navtreeindex43.js | 6 +- navtreeindex44.js | 6 +- navtreeindex45.js | 6 +- navtreeindex46.js | 6 +- navtreeindex47.js | 6 +- navtreeindex48.js | 6 +- navtreeindex49.js | 6 +- navtreeindex50.js | 6 +- navtreeindex51.js | 6 +- navtreeindex52.js | 6 +- navtreeindex53.js | 6 +- navtreeindex54.js | 6 +- navtreeindex55.js | 40 +- navtreeindex56.js | 126 +- navtreeindex57.js | 56 +- navtreeindex58.js | 56 +- navtreeindex59.js | 56 +- navtreeindex60.js | 56 +- navtreeindex61.js | 56 +- navtreeindex62.js | 56 +- navtreeindex63.js | 56 +- navtreeindex64.js | 56 +- navtreeindex65.js | 56 +- navtreeindex66.js | 56 +- navtreeindex67.js | 56 +- navtreeindex68.js | 56 +- navtreeindex69.js | 56 +- navtreeindex70.js | 56 +- navtreeindex71.js | 56 +- navtreeindex72.js | 56 +- navtreeindex73.js | 56 +- navtreeindex74.js | 56 +- navtreeindex75.js | 56 +- navtreeindex76.js | 56 +- navtreeindex77.js | 56 +- navtreeindex78.js | 56 +- navtreeindex79.js | 56 +- navtreeindex80.js | 56 +- navtreeindex81.js | 56 +- navtreeindex82.js | 56 +- navtreeindex83.js | 56 +- navtreeindex84.js | 56 +- navtreeindex85.js | 56 +- navtreeindex86.js | 56 +- navtreeindex87.js | 56 +- navtreeindex88.js | 56 +- navtreeindex89.js | 56 +- navtreeindex90.js | 56 +- navtreeindex91.js | 56 +- navtreeindex92.js | 56 +- navtreeindex93.js | 56 +- navtreeindex94.js | 56 +- navtreeindex95.js | 56 +- navtreeindex96.js | 56 +- navtreeindex97.js | 56 +- navtreeindex98.js | 27 + objects_8h.html | 2 +- podium__ceremony__actors_8c.html | 2 +- podium__ceremony__actors_8h.html | 2 +- render__objects_8c.html | 12 +- render__objects_8h.html | 2 +- search/all_15.js | 287 ++-- search/all_17.js | 929 +++++------ search/all_19.js | 2 +- search/all_3.js | 2 +- search/all_5.js | 851 +++++----- search/all_6.js | 2 +- search/all_8.js | 2 +- search/all_e.js | 2 +- search/all_f.js | 608 ++++---- search/enums_a.js | 11 +- search/enumvalues_11.js | 119 +- search/enumvalues_2.js | 207 +-- search/variables_15.js | 559 +++---- search/variables_d.js | 227 +-- some__data_8c.html | 2 +- sounds_8h.html | 2 +- todo.html | 36 +- uniondu.html | 2 +- update__objects_8c.html | 4 +- 172 files changed, 7532 insertions(+), 4972 deletions(-) create mode 100644 namespacemembers_b.html create mode 100644 namespacemembers_c.html create mode 100644 namespacemembers_d.html create mode 100644 namespacemembers_dup.js create mode 100644 namespacemembers_e.html create mode 100644 namespacemembers_f.html create mode 100644 namespacemembers_g.html create mode 100644 namespacemembers_h.html create mode 100644 namespacemembers_i.html create mode 100644 namespacemembers_l.html create mode 100644 namespacemembers_m.html create mode 100644 namespacemembers_n.html create mode 100644 namespacemembers_o.html create mode 100644 namespacemembers_p.html create mode 100644 namespacemembers_r.html create mode 100644 namespacemembers_s.html create mode 100644 namespacemembers_t.html create mode 100644 namespacemembers_u.html create mode 100644 namespacemembers_v.html create mode 100644 namespacemembers_w.html create mode 100644 namespacemembers_y.html diff --git a/MenuTypes_8h.html b/MenuTypes_8h.html index e0e2a57b6..b6b58f296 100644 --- a/MenuTypes_8h.html +++ b/MenuTypes_8h.html @@ -299,12 +299,12 @@ Variables Initial value:
std::variant<UIWidgets::ButtonOptions, UIWidgets::CheckboxOptions, UIWidgets::ComboboxOptions,
UIWidgets::FloatSliderOptions, UIWidgets::IntSliderOptions, UIWidgets::WidgetOptions>
-
Definition UIWidgets.h:127
-
Definition UIWidgets.h:145
-
Definition UIWidgets.h:173
-
Definition UIWidgets.h:261
-
Definition UIWidgets.h:207
-
Definition UIWidgets.h:107
+
Definition UIWidgets.h:132
+
Definition UIWidgets.h:150
+
Definition UIWidgets.h:178
+
Definition UIWidgets.h:266
+
Definition UIWidgets.h:212
+
Definition UIWidgets.h:112
diff --git a/MenuTypes_8h_source.html b/MenuTypes_8h_source.html index 43f00ae06..87fde1a68 100644 --- a/MenuTypes_8h_source.html +++ b/MenuTypes_8h_source.html @@ -549,12 +549,12 @@ $(function(){initNavTree('MenuTypes_8h_source.html',''); initResizable(true); })
SidebarEntry
Definition MenuTypes.h:242
SidebarEntry::columnCount
uint32_t columnCount
Definition MenuTypes.h:243
SidebarEntry::columnWidgets
std::vector< std::vector< WidgetInfo > > columnWidgets
Definition MenuTypes.h:244
-
UIWidgets::ButtonOptions
Definition UIWidgets.h:127
-
UIWidgets::CheckboxOptions
Definition UIWidgets.h:145
-
UIWidgets::ComboboxOptions
Definition UIWidgets.h:173
-
UIWidgets::FloatSliderOptions
Definition UIWidgets.h:261
-
UIWidgets::IntSliderOptions
Definition UIWidgets.h:207
-
UIWidgets::WidgetOptions
Definition UIWidgets.h:107
+
UIWidgets::ButtonOptions
Definition UIWidgets.h:132
+
UIWidgets::CheckboxOptions
Definition UIWidgets.h:150
+
UIWidgets::ComboboxOptions
Definition UIWidgets.h:178
+
UIWidgets::FloatSliderOptions
Definition UIWidgets.h:266
+
UIWidgets::IntSliderOptions
Definition UIWidgets.h:212
+
UIWidgets::WidgetOptions
Definition UIWidgets.h:112
WidgetInfo
Definition MenuTypes.h:103
WidgetInfo::options
std::shared_ptr< UIWidgets::WidgetOptions > options
Definition MenuTypes.h:107
WidgetInfo::preFunc
WidgetFunc preFunc
Definition MenuTypes.h:110
diff --git a/Menu_8h_source.html b/Menu_8h_source.html index 4796423a1..6b3937b70 100644 --- a/Menu_8h_source.html +++ b/Menu_8h_source.html @@ -208,13 +208,14 @@ $(function(){initNavTree('Menu_8h_source.html',''); initResizable(true); });
93 bool popped;
94 ImVec2 poppedSize;
95 ImVec2 poppedPos;
-
96 float windowHeight;
-
97 float windowWidth;
-
98};
+
96 float uiScale = 1.0f;
+
97 float windowHeight;
+
98 float windowWidth;
+
99};
-
99} // namespace Ship
-
100
-
101#endif // MENU_H
+
100} // namespace Ship
+
101
+
102#endif // MENU_H
SetMarioRaceway
void SetMarioRaceway(void)
Definition Game.cpp:200
MenuTypes.h
WIDGET_SEARCH
@ WIDGET_SEARCH
Definition MenuTypes.h:44
@@ -223,6 +224,7 @@ $(function(){initNavTree('Menu_8h_source.html',''); initResizable(true); });
Ship::Menu::RemoveSidebarSearch
void RemoveSidebarSearch()
Definition Menu.cpp:79
Ship::Menu::mName
std::string mName
Definition Menu.h:40
Ship::Menu::UpdateElement
void UpdateElement() override
Definition Menu.cpp:122
+
Ship::Menu::uiScale
float uiScale
Definition Menu.h:96
Ship::Menu::MenuDrawItem
void MenuDrawItem(WidgetInfo &widget, uint32_t width, UIWidgets::Colors menuThemeIndex)
Definition Menu.cpp:219
Ship::Menu::~Menu
virtual ~Menu()
Definition Menu.h:24
Ship::Menu::configWindowBackend
Ship::WindowBackend configWindowBackend
Definition Menu.h:50
@@ -236,10 +238,10 @@ $(function(){initNavTree('Menu_8h_source.html',''); initResizable(true); });
Ship::Menu::GetDisabledMap
std::unordered_map< uint32_t, disabledInfo > & GetDisabledMap()
Definition Menu.cpp:215
Ship::Menu::menuEntries
std::unordered_map< std::string, MainMenuEntry > menuEntries
Definition Menu.h:42
Ship::Menu::DrawSearchResults
uint32_t DrawSearchResults(std::string &menuSearchText)
Definition Menu.cpp:173
-
Ship::Menu::windowWidth
float windowWidth
Definition Menu.h:97
+
Ship::Menu::windowWidth
float windowWidth
Definition Menu.h:98
Ship::Menu::InitElement
void InitElement() override
Definition Menu.cpp:112
Ship::Menu::Draw
void Draw() override
Definition Menu.cpp:466
-
Ship::Menu::windowHeight
float windowHeight
Definition Menu.h:96
+
Ship::Menu::windowHeight
float windowHeight
Definition Menu.h:97
Ship::Menu::AddMenuEntry
void AddMenuEntry(std::string entryName, const char *entryCvar)
Definition Menu.cpp:210
Ship::Menu::poppedPos
ImVec2 poppedPos
Definition Menu.h:95
Ship::Menu::searchSidebarEntry
const SidebarEntry searchSidebarEntry
Definition Menu.h:54
@@ -275,8 +277,8 @@ $(function(){initNavTree('Menu_8h_source.html',''); initResizable(true); });
UIWidgets::Colors
Colors
Definition UIWidgets.h:40
UIWidgets::LightBlue
@ LightBlue
Definition UIWidgets.h:46
SidebarEntry
Definition MenuTypes.h:242
-
UIWidgets::WidgetOptions
Definition UIWidgets.h:107
-
UIWidgets::WidgetOptions::Tooltip
WidgetOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:117
+
UIWidgets::WidgetOptions
Definition UIWidgets.h:112
+
UIWidgets::WidgetOptions::Tooltip
WidgetOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:122
WidgetInfo
Definition MenuTypes.h:103
diff --git a/PortMenu_8h.html b/PortMenu_8h.html index e79734a5c..f3fa48996 100644 --- a/PortMenu_8h.html +++ b/PortMenu_8h.html @@ -141,6 +141,8 @@ Namespaces + + diff --git a/PortMenu_8h.js b/PortMenu_8h.js index 6a0f5944b..48e0ad70b 100644 --- a/PortMenu_8h.js +++ b/PortMenu_8h.js @@ -3,6 +3,7 @@ var PortMenu_8h = [ "GameUI::PortMenu", "classGameUI_1_1PortMenu.html", "classGameUI_1_1PortMenu" ], [ "GameUI::introBehaviourOptions", "namespaceGameUI.html#a558acec8f6c4934e81e0dcbc5aa6150d", null ], [ "GameUI::logLevels", "namespaceGameUI.html#a67e005bbaa2729af7d9e65fd1a4fb892", null ], + [ "GameUI::menuExtentOptions", "namespaceGameUI.html#ab4d46dc9f627364944694cce110ede7f", null ], [ "GameUI::menuThemeOptions", "namespaceGameUI.html#a3d46807cc832ea9dce8ac8d36836343f", null ], [ "GameUI::motionBlurOptions", "namespaceGameUI.html#ab20a9c8e684dca4e2dec51739052716a", null ], [ "GameUI::textureFilteringMap", "namespaceGameUI.html#a67da7a14b217f464d6b21c06e2e64309", null ] diff --git a/PortMenu_8h_source.html b/PortMenu_8h_source.html index a2b139a1d..194cd9a70 100644 --- a/PortMenu_8h_source.html +++ b/PortMenu_8h_source.html @@ -120,79 +120,86 @@ $(function(){initNavTree('PortMenu_8h_source.html',''); initResizable(true); });
10namespace GameUI {
11
-
12static const std::unordered_map<int32_t, const char*> menuThemeOptions = {
-
13 { UIWidgets::Colors::Red, "Red" },
-
14 { UIWidgets::Colors::DarkRed, "Dark Red" },
-
15 { UIWidgets::Colors::Orange, "Orange" },
-
16 { UIWidgets::Colors::Green, "Green" },
-
17 { UIWidgets::Colors::DarkGreen, "Dark Green" },
-
18 { UIWidgets::Colors::LightBlue, "Light Blue" },
-
19 { UIWidgets::Colors::Blue, "Blue" },
-
20 { UIWidgets::Colors::DarkBlue, "Dark Blue" },
-
21 { UIWidgets::Colors::Indigo, "Indigo" },
-
22 { UIWidgets::Colors::Violet, "Violet" },
-
23 { UIWidgets::Colors::Purple, "Purple" },
-
24 { UIWidgets::Colors::Brown, "Brown" },
-
25 { UIWidgets::Colors::Gray, "Gray" },
-
26 { UIWidgets::Colors::DarkGray, "Dark Gray" },
-
27};
+
12static const std::unordered_map<int32_t, const char*> menuExtentOptions = {
+
13 { UIWidgets::MenuExtent::Condensed, "Condensed" },
+
14 { UIWidgets::MenuExtent::Stretched, "Stretched" },
+
15};
-
28
-
-
29static const std::unordered_map<int32_t, const char*> introBehaviourOptions = {
-
30 { 0, "Both" },
-
31 { 1, "Authentic" },
-
32 { 2, "Start Menu" },
-
33 { 3, "Main Menu" },
-
34};
+
16
+
+
17static const std::unordered_map<int32_t, const char*> menuThemeOptions = {
+
18 { UIWidgets::Colors::Red, "Red" },
+
19 { UIWidgets::Colors::DarkRed, "Dark Red" },
+
20 { UIWidgets::Colors::Orange, "Orange" },
+
21 { UIWidgets::Colors::Green, "Green" },
+
22 { UIWidgets::Colors::DarkGreen, "Dark Green" },
+
23 { UIWidgets::Colors::LightBlue, "Light Blue" },
+
24 { UIWidgets::Colors::Blue, "Blue" },
+
25 { UIWidgets::Colors::DarkBlue, "Dark Blue" },
+
26 { UIWidgets::Colors::Indigo, "Indigo" },
+
27 { UIWidgets::Colors::Violet, "Violet" },
+
28 { UIWidgets::Colors::Purple, "Purple" },
+
29 { UIWidgets::Colors::Brown, "Brown" },
+
30 { UIWidgets::Colors::Gray, "Gray" },
+
31 { UIWidgets::Colors::DarkGray, "Dark Gray" },
+
32};
-
35
-
-
36static const std::unordered_map<int32_t, const char*> textureFilteringMap = {
-
37 { Fast::FilteringMode::FILTER_THREE_POINT, "Three-Point" },
-
38 { Fast::FilteringMode::FILTER_LINEAR, "Linear" },
-
39 { Fast::FilteringMode::FILTER_NONE, "None" },
-
40};
+
33
+
+
34static const std::unordered_map<int32_t, const char*> introBehaviourOptions = {
+
35 { 0, "Both" },
+
36 { 1, "Authentic" },
+
37 { 2, "Start Menu" },
+
38 { 3, "Main Menu" },
+
39};
-
41
-
-
42static const std::unordered_map<int32_t, const char*> motionBlurOptions = {
-
43 { MOTION_BLUR_DYNAMIC, "Dynamic (default)" },
-
44 { MOTION_BLUR_ALWAYS_OFF, "Always Off" },
-
45 { MOTION_BLUR_ALWAYS_ON, "Always On" },
-
46};
+
40
+
+
41static const std::unordered_map<int32_t, const char*> textureFilteringMap = {
+
42 { Fast::FilteringMode::FILTER_THREE_POINT, "Three-Point" },
+
43 { Fast::FilteringMode::FILTER_LINEAR, "Linear" },
+
44 { Fast::FilteringMode::FILTER_NONE, "None" },
+
45};
-
47
-
-
48static const std::unordered_map<int32_t, const char*> logLevels = {
-
49 { DEBUG_LOG_TRACE, "Trace" }, { DEBUG_LOG_DEBUG, "Debug" }, { DEBUG_LOG_INFO, "Info" },
-
50 { DEBUG_LOG_WARN, "Warn" }, { DEBUG_LOG_ERROR, "Error" }, { DEBUG_LOG_CRITICAL, "Critical" },
-
51 { DEBUG_LOG_OFF, "Off" },
-
52};
+
46
+
+
47static const std::unordered_map<int32_t, const char*> motionBlurOptions = {
+
48 { MOTION_BLUR_DYNAMIC, "Dynamic (default)" },
+
49 { MOTION_BLUR_ALWAYS_OFF, "Always Off" },
+
50 { MOTION_BLUR_ALWAYS_ON, "Always On" },
+
51};
+
+
52
+
+
53static const std::unordered_map<int32_t, const char*> logLevels = {
+
54 { DEBUG_LOG_TRACE, "Trace" }, { DEBUG_LOG_DEBUG, "Debug" }, { DEBUG_LOG_INFO, "Info" },
+
55 { DEBUG_LOG_WARN, "Warn" }, { DEBUG_LOG_ERROR, "Error" }, { DEBUG_LOG_CRITICAL, "Critical" },
+
56 { DEBUG_LOG_OFF, "Off" },
+
57};
-
53
-
-
54class PortMenu : public Ship::Menu {
-
55 public:
-
56 PortMenu(const std::string& consoleVariable, const std::string& name);
-
58
-
59 void InitElement() override;
-
60 void DrawElement() override;
-
61 void UpdateElement() override;
-
62 void Draw() override;
+
+
59class PortMenu : public Ship::Menu {
+
60 public:
+
61 PortMenu(const std::string& consoleVariable, const std::string& name);
+
63
-
64 void AddSidebarEntry(std::string sectionName, std::string sidbarName, uint32_t columnCount);
-
65 WidgetInfo& AddWidget(WidgetPath& pathInfo, std::string widgetName, WidgetType widgetType);
-
66 void AddSettings();
-
67 void AddEnhancements();
-
68 void AddRulesets();
-
69 void AddDevTools();
-
70};
+
64 void InitElement() override;
+
65 void DrawElement() override;
+
66 void UpdateElement() override;
+
67 void Draw() override;
+
68
+
69 void AddSidebarEntry(std::string sectionName, std::string sidbarName, uint32_t columnCount);
+
70 WidgetInfo& AddWidget(WidgetPath& pathInfo, std::string widgetName, WidgetType widgetType);
+
71 void AddSettings();
+
72 void AddEnhancements();
+
73 void AddRulesets();
+
74 void AddDevTools();
+
75};
-
71} // namespace BenGui
-
72
-
73#endif // PORTMENU_H
+
76} // namespace BenGui
+
77
+
78#endif // PORTMENU_H
@ MOTION_BLUR_DYNAMIC
Definition MenuTypes.h:61
@ MOTION_BLUR_ALWAYS_ON
Definition MenuTypes.h:63
@ MOTION_BLUR_ALWAYS_OFF
Definition MenuTypes.h:62
@@ -206,25 +213,28 @@ $(function(){initNavTree('PortMenu_8h_source.html',''); initResizable(true); });
@ DEBUG_LOG_CRITICAL
Definition MenuTypes.h:72
-
PortMenu(const std::string &consoleVariable, const std::string &name)
Definition PortMenu.cpp:554
+
PortMenu(const std::string &consoleVariable, const std::string &name)
Definition PortMenu.cpp:571
void AddSidebarEntry(std::string sectionName, std::string sidbarName, uint32_t columnCount)
Definition PortMenu.cpp:33
WidgetInfo & AddWidget(WidgetPath &pathInfo, std::string widgetName, WidgetType widgetType)
Definition PortMenu.cpp:40
-
~PortMenu()
Definition PortMenu.h:57
-
void InitElement() override
Definition PortMenu.cpp:562
-
void DrawElement() override
Definition PortMenu.cpp:641
-
void UpdateElement() override
Definition PortMenu.cpp:633
-
void AddRulesets()
Definition PortMenu.cpp:431
-
void AddEnhancements()
Definition PortMenu.cpp:339
+
~PortMenu()
Definition PortMenu.h:62
+
void InitElement() override
Definition PortMenu.cpp:579
+
void DrawElement() override
Definition PortMenu.cpp:658
+
void UpdateElement() override
Definition PortMenu.cpp:650
+
void AddRulesets()
Definition PortMenu.cpp:448
+
void AddEnhancements()
Definition PortMenu.cpp:356
void AddSettings()
Definition PortMenu.cpp:92
-
void Draw() override
Definition PortMenu.cpp:637
-
void AddDevTools()
Definition PortMenu.cpp:492
+
void Draw() override
Definition PortMenu.cpp:654
+
void AddDevTools()
Definition PortMenu.cpp:509
Definition Menu.h:18
Definition FreecamWindow.cpp:36
-
static const std::unordered_map< int32_t, const char * > menuThemeOptions
Definition PortMenu.h:12
-
static const std::unordered_map< int32_t, const char * > introBehaviourOptions
Definition PortMenu.h:29
-
static const std::unordered_map< int32_t, const char * > textureFilteringMap
Definition PortMenu.h:36
-
static const std::unordered_map< int32_t, const char * > logLevels
Definition PortMenu.h:48
-
static const std::unordered_map< int32_t, const char * > motionBlurOptions
Definition PortMenu.h:42
+
static const std::unordered_map< int32_t, const char * > menuThemeOptions
Definition PortMenu.h:17
+
static const std::unordered_map< int32_t, const char * > introBehaviourOptions
Definition PortMenu.h:34
+
static const std::unordered_map< int32_t, const char * > textureFilteringMap
Definition PortMenu.h:41
+
static const std::unordered_map< int32_t, const char * > logLevels
Definition PortMenu.h:53
+
static const std::unordered_map< int32_t, const char * > motionBlurOptions
Definition PortMenu.h:47
+
static const std::unordered_map< int32_t, const char * > menuExtentOptions
Definition PortMenu.h:12
+
@ Stretched
Definition UIWidgets.h:109
+
@ Condensed
Definition UIWidgets.h:108
@ Blue
Definition UIWidgets.h:47
@ Red
Definition UIWidgets.h:41
@ DarkRed
Definition UIWidgets.h:42
diff --git a/UIWidgets_8h.html b/UIWidgets_8h.html index e3da98aeb..31c696950 100644 --- a/UIWidgets_8h.html +++ b/UIWidgets_8h.html @@ -217,6 +217,10 @@ Enumerations , UIWidgets::Right }
+ +

Variables

static const std::unordered_map< int32_t, const char * > GameUI::menuExtentOptions
 
static const std::unordered_map< int32_t, const char * > GameUI::menuThemeOptions
 
static const std::unordered_map< int32_t, const char * > GameUI::introBehaviourOptions
 
enum  UIWidgets::MenuExtent { UIWidgets::Condensed +, UIWidgets::Stretched + }
 
diff --git a/UIWidgets_8h.js b/UIWidgets_8h.js index 0454f2573..3e3b81727 100644 --- a/UIWidgets_8h.js +++ b/UIWidgets_8h.js @@ -43,6 +43,10 @@ var UIWidgets_8h = [ "UIWidgets::None", "namespaceUIWidgets.html#a23ae264367182e084aed61c4b582521baf6c9204d3b575d2f94614341a8fcb652", null ], [ "UIWidgets::Within", "namespaceUIWidgets.html#a23ae264367182e084aed61c4b582521bac9c5f60c8731ee084e46a4516dd0146c", null ] ] ], + [ "UIWidgets::MenuExtent", "namespaceUIWidgets.html#a2f7c93f2b8d08a16c305b29d415d7cc5", [ + [ "UIWidgets::Condensed", "namespaceUIWidgets.html#a2f7c93f2b8d08a16c305b29d415d7cc5aa5c7af7144725d0642cdbfd6bab35af7", null ], + [ "UIWidgets::Stretched", "namespaceUIWidgets.html#a2f7c93f2b8d08a16c305b29d415d7cc5a964b6779c78f51abc4a05ac417028182", null ] + ] ], [ "UIWidgets::BeginMenu", "namespaceUIWidgets.html#aed73bb0e7d02ca787973de9803f10562", null ], [ "UIWidgets::Button", "namespaceUIWidgets.html#aff1b4b5ec89aa4afa79223288c55a91e", null ], [ "UIWidgets::Checkbox", "namespaceUIWidgets.html#a28268b432c9b36af9e83d12b8b28bb35", null ], diff --git a/UIWidgets_8h_source.html b/UIWidgets_8h_source.html index 66b3a8124..15fbea719 100644 --- a/UIWidgets_8h_source.html +++ b/UIWidgets_8h_source.html @@ -231,710 +231,717 @@ $(function(){initNavTree('UIWidgets_8h_source.html',''); initResizable(true); })
106
-
107 struct WidgetOptions{
-
108 const char* tooltip = "";
-
109 bool disabled = false;
-
110 const char* disabledTooltip = "";
-
111 Colors color = Colors::NoColor;
-
112
-
- -
114 color = color = color_;
-
115 return *this;
-
116 }
+ + + +
110 };
-
-
117 WidgetOptions& Tooltip(const char* tooltip_) {
-
118 tooltip = tooltip_;
-
119 return *this;
-
120 }
+
111
+
+ +
113 const char* tooltip = "";
+
114 bool disabled = false;
+
115 const char* disabledTooltip = "";
+ +
117
+
+ +
119 color = color = color_;
+
120 return *this;
+
121 }
-
-
121 WidgetOptions& Disabled(bool disabled_) {
-
122 disabled = disabled_;
-
123 return *this;
-
124 }
+
+
122 WidgetOptions& Tooltip(const char* tooltip_) {
+
123 tooltip = tooltip_;
+
124 return *this;
+
125 }
-
125 };
+
+
126 WidgetOptions& Disabled(bool disabled_) {
+
127 disabled = disabled_;
+
128 return *this;
+
129 }
-
126
-
- - - -
130
-
-
131 ButtonOptions& Size(ImVec2 size_) {
-
132 size = size_;
-
133 return *this;
-
134 }
+
130 };
-
-
135 ButtonOptions& Tooltip(const char* tooltip_) {
-
136 WidgetOptions::tooltip = tooltip_;
-
137 return *this;
-
138 }
+
131
+
+ + + +
135
+
+
136 ButtonOptions& Size(ImVec2 size_) {
+
137 size = size_;
+
138 return *this;
+
139 }
-
- -
140 WidgetOptions::color = color = color_;
-
141 return *this;
-
142 }
+
+
140 ButtonOptions& Tooltip(const char* tooltip_) {
+
141 WidgetOptions::tooltip = tooltip_;
+
142 return *this;
+
143 }
-
143 };
+
+ +
145 WidgetOptions::color = color = color_;
+
146 return *this;
+
147 }
-
144
-
- -
146 bool defaultValue = false; // Only applicable to CVarCheckbox
- - - -
150
-
-
151 CheckboxOptions& DefaultValue(bool defaultValue_) {
-
152 defaultValue = defaultValue_;
-
153 return *this;
-
154 }
+
148 };
-
- -
156 alignment = alignment_;
-
157 return *this;
-
158 }
+
149
+
+ +
151 bool defaultValue = false; // Only applicable to CVarCheckbox
+ + + +
155
+
+
156 CheckboxOptions& DefaultValue(bool defaultValue_) {
+
157 defaultValue = defaultValue_;
+
158 return *this;
+
159 }
-
- -
160 labelPosition = labelPosition_;
-
161 return *this;
-
162 }
+
+ +
161 alignment = alignment_;
+
162 return *this;
+
163 }
-
-
163 CheckboxOptions& Tooltip(const char* tooltip_) {
-
164 WidgetOptions::tooltip = tooltip_;
-
165 return *this;
-
166 }
+
+ +
165 labelPosition = labelPosition_;
+
166 return *this;
+
167 }
-
- -
168 WidgetOptions::color = color = color_;
-
169 return *this;
-
170 }
+
+
168 CheckboxOptions& Tooltip(const char* tooltip_) {
+
169 WidgetOptions::tooltip = tooltip_;
+
170 return *this;
+
171 }
-
171 };
+
+ +
173 WidgetOptions::color = color = color_;
+
174 return *this;
+
175 }
-
172
-
- -
174 std::unordered_map<int32_t, const char*> comboMap = {};
-
175 uint32_t defaultIndex = 0; // Only applicable to CVarCombobox
- - -
178 ImGuiComboFlags flags = 0;
- -
180
-
-
181 ComboboxOptions& ComboMap(std::unordered_map<int32_t, const char*> comboMap_) {
-
182 comboMap = comboMap_;
-
183 return *this;
-
184 }
+
176 };
-
-
185 ComboboxOptions& DefaultIndex(uint32_t defaultIndex_) {
-
186 defaultIndex = defaultIndex_;
-
187 return *this;
-
188 }
+
177
+
+ +
179 std::unordered_map<int32_t, const char*> comboMap = {};
+
180 uint32_t defaultIndex = 0; // Only applicable to CVarCombobox
+ + +
183 ImGuiComboFlags flags = 0;
+ +
185
+
+
186 ComboboxOptions& ComboMap(std::unordered_map<int32_t, const char*> comboMap_) {
+
187 comboMap = comboMap_;
+
188 return *this;
+
189 }
-
- -
190 alignment = alignment_;
-
191 return *this;
-
192 }
+
+
190 ComboboxOptions& DefaultIndex(uint32_t defaultIndex_) {
+
191 defaultIndex = defaultIndex_;
+
192 return *this;
+
193 }
-
- -
194 labelPosition = labelPosition_;
-
195 return *this;
-
196 }
+
+ +
195 alignment = alignment_;
+
196 return *this;
+
197 }
-
-
197 ComboboxOptions& Tooltip(const char* tooltip_) {
-
198 WidgetOptions::tooltip = tooltip_;
-
199 return *this;
-
200 }
+
+ +
199 labelPosition = labelPosition_;
+
200 return *this;
+
201 }
-
- -
202 WidgetOptions::color = color = color_;
-
203 return *this;
-
204 }
+
+
202 ComboboxOptions& Tooltip(const char* tooltip_) {
+
203 WidgetOptions::tooltip = tooltip_;
+
204 return *this;
+
205 }
-
205 };
+
+ +
207 WidgetOptions::color = color = color_;
+
208 return *this;
+
209 }
-
206
-
- -
208 bool showButtons = true;
-
209 const char* format = "%d";
-
210 int32_t step = 1;
-
211 int32_t min = 1;
-
212 int32_t max = 10;
-
213 int32_t defaultValue = 1;
- - - -
217 ImGuiSliderFlags flags = 0;
-
218
-
-
219 IntSliderOptions& ShowButtons(bool showButtons_) {
-
220 showButtons = showButtons_;
-
221 return *this;
-
222 }
+
210 };
-
-
223 IntSliderOptions& Format(const char* format_) {
-
224 format = format_;
-
225 return *this;
-
226 }
+
211
+
+ +
213 bool showButtons = true;
+
214 const char* format = "%d";
+
215 int32_t step = 1;
+
216 int32_t min = 1;
+
217 int32_t max = 10;
+
218 int32_t defaultValue = 1;
+ + + +
222 ImGuiSliderFlags flags = 0;
+
223
+
+
224 IntSliderOptions& ShowButtons(bool showButtons_) {
+
225 showButtons = showButtons_;
+
226 return *this;
+
227 }
-
-
227 IntSliderOptions& Step(int32_t step_) {
-
228 step = step_;
-
229 return *this;
-
230 }
+
+
228 IntSliderOptions& Format(const char* format_) {
+
229 format = format_;
+
230 return *this;
+
231 }
-
-
231 IntSliderOptions& Min(int32_t min_) {
-
232 min = min_;
-
233 return *this;
-
234 }
+
+
232 IntSliderOptions& Step(int32_t step_) {
+
233 step = step_;
+
234 return *this;
+
235 }
-
-
235 IntSliderOptions& Max(int32_t max_) {
-
236 max = max_;
-
237 return *this;
-
238 }
+
+
236 IntSliderOptions& Min(int32_t min_) {
+
237 min = min_;
+
238 return *this;
+
239 }
-
-
239 IntSliderOptions& DefaultValue(int32_t defaultValue_) {
-
240 defaultValue = defaultValue_;
-
241 return *this;
-
242 }
+
+
240 IntSliderOptions& Max(int32_t max_) {
+
241 max = max_;
+
242 return *this;
+
243 }
-
- -
244 alignment = alignment_;
-
245 return *this;
-
246 }
+
+
244 IntSliderOptions& DefaultValue(int32_t defaultValue_) {
+
245 defaultValue = defaultValue_;
+
246 return *this;
+
247 }
-
- -
248 labelPosition = labelPosition_;
-
249 return *this;
-
250 }
+
+ +
249 alignment = alignment_;
+
250 return *this;
+
251 }
-
-
251 IntSliderOptions& Tooltip(const char* tooltip_) {
-
252 WidgetOptions::tooltip = tooltip_;
-
253 return *this;
-
254 }
+
+ +
253 labelPosition = labelPosition_;
+
254 return *this;
+
255 }
-
- -
256 WidgetOptions::color = color = color_;
-
257 return *this;
-
258 }
+
+
256 IntSliderOptions& Tooltip(const char* tooltip_) {
+
257 WidgetOptions::tooltip = tooltip_;
+
258 return *this;
+
259 }
-
259 };
+
+ +
261 WidgetOptions::color = color = color_;
+
262 return *this;
+
263 }
-
260
-
- -
262 bool showButtons = true;
-
263 const char* format = "%f";
-
264 float step = 0.01f;
-
265 float min = 0.01f;
-
266 float max = 10.0f;
-
267 float defaultValue = 1.0f;
-
268 bool isPercentage = false; // Multiplies visual value by 100
- - - -
272 ImGuiSliderFlags flags = 0;
-
273
-
-
274 FloatSliderOptions& ShowButtons(bool showButtons_) {
-
275 showButtons = showButtons_;
-
276 return *this;
-
277 }
+
264 };
-
-
278 FloatSliderOptions& Format(const char* format_) {
-
279 format = format_;
-
280 return *this;
-
281 }
+
265
+
+ +
267 bool showButtons = true;
+
268 const char* format = "%f";
+
269 float step = 0.01f;
+
270 float min = 0.01f;
+
271 float max = 10.0f;
+
272 float defaultValue = 1.0f;
+
273 bool isPercentage = false; // Multiplies visual value by 100
+ + + +
277 ImGuiSliderFlags flags = 0;
+
278
+
+
279 FloatSliderOptions& ShowButtons(bool showButtons_) {
+
280 showButtons = showButtons_;
+
281 return *this;
+
282 }
-
-
282 FloatSliderOptions& Step(float step_) {
-
283 step = step_;
-
284 return *this;
-
285 }
+
+
283 FloatSliderOptions& Format(const char* format_) {
+
284 format = format_;
+
285 return *this;
+
286 }
-
-
286 FloatSliderOptions& Min(float min_) {
-
287 min = min_;
-
288 return *this;
-
289 }
+
+
287 FloatSliderOptions& Step(float step_) {
+
288 step = step_;
+
289 return *this;
+
290 }
-
-
290 FloatSliderOptions& Max(float max_) {
-
291 max = max_;
-
292 return *this;
-
293 }
+
+
291 FloatSliderOptions& Min(float min_) {
+
292 min = min_;
+
293 return *this;
+
294 }
-
-
294 FloatSliderOptions& DefaultValue(float defaultValue_) {
-
295 defaultValue = defaultValue_;
-
296 return *this;
-
297 }
+
+
295 FloatSliderOptions& Max(float max_) {
+
296 max = max_;
+
297 return *this;
+
298 }
-
- -
299 alignment = alignment_;
-
300 return *this;
-
301 }
+
+
299 FloatSliderOptions& DefaultValue(float defaultValue_) {
+
300 defaultValue = defaultValue_;
+
301 return *this;
+
302 }
-
- -
303 labelPosition = labelPosition_;
-
304 return *this;
-
305 }
+
+ +
304 alignment = alignment_;
+
305 return *this;
+
306 }
-
-
306 FloatSliderOptions& IsPercentage(bool isPercentage_ = true) {
-
307 isPercentage = isPercentage_;
-
308 format = "%.0f";
-
309 min = 0.0f;
-
310 max = 1.0f;
-
311 return *this;
-
312 }
+
+ +
308 labelPosition = labelPosition_;
+
309 return *this;
+
310 }
-
-
313 FloatSliderOptions& Tooltip(const char* tooltip_) {
-
314 WidgetOptions::tooltip = tooltip_;
-
315 return *this;
-
316 }
+
+
311 FloatSliderOptions& IsPercentage(bool isPercentage_ = true) {
+
312 isPercentage = isPercentage_;
+
313 format = "%.0f";
+
314 min = 0.0f;
+
315 max = 1.0f;
+
316 return *this;
+
317 }
-
- -
318 WidgetOptions::color = color = color_;
-
319 return *this;
-
320 }
+
+
318 FloatSliderOptions& Tooltip(const char* tooltip_) {
+
319 WidgetOptions::tooltip = tooltip_;
+
320 return *this;
+
321 }
-
321 };
+
+ +
323 WidgetOptions::color = color = color_;
+
324 return *this;
+
325 }
+
+
326 };
-
322
-
323 void PushStyleMenu(const ImVec4& color);
-
324 void PushStyleMenu(Colors color = Colors::LightBlue);
-
325 void PopStyleMenu();
-
326 bool BeginMenu(const char* label, Colors color = Colors::LightBlue);
327
-
328 void PushStyleMenuItem(const ImVec4& color);
-
329 void PushStyleMenuItem(Colors color = Colors::LightBlue);
-
330 void PopStyleMenuItem();
-
331 bool MenuItem(const char* label, const char* shortcut = NULL, Colors color = Colors::LightBlue);
+
328 void PushStyleMenu(const ImVec4& color);
+
329 void PushStyleMenu(Colors color = Colors::LightBlue);
+
330 void PopStyleMenu();
+
331 bool BeginMenu(const char* label, Colors color = Colors::LightBlue);
332
-
333 void PushStyleButton(const ImVec4& color);
-
334 void PushStyleButton(Colors color = Colors::Gray);
-
335 void PopStyleButton();
-
336 bool Button(const char* label, const ButtonOptions& options = {});
-
337 bool WindowButton(const char* label, const char* cvarName, std::shared_ptr<Ship::GuiWindow> windowPtr, const ButtonOptions& options = {});
-
338
-
339 void PushStyleCheckbox(const ImVec4& color);
- -
341 void PopStyleCheckbox();
-
342 void RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash);
-
343 bool Checkbox(const char* label, bool* v, const CheckboxOptions& options = {});
-
344 bool CVarCheckbox(const char* label, const char* cvarName, const CheckboxOptions& options = {});
-
345
-
346 void PushStyleCombobox(const ImVec4& color);
- -
348 void PopStyleCombobox();
-
349
-
350 /*using ComboVariant = std::variant<const std::unordered_map<int32_t, const char*>&, const std::vector<const char*>&>;
-
351
-
352 bool Combobox(const char* label, int32_t* value, ComboVariant comboSource, const ComboboxOptions& options = {}) {
-
353 bool dirty = false;
-
354 float startX = ImGui::GetCursorPosX();
-
355 std::string invisibleLabelStr = "##" + std::string(label);
-
356 const char* invisibleLabel = invisibleLabelStr.c_str();
-
357 ImGui::PushID(label);
-
358 ImGui::BeginGroup();
-
359 ImGui::BeginDisabled(options.disabled);
-
360 PushStyleCombobox(options.color);
-
361 if (options.alignment == ComponentAlignment::Left) {
-
362 if (options.labelPosition == LabelPosition::Above) {
-
363 ImGui::Text("%s", label);
-
364 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
365 } else if (options.labelPosition == LabelPosition::Near) {
-
366 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
-
367 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
368 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
-
369 }
-
370 } else if (options.alignment == ComponentAlignment::Right) {
-
371 if (options.labelPosition == LabelPosition::Above) {
-
372 ImGui::NewLine();
-
373 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
374 ImGui::Text("%s", label);
-
375 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
376 } else if (options.labelPosition == LabelPosition::Near) {
-
377 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
-
378 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
379 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
380 float width = ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4;
-
381 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
-
382 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
383 }
-
384 }
-
385 if (ImGui::BeginCombo(invisibleLabel, comboMap.at(*value), options.flags)) {
-
386 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
-
387 for (const auto& pair : comboMap) {
-
388 if (strlen(pair.second) > 1) {
-
389 if (ImGui::Selectable(pair.second, pair.first == *value)) {
-
390 *value = pair.first;
-
391 dirty = true;
-
392 }
-
393 }
-
394 }
-
395 ImGui::PopStyleVar();
-
396 ImGui::EndCombo();
-
397 }
-
398 if (options.alignment == ComponentAlignment::Left) {
-
399 if (options.labelPosition == LabelPosition::Near) {
-
400 ImGui::SameLine();
-
401 ImGui::Text("%s", label);
-
402 } else if (options.labelPosition == LabelPosition::Far) {
-
403 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
404 ImGui::Text("%s", label);
-
405 }
-
406 } else if (options.alignment == ComponentAlignment::Right) {
-
407 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
-
408 ImGui::SameLine(startX);
+
333 void PushStyleMenuItem(const ImVec4& color);
+
334 void PushStyleMenuItem(Colors color = Colors::LightBlue);
+
335 void PopStyleMenuItem();
+
336 bool MenuItem(const char* label, const char* shortcut = NULL, Colors color = Colors::LightBlue);
+
337
+
338 void PushStyleButton(const ImVec4& color);
+
339 void PushStyleButton(Colors color = Colors::Gray);
+
340 void PopStyleButton();
+
341 bool Button(const char* label, const ButtonOptions& options = {});
+
342 bool WindowButton(const char* label, const char* cvarName, std::shared_ptr<Ship::GuiWindow> windowPtr, const ButtonOptions& options = {});
+
343
+
344 void PushStyleCheckbox(const ImVec4& color);
+ +
346 void PopStyleCheckbox();
+
347 void RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash);
+
348 bool Checkbox(const char* label, bool* v, const CheckboxOptions& options = {});
+
349 bool CVarCheckbox(const char* label, const char* cvarName, const CheckboxOptions& options = {});
+
350
+
351 void PushStyleCombobox(const ImVec4& color);
+ +
353 void PopStyleCombobox();
+
354
+
355 /*using ComboVariant = std::variant<const std::unordered_map<int32_t, const char*>&, const std::vector<const char*>&>;
+
356
+
357 bool Combobox(const char* label, int32_t* value, ComboVariant comboSource, const ComboboxOptions& options = {}) {
+
358 bool dirty = false;
+
359 float startX = ImGui::GetCursorPosX();
+
360 std::string invisibleLabelStr = "##" + std::string(label);
+
361 const char* invisibleLabel = invisibleLabelStr.c_str();
+
362 ImGui::PushID(label);
+
363 ImGui::BeginGroup();
+
364 ImGui::BeginDisabled(options.disabled);
+
365 PushStyleCombobox(options.color);
+
366 if (options.alignment == ComponentAlignment::Left) {
+
367 if (options.labelPosition == LabelPosition::Above) {
+
368 ImGui::Text("%s", label);
+
369 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
370 } else if (options.labelPosition == LabelPosition::Near) {
+
371 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
+
372 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
373 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
+
374 }
+
375 } else if (options.alignment == ComponentAlignment::Right) {
+
376 if (options.labelPosition == LabelPosition::Above) {
+
377 ImGui::NewLine();
+
378 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
+
379 ImGui::Text("%s", label);
+
380 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
381 } else if (options.labelPosition == LabelPosition::Near) {
+
382 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
+
383 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
384 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
385 float width = ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4;
+
386 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
+
387 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
388 }
+
389 }
+
390 if (ImGui::BeginCombo(invisibleLabel, comboMap.at(*value), options.flags)) {
+
391 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
+
392 for (const auto& pair : comboMap) {
+
393 if (strlen(pair.second) > 1) {
+
394 if (ImGui::Selectable(pair.second, pair.first == *value)) {
+
395 *value = pair.first;
+
396 dirty = true;
+
397 }
+
398 }
+
399 }
+
400 ImGui::PopStyleVar();
+
401 ImGui::EndCombo();
+
402 }
+
403 if (options.alignment == ComponentAlignment::Left) {
+
404 if (options.labelPosition == LabelPosition::Near) {
+
405 ImGui::SameLine();
+
406 ImGui::Text("%s", label);
+
407 } else if (options.labelPosition == LabelPosition::Far) {
+
408 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
409 ImGui::Text("%s", label);
410 }
-
411 }
-
412 PopStyleCombobox();
-
413 ImGui::EndDisabled();
-
414 ImGui::EndGroup();
-
415 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
-
416 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
-
417 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
-
418 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
-
419 }
-
420 ImGui::PopID();
-
421 return dirty;
-
422 }
-
423
-
424 bool CVarCombobox(const char* label, const char* cvarName, ComboVariant comboSource, const ComboboxOptions& options = {}) {
-
425 bool dirty = false;
-
426 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
-
427 if (Combobox(label, &value, comboSource, options)) {
-
428 CVarSetInteger(cvarName, value);
-
429 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
-
430 ShipInit::Init(cvarName);
-
431 dirty = true;
-
432 }
-
433 return dirty;
-
434 }*/
-
435
-
436 template <typename T>
-
-
437 bool Combobox(const char* label, T* value, const std::unordered_map<T, const char*>& comboMap, const ComboboxOptions& options = {}) {
-
438 bool dirty = false;
-
439 float startX = ImGui::GetCursorPosX();
-
440 std::string invisibleLabelStr = "##" + std::string(label);
-
441 const char* invisibleLabel = invisibleLabelStr.c_str();
-
442 ImGui::PushID(label);
-
443 ImGui::BeginGroup();
-
444 ImGui::BeginDisabled(options.disabled);
-
445 PushStyleCombobox(options.color);
-
446 if (options.alignment == ComponentAlignment::Left) {
-
447 if (options.labelPosition == LabelPosition::Above) {
-
448 ImGui::Text("%s", label);
-
449 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
450 } else if (options.labelPosition == LabelPosition::Near) {
-
451 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
-
452 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
453 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
-
454 }
-
455 } else if (options.alignment == ComponentAlignment::Right) {
-
456 if (options.labelPosition == LabelPosition::Above) {
-
457 ImGui::NewLine();
-
458 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
459 ImGui::Text("%s", label);
-
460 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
461 } else if (options.labelPosition == LabelPosition::Near) {
-
462 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
-
463 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
464 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
465 float width = ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4;
-
466 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
-
467 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
468 }
-
469 }
-
470 if (ImGui::BeginCombo(invisibleLabel, comboMap.at(*value), options.flags)) {
-
471 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
-
472 for (const auto& pair : comboMap) {
-
473 if (strlen(pair.second) > 1) {
-
474 if (ImGui::Selectable(pair.second, pair.first == *value)) {
-
475 *value = pair.first;
-
476 dirty = true;
-
477 }
-
478 }
-
479 }
-
480 ImGui::PopStyleVar();
-
481 ImGui::EndCombo();
-
482 }
-
483 if (options.alignment == ComponentAlignment::Left) {
-
484 if (options.labelPosition == LabelPosition::Near) {
-
485 ImGui::SameLine();
-
486 ImGui::Text("%s", label);
-
487 } else if (options.labelPosition == LabelPosition::Far) {
-
488 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
489 ImGui::Text("%s", label);
-
490 }
-
491 } else if (options.alignment == ComponentAlignment::Right) {
-
492 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
-
493 ImGui::SameLine(startX);
+
411 } else if (options.alignment == ComponentAlignment::Right) {
+
412 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
+
413 ImGui::SameLine(startX);
+
414 ImGui::Text("%s", label);
+
415 }
+
416 }
+
417 PopStyleCombobox();
+
418 ImGui::EndDisabled();
+
419 ImGui::EndGroup();
+
420 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
+
421 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
+
422 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
+
423 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
+
424 }
+
425 ImGui::PopID();
+
426 return dirty;
+
427 }
+
428
+
429 bool CVarCombobox(const char* label, const char* cvarName, ComboVariant comboSource, const ComboboxOptions& options = {}) {
+
430 bool dirty = false;
+
431 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
+
432 if (Combobox(label, &value, comboSource, options)) {
+
433 CVarSetInteger(cvarName, value);
+
434 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
+
435 ShipInit::Init(cvarName);
+
436 dirty = true;
+
437 }
+
438 return dirty;
+
439 }*/
+
440
+
441 template <typename T>
+
+
442 bool Combobox(const char* label, T* value, const std::unordered_map<T, const char*>& comboMap, const ComboboxOptions& options = {}) {
+
443 bool dirty = false;
+
444 float startX = ImGui::GetCursorPosX();
+
445 std::string invisibleLabelStr = "##" + std::string(label);
+
446 const char* invisibleLabel = invisibleLabelStr.c_str();
+
447 ImGui::PushID(label);
+
448 ImGui::BeginGroup();
+
449 ImGui::BeginDisabled(options.disabled);
+
450 PushStyleCombobox(options.color);
+
451 if (options.alignment == ComponentAlignment::Left) {
+
452 if (options.labelPosition == LabelPosition::Above) {
+
453 ImGui::Text("%s", label);
+
454 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
455 } else if (options.labelPosition == LabelPosition::Near) {
+
456 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
+
457 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
458 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
+
459 }
+
460 } else if (options.alignment == ComponentAlignment::Right) {
+
461 if (options.labelPosition == LabelPosition::Above) {
+
462 ImGui::NewLine();
+
463 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
+
464 ImGui::Text("%s", label);
+
465 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
466 } else if (options.labelPosition == LabelPosition::Near) {
+
467 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
+
468 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
469 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
470 float width = ImGui::CalcTextSize(comboMap.at(*value)).x + ImGui::GetStyle().FramePadding.x * 4;
+
471 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
+
472 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
473 }
+
474 }
+
475 if (ImGui::BeginCombo(invisibleLabel, comboMap.at(*value), options.flags)) {
+
476 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
+
477 for (const auto& pair : comboMap) {
+
478 if (strlen(pair.second) > 1) {
+
479 if (ImGui::Selectable(pair.second, pair.first == *value)) {
+
480 *value = pair.first;
+
481 dirty = true;
+
482 }
+
483 }
+
484 }
+
485 ImGui::PopStyleVar();
+
486 ImGui::EndCombo();
+
487 }
+
488 if (options.alignment == ComponentAlignment::Left) {
+
489 if (options.labelPosition == LabelPosition::Near) {
+
490 ImGui::SameLine();
+
491 ImGui::Text("%s", label);
+
492 } else if (options.labelPosition == LabelPosition::Far) {
+
493 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
494 ImGui::Text("%s", label);
495 }
-
496 }
- -
498 ImGui::EndDisabled();
-
499 ImGui::EndGroup();
-
500 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
-
501 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
-
502 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
-
503 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
-
504 }
-
505 ImGui::PopID();
-
506 return dirty;
-
507 }
+
496 } else if (options.alignment == ComponentAlignment::Right) {
+
497 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
+
498 ImGui::SameLine(startX);
+
499 ImGui::Text("%s", label);
+
500 }
+
501 }
+ +
503 ImGui::EndDisabled();
+
504 ImGui::EndGroup();
+
505 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
+
506 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
+
507 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
+
508 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
+
509 }
+
510 ImGui::PopID();
+
511 return dirty;
+
512 }
-
508
-
509 template <typename T = size_t>
-
-
510 bool Combobox(const char* label, T* value, const std::vector<const char*>& comboVector, const ComboboxOptions& options = {}) {
-
511 bool dirty = false;
-
512 float startX = ImGui::GetCursorPosX();
-
513 size_t currentValueIndex = static_cast<size_t>(*value);
-
514 std::string invisibleLabelStr = "##" + std::string(label);
-
515 const char* invisibleLabel = invisibleLabelStr.c_str();
-
516 ImGui::PushID(label);
-
517 ImGui::BeginGroup();
-
518 ImGui::BeginDisabled(options.disabled);
-
519 PushStyleCombobox(options.color);
-
520 if (options.alignment == ComponentAlignment::Left) {
-
521 if (options.labelPosition == LabelPosition::Above) {
-
522 ImGui::Text(label);
-
523 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
524 } else if (options.labelPosition == LabelPosition::Near) {
-
525 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
-
526 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
527 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboVector.at(currentValueIndex)).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
-
528 }
-
529 } else if (options.alignment == ComponentAlignment::Right) {
-
530 if (options.labelPosition == LabelPosition::Above) {
-
531 ImGui::NewLine();
-
532 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
533 ImGui::Text(label);
-
534 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
535 } else if (options.labelPosition == LabelPosition::Near) {
-
536 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
-
537 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
538 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
539 float width = ImGui::CalcTextSize(comboVector.at(currentValueIndex)).x + ImGui::GetStyle().FramePadding.x * 4;
-
540 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
-
541 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
542 }
-
543 }
-
544 if (ImGui::BeginCombo(invisibleLabel, comboVector.at(currentValueIndex), options.flags)) {
-
545 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
-
546 for (size_t i = 0; i < comboVector.size(); ++i) {
-
547 auto newValue = static_cast<T>(i);
-
548 if (strlen(comboVector.at(i)) > 1) {
-
549 if (ImGui::Selectable(comboVector.at(i), newValue == *value)) {
-
550 *value = newValue;
-
551 dirty = true;
-
552 }
-
553 }
-
554 }
-
555 ImGui::PopStyleVar();
-
556 ImGui::EndCombo();
-
557 }
-
558 if (options.alignment == ComponentAlignment::Left) {
-
559 if (options.labelPosition == LabelPosition::Near) {
-
560 ImGui::SameLine();
-
561 ImGui::Text(label);
-
562 } else if (options.labelPosition == LabelPosition::Far) {
-
563 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
564 ImGui::Text(label);
-
565 }
-
566 } else if (options.alignment == ComponentAlignment::Right) {
-
567 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
-
568 ImGui::SameLine(startX);
+
513
+
514 template <typename T = size_t>
+
+
515 bool Combobox(const char* label, T* value, const std::vector<const char*>& comboVector, const ComboboxOptions& options = {}) {
+
516 bool dirty = false;
+
517 float startX = ImGui::GetCursorPosX();
+
518 size_t currentValueIndex = static_cast<size_t>(*value);
+
519 std::string invisibleLabelStr = "##" + std::string(label);
+
520 const char* invisibleLabel = invisibleLabelStr.c_str();
+
521 ImGui::PushID(label);
+
522 ImGui::BeginGroup();
+
523 ImGui::BeginDisabled(options.disabled);
+
524 PushStyleCombobox(options.color);
+
525 if (options.alignment == ComponentAlignment::Left) {
+
526 if (options.labelPosition == LabelPosition::Above) {
+
527 ImGui::Text(label);
+
528 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
529 } else if (options.labelPosition == LabelPosition::Near) {
+
530 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
+
531 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
532 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboVector.at(currentValueIndex)).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
+
533 }
+
534 } else if (options.alignment == ComponentAlignment::Right) {
+
535 if (options.labelPosition == LabelPosition::Above) {
+
536 ImGui::NewLine();
+
537 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
+
538 ImGui::Text(label);
+
539 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
540 } else if (options.labelPosition == LabelPosition::Near) {
+
541 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
+
542 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
543 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
544 float width = ImGui::CalcTextSize(comboVector.at(currentValueIndex)).x + ImGui::GetStyle().FramePadding.x * 4;
+
545 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
+
546 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
547 }
+
548 }
+
549 if (ImGui::BeginCombo(invisibleLabel, comboVector.at(currentValueIndex), options.flags)) {
+
550 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
+
551 for (size_t i = 0; i < comboVector.size(); ++i) {
+
552 auto newValue = static_cast<T>(i);
+
553 if (strlen(comboVector.at(i)) > 1) {
+
554 if (ImGui::Selectable(comboVector.at(i), newValue == *value)) {
+
555 *value = newValue;
+
556 dirty = true;
+
557 }
+
558 }
+
559 }
+
560 ImGui::PopStyleVar();
+
561 ImGui::EndCombo();
+
562 }
+
563 if (options.alignment == ComponentAlignment::Left) {
+
564 if (options.labelPosition == LabelPosition::Near) {
+
565 ImGui::SameLine();
+
566 ImGui::Text(label);
+
567 } else if (options.labelPosition == LabelPosition::Far) {
+
568 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
569 ImGui::Text(label);
570 }
-
571 }
- -
573 ImGui::EndDisabled();
-
574 ImGui::EndGroup();
-
575 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
-
576 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
-
577 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
-
578 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
-
579 }
-
580 ImGui::PopID();
-
581 return dirty;
-
582 }
+
571 } else if (options.alignment == ComponentAlignment::Right) {
+
572 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
+
573 ImGui::SameLine(startX);
+
574 ImGui::Text(label);
+
575 }
+
576 }
+ +
578 ImGui::EndDisabled();
+
579 ImGui::EndGroup();
+
580 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
+
581 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
+
582 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
+
583 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
+
584 }
+
585 ImGui::PopID();
+
586 return dirty;
+
587 }
-
583
-
584 template <typename T = size_t, size_t N>
-
-
585 bool Combobox(const char* label, T* value, const char* (&comboArray)[N], const ComboboxOptions& options = {}) {
-
586 bool dirty = false;
-
587 float startX = ImGui::GetCursorPosX();
-
588 size_t currentValueIndex = static_cast<size_t>(*value);
-
589 if (currentValueIndex >= N) {
-
590 currentValueIndex = 0;
-
591 }
-
592 std::string invisibleLabelStr = "##" + std::string(label);
-
593 const char* invisibleLabel = invisibleLabelStr.c_str();
-
594 ImGui::PushID(label);
-
595 ImGui::BeginGroup();
-
596 ImGui::BeginDisabled(options.disabled);
-
597 PushStyleCombobox(options.color);
-
598 if (options.alignment == ComponentAlignment::Left) {
-
599 if (options.labelPosition == LabelPosition::Above) {
-
600 ImGui::Text("%s", label);
-
601 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
602 } else if (options.labelPosition == LabelPosition::Near) {
-
603 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
-
604 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
605 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboArray[currentValueIndex]).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
-
606 }
-
607 } else if (options.alignment == ComponentAlignment::Right) {
-
608 if (options.labelPosition == LabelPosition::Above) {
-
609 ImGui::NewLine();
-
610 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
611 ImGui::Text("%s", label);
-
612 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
613 } else if (options.labelPosition == LabelPosition::Near) {
-
614 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
-
615 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
616 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
-
617 float width = ImGui::CalcTextSize(comboArray[currentValueIndex]).x + ImGui::GetStyle().FramePadding.x * 4;
-
618 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
-
619 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
-
620 }
-
621 }
-
622 if (ImGui::BeginCombo(invisibleLabel, comboArray[currentValueIndex], options.flags)) {
-
623 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
-
624 for (size_t i = 0; i < N; ++i) {
-
625 auto newValue = static_cast<T>(i);
-
626 if (strlen(comboArray[i]) > 1) {
-
627 if (ImGui::Selectable(comboArray[i], newValue == *value)) {
-
628 *value = newValue;
-
629 dirty = true;
-
630 }
-
631 }
-
632 }
-
633 ImGui::PopStyleVar();
-
634 ImGui::EndCombo();
-
635 }
-
636 if (options.alignment == ComponentAlignment::Left) {
-
637 if (options.labelPosition == LabelPosition::Near) {
-
638 ImGui::SameLine();
-
639 ImGui::Text("%s", label);
-
640 } else if (options.labelPosition == LabelPosition::Far) {
-
641 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
-
642 ImGui::Text("%s", label);
-
643 }
-
644 } else if (options.alignment == ComponentAlignment::Right) {
-
645 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
-
646 ImGui::SameLine(startX);
+
588
+
589 template <typename T = size_t, size_t N>
+
+
590 bool Combobox(const char* label, T* value, const char* (&comboArray)[N], const ComboboxOptions& options = {}) {
+
591 bool dirty = false;
+
592 float startX = ImGui::GetCursorPosX();
+
593 size_t currentValueIndex = static_cast<size_t>(*value);
+
594 if (currentValueIndex >= N) {
+
595 currentValueIndex = 0;
+
596 }
+
597 std::string invisibleLabelStr = "##" + std::string(label);
+
598 const char* invisibleLabel = invisibleLabelStr.c_str();
+
599 ImGui::PushID(label);
+
600 ImGui::BeginGroup();
+
601 ImGui::BeginDisabled(options.disabled);
+
602 PushStyleCombobox(options.color);
+
603 if (options.alignment == ComponentAlignment::Left) {
+
604 if (options.labelPosition == LabelPosition::Above) {
+
605 ImGui::Text("%s", label);
+
606 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
607 } else if (options.labelPosition == LabelPosition::Near) {
+
608 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x - ImGui::GetStyle().ItemSpacing.x * 2);
+
609 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
610 ImGui::SetNextItemWidth(ImGui::CalcTextSize(comboArray[currentValueIndex]).x + ImGui::GetStyle().FramePadding.x * 4 + ImGui::GetStyle().ItemSpacing.x);
+
611 }
+
612 } else if (options.alignment == ComponentAlignment::Right) {
+
613 if (options.labelPosition == LabelPosition::Above) {
+
614 ImGui::NewLine();
+
615 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
+
616 ImGui::Text("%s", label);
+
617 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
618 } else if (options.labelPosition == LabelPosition::Near) {
+
619 ImGui::SameLine(ImGui::CalcTextSize(label).x + ImGui::GetStyle().ItemSpacing.x * 2);
+
620 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
621 } else if (options.labelPosition == LabelPosition::Far || options.labelPosition == LabelPosition::None) {
+
622 float width = ImGui::CalcTextSize(comboArray[currentValueIndex]).x + ImGui::GetStyle().FramePadding.x * 4;
+
623 ImGui::SameLine(ImGui::GetContentRegionAvail().x - width);
+
624 ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
+
625 }
+
626 }
+
627 if (ImGui::BeginCombo(invisibleLabel, comboArray[currentValueIndex], options.flags)) {
+
628 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(10.0f, 10.0f));
+
629 for (size_t i = 0; i < N; ++i) {
+
630 auto newValue = static_cast<T>(i);
+
631 if (strlen(comboArray[i]) > 1) {
+
632 if (ImGui::Selectable(comboArray[i], newValue == *value)) {
+
633 *value = newValue;
+
634 dirty = true;
+
635 }
+
636 }
+
637 }
+
638 ImGui::PopStyleVar();
+
639 ImGui::EndCombo();
+
640 }
+
641 if (options.alignment == ComponentAlignment::Left) {
+
642 if (options.labelPosition == LabelPosition::Near) {
+
643 ImGui::SameLine();
+
644 ImGui::Text("%s", label);
+
645 } else if (options.labelPosition == LabelPosition::Far) {
+
646 ImGui::SameLine(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(label).x);
647 ImGui::Text("%s", label);
648 }
-
649 }
- -
651 ImGui::EndDisabled();
-
652 ImGui::EndGroup();
-
653 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
-
654 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
-
655 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
-
656 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
-
657 }
-
658 ImGui::PopID();
-
659 return dirty;
-
660 }
+
649 } else if (options.alignment == ComponentAlignment::Right) {
+
650 if (options.labelPosition == LabelPosition::Near || options.labelPosition == LabelPosition::Far) {
+
651 ImGui::SameLine(startX);
+
652 ImGui::Text("%s", label);
+
653 }
+
654 }
+ +
656 ImGui::EndDisabled();
+
657 ImGui::EndGroup();
+
658 if (options.disabled && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.disabledTooltip)) {
+
659 ImGui::SetTooltip("%s", WrappedText(options.disabledTooltip).c_str());
+
660 } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && !Ship_IsCStringEmpty(options.tooltip)) {
+
661 ImGui::SetTooltip("%s", WrappedText(options.tooltip).c_str());
+
662 }
+
663 ImGui::PopID();
+
664 return dirty;
+
665 }
-
661
-
662 template <typename T = int32_t>
-
-
663 bool CVarCombobox(const char* label, const char* cvarName, const std::unordered_map<T, const char*>& comboMap, const ComboboxOptions& options = {}) {
-
664 bool dirty = false;
-
665 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
-
666 if (Combobox<T>(label, &value, comboMap, options)) {
-
667 CVarSetInteger(cvarName, value);
-
668 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
-
669 dirty = true;
-
670 }
-
671 return dirty;
-
672 }
+
666
+
667 template <typename T = int32_t>
+
+
668 bool CVarCombobox(const char* label, const char* cvarName, const std::unordered_map<T, const char*>& comboMap, const ComboboxOptions& options = {}) {
+
669 bool dirty = false;
+
670 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
+
671 if (Combobox<T>(label, &value, comboMap, options)) {
+
672 CVarSetInteger(cvarName, value);
+
673 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
+
674 dirty = true;
+
675 }
+
676 return dirty;
+
677 }
-
673
-
674 template <typename T = int32_t>
-
-
675 bool CVarCombobox(const char* label, const char* cvarName, const std::vector<const char*>& comboVector, const ComboboxOptions& options = {}) {
-
676 bool dirty = false;
-
677 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
-
678 if (Combobox<T>(label, &value, comboVector, options)) {
-
679 CVarSetInteger(cvarName, value);
-
680 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
-
681 dirty = true;
-
682 }
-
683 return dirty;
-
684 }
+
678
+
679 template <typename T = int32_t>
+
+
680 bool CVarCombobox(const char* label, const char* cvarName, const std::vector<const char*>& comboVector, const ComboboxOptions& options = {}) {
+
681 bool dirty = false;
+
682 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
+
683 if (Combobox<T>(label, &value, comboVector, options)) {
+
684 CVarSetInteger(cvarName, value);
+
685 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
+
686 dirty = true;
+
687 }
+
688 return dirty;
+
689 }
-
685
-
686 template <typename T = int32_t, size_t N>
-
-
687 bool CVarCombobox(const char* label, const char* cvarName, const char* (&comboArray)[N], const ComboboxOptions& options = {}) {
-
688 bool dirty = false;
-
689 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
-
690 if (Combobox<T>(label, &value, comboArray, options)) {
-
691 CVarSetInteger(cvarName, value);
-
692 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
-
693 dirty = true;
-
694 }
-
695 return dirty;
-
696 }
+
690
+
691 template <typename T = int32_t, size_t N>
+
+
692 bool CVarCombobox(const char* label, const char* cvarName, const char* (&comboArray)[N], const ComboboxOptions& options = {}) {
+
693 bool dirty = false;
+
694 int32_t value = CVarGetInteger(cvarName, options.defaultIndex);
+
695 if (Combobox<T>(label, &value, comboArray, options)) {
+
696 CVarSetInteger(cvarName, value);
+
697 Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
+
698 dirty = true;
+
699 }
+
700 return dirty;
+
701 }
-
697
- -
699 void PopStyleSlider();
-
700 bool SliderInt(const char* label, int32_t* value, const IntSliderOptions& options = {});
-
701 bool CVarSliderInt(const char* label, const char* cvarName, const IntSliderOptions& options = {});
-
702 bool SliderFloat(const char* label, float* value, const FloatSliderOptions& options = {});
-
703 bool CVarSliderFloat(const char* label, const char* cvarName, const FloatSliderOptions& options = {});
-
704 bool CVarColorPicker(const char* label, const char* cvarName, Color_RGBA8 defaultColor);
-
705 void DrawFlagArray32(const std::string& name, uint32_t& flags);
-
706 void DrawFlagArray16(const std::string& name, uint16_t& flags);
-
707 void DrawFlagArray8(const std::string& name, uint8_t& flags);
-
708 void DrawFlagArray8Mask(const std::string& name, uint8_t& flags);
-
709}
-
710
-
711#endif /* UIWidgets_hpp */
+
702
+ +
704 void PopStyleSlider();
+
705 bool SliderInt(const char* label, int32_t* value, const IntSliderOptions& options = {});
+
706 bool CVarSliderInt(const char* label, const char* cvarName, const IntSliderOptions& options = {});
+
707 bool SliderFloat(const char* label, float* value, const FloatSliderOptions& options = {});
+
708 bool CVarSliderFloat(const char* label, const char* cvarName, const FloatSliderOptions& options = {});
+
709 bool CVarColorPicker(const char* label, const char* cvarName, Color_RGBA8 defaultColor);
+
710 void DrawFlagArray32(const std::string& name, uint32_t& flags);
+
711 void DrawFlagArray16(const std::string& name, uint16_t& flags);
+
712 void DrawFlagArray8(const std::string& name, uint8_t& flags);
+
713 void DrawFlagArray8Mask(const std::string& name, uint8_t& flags);
+
714}
+
715
+
716#endif /* UIWidgets_hpp */
bool Ship_IsCStringEmpty(const char *str)
Definition ShipUtils.cpp:10
#define NULL
Definition miniaudio.h:3851
@@ -960,6 +967,9 @@ $(function(){initNavTree('UIWidgets_8h_source.html',''); initResizable(true); })
void PopStyleButton()
Definition UIWidgets.cpp:118
bool WindowButton(const char *label, const char *cvarName, std::shared_ptr< Ship::GuiWindow > windowPtr, const ButtonOptions &options)
Definition UIWidgets.cpp:138
bool SliderInt(const char *label, int32_t *value, const IntSliderOptions &options)
Definition UIWidgets.cpp:344
+
MenuExtent
Definition UIWidgets.h:107
+
@ Stretched
Definition UIWidgets.h:109
+
@ Condensed
Definition UIWidgets.h:108
void PushStyleCheckbox(const ImVec4 &color)
Definition UIWidgets.cpp:156
void PopStyleCheckbox()
Definition UIWidgets.cpp:171
void Tooltip(const char *text)
Definition UIWidgets.cpp:45
@@ -997,102 +1007,102 @@ $(function(){initNavTree('UIWidgets_8h_source.html',''); initResizable(true); })
@ DarkGreen
Definition UIWidgets.h:45
@ Black
Definition UIWidgets.h:59
@ LightBlue
Definition UIWidgets.h:46
-
bool Combobox(const char *label, T *value, const std::unordered_map< T, const char * > &comboMap, const ComboboxOptions &options={})
Definition UIWidgets.h:437
+
bool Combobox(const char *label, T *value, const std::unordered_map< T, const char * > &comboMap, const ComboboxOptions &options={})
Definition UIWidgets.h:442
const std::unordered_map< Colors, ImVec4 > ColorValues
Definition UIWidgets.h:65
void PopStyleCombobox()
Definition UIWidgets.cpp:320
void RenderText(ImVec2 pos, const char *text, const char *text_end, bool hide_text_after_hash)
Definition UIWidgets.cpp:176
bool CVarColorPicker(const char *label, const char *cvarName, Color_RGBA8 defaultColor)
Definition UIWidgets.cpp:523
void(*)() SectionFunc
Definition UIWidgets.h:16
bool BeginMenu(const char *label, Colors color)
Definition UIWidgets.cpp:69
-
bool CVarCombobox(const char *label, const char *cvarName, const std::unordered_map< T, const char * > &comboMap, const ComboboxOptions &options={})
Definition UIWidgets.h:663
+
bool CVarCombobox(const char *label, const char *cvarName, const std::unordered_map< T, const char * > &comboMap, const ComboboxOptions &options={})
Definition UIWidgets.h:668
void DrawFlagArray32(const std::string &name, uint32_t &flags)
Definition UIWidgets.cpp:541
bool Button(const char *label, const ButtonOptions &options)
Definition UIWidgets.cpp:123
size_t strlen(const char *str)
Definition string.c:14
char * strchr(const char *str, s32 ch)
Definition string.c:22
-
Definition UIWidgets.h:127
-
ButtonOptions & Size(ImVec2 size_)
Definition UIWidgets.h:131
-
ButtonOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:135
-
ImVec2 size
Definition UIWidgets.h:128
-
Colors color
Definition UIWidgets.h:129
-
ButtonOptions & Color(Colors color_)
Definition UIWidgets.h:139
-
Definition UIWidgets.h:145
-
CheckboxOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:159
-
LabelPosition labelPosition
Definition UIWidgets.h:148
-
CheckboxOptions & Color(Colors color_)
Definition UIWidgets.h:167
-
CheckboxOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:155
-
Colors color
Definition UIWidgets.h:149
-
CheckboxOptions & DefaultValue(bool defaultValue_)
Definition UIWidgets.h:151
-
CheckboxOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:163
-
bool defaultValue
Definition UIWidgets.h:146
-
ComponentAlignment alignment
Definition UIWidgets.h:147
-
Definition UIWidgets.h:173
-
std::unordered_map< int32_t, const char * > comboMap
Definition UIWidgets.h:174
-
ImGuiComboFlags flags
Definition UIWidgets.h:178
-
ComboboxOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:197
-
ComboboxOptions & Color(Colors color_)
Definition UIWidgets.h:201
-
ComponentAlignment alignment
Definition UIWidgets.h:176
-
Colors color
Definition UIWidgets.h:179
-
uint32_t defaultIndex
Definition UIWidgets.h:175
-
ComboboxOptions & ComboMap(std::unordered_map< int32_t, const char * > comboMap_)
Definition UIWidgets.h:181
-
ComboboxOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:189
-
ComboboxOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:193
-
LabelPosition labelPosition
Definition UIWidgets.h:177
-
ComboboxOptions & DefaultIndex(uint32_t defaultIndex_)
Definition UIWidgets.h:185
-
Definition UIWidgets.h:261
-
const char * format
Definition UIWidgets.h:263
-
FloatSliderOptions & DefaultValue(float defaultValue_)
Definition UIWidgets.h:294
-
FloatSliderOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:313
-
FloatSliderOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:298
-
float min
Definition UIWidgets.h:265
-
FloatSliderOptions & Format(const char *format_)
Definition UIWidgets.h:278
-
ComponentAlignment alignment
Definition UIWidgets.h:269
-
FloatSliderOptions & IsPercentage(bool isPercentage_=true)
Definition UIWidgets.h:306
-
FloatSliderOptions & Step(float step_)
Definition UIWidgets.h:282
-
FloatSliderOptions & ShowButtons(bool showButtons_)
Definition UIWidgets.h:274
-
Colors color
Definition UIWidgets.h:271
-
FloatSliderOptions & Color(Colors color_)
Definition UIWidgets.h:317
-
float defaultValue
Definition UIWidgets.h:267
-
LabelPosition labelPosition
Definition UIWidgets.h:270
-
bool showButtons
Definition UIWidgets.h:262
-
ImGuiSliderFlags flags
Definition UIWidgets.h:272
-
FloatSliderOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:302
-
bool isPercentage
Definition UIWidgets.h:268
-
float step
Definition UIWidgets.h:264
-
FloatSliderOptions & Min(float min_)
Definition UIWidgets.h:286
-
float max
Definition UIWidgets.h:266
-
FloatSliderOptions & Max(float max_)
Definition UIWidgets.h:290
-
Definition UIWidgets.h:207
-
Colors color
Definition UIWidgets.h:216
-
IntSliderOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:247
-
IntSliderOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:243
-
const char * format
Definition UIWidgets.h:209
-
IntSliderOptions & DefaultValue(int32_t defaultValue_)
Definition UIWidgets.h:239
-
ImGuiSliderFlags flags
Definition UIWidgets.h:217
-
IntSliderOptions & Min(int32_t min_)
Definition UIWidgets.h:231
-
LabelPosition labelPosition
Definition UIWidgets.h:215
-
IntSliderOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:251
-
int32_t step
Definition UIWidgets.h:210
-
IntSliderOptions & Color(Colors color_)
Definition UIWidgets.h:255
-
int32_t max
Definition UIWidgets.h:212
-
int32_t min
Definition UIWidgets.h:211
-
IntSliderOptions & ShowButtons(bool showButtons_)
Definition UIWidgets.h:219
-
IntSliderOptions & Step(int32_t step_)
Definition UIWidgets.h:227
-
int32_t defaultValue
Definition UIWidgets.h:213
-
bool showButtons
Definition UIWidgets.h:208
-
ComponentAlignment alignment
Definition UIWidgets.h:214
-
IntSliderOptions & Format(const char *format_)
Definition UIWidgets.h:223
-
IntSliderOptions & Max(int32_t max_)
Definition UIWidgets.h:235
+
Definition UIWidgets.h:132
+
ButtonOptions & Size(ImVec2 size_)
Definition UIWidgets.h:136
+
ButtonOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:140
+
ImVec2 size
Definition UIWidgets.h:133
+
Colors color
Definition UIWidgets.h:134
+
ButtonOptions & Color(Colors color_)
Definition UIWidgets.h:144
+
Definition UIWidgets.h:150
+
CheckboxOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:164
+
LabelPosition labelPosition
Definition UIWidgets.h:153
+
CheckboxOptions & Color(Colors color_)
Definition UIWidgets.h:172
+
CheckboxOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:160
+
Colors color
Definition UIWidgets.h:154
+
CheckboxOptions & DefaultValue(bool defaultValue_)
Definition UIWidgets.h:156
+
CheckboxOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:168
+
bool defaultValue
Definition UIWidgets.h:151
+
ComponentAlignment alignment
Definition UIWidgets.h:152
+
Definition UIWidgets.h:178
+
std::unordered_map< int32_t, const char * > comboMap
Definition UIWidgets.h:179
+
ImGuiComboFlags flags
Definition UIWidgets.h:183
+
ComboboxOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:202
+
ComboboxOptions & Color(Colors color_)
Definition UIWidgets.h:206
+
ComponentAlignment alignment
Definition UIWidgets.h:181
+
Colors color
Definition UIWidgets.h:184
+
uint32_t defaultIndex
Definition UIWidgets.h:180
+
ComboboxOptions & ComboMap(std::unordered_map< int32_t, const char * > comboMap_)
Definition UIWidgets.h:186
+
ComboboxOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:194
+
ComboboxOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:198
+
LabelPosition labelPosition
Definition UIWidgets.h:182
+
ComboboxOptions & DefaultIndex(uint32_t defaultIndex_)
Definition UIWidgets.h:190
+
Definition UIWidgets.h:266
+
const char * format
Definition UIWidgets.h:268
+
FloatSliderOptions & DefaultValue(float defaultValue_)
Definition UIWidgets.h:299
+
FloatSliderOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:318
+
FloatSliderOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:303
+
float min
Definition UIWidgets.h:270
+
FloatSliderOptions & Format(const char *format_)
Definition UIWidgets.h:283
+
ComponentAlignment alignment
Definition UIWidgets.h:274
+
FloatSliderOptions & IsPercentage(bool isPercentage_=true)
Definition UIWidgets.h:311
+
FloatSliderOptions & Step(float step_)
Definition UIWidgets.h:287
+
FloatSliderOptions & ShowButtons(bool showButtons_)
Definition UIWidgets.h:279
+
Colors color
Definition UIWidgets.h:276
+
FloatSliderOptions & Color(Colors color_)
Definition UIWidgets.h:322
+
float defaultValue
Definition UIWidgets.h:272
+
LabelPosition labelPosition
Definition UIWidgets.h:275
+
bool showButtons
Definition UIWidgets.h:267
+
ImGuiSliderFlags flags
Definition UIWidgets.h:277
+
FloatSliderOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:307
+
bool isPercentage
Definition UIWidgets.h:273
+
float step
Definition UIWidgets.h:269
+
FloatSliderOptions & Min(float min_)
Definition UIWidgets.h:291
+
float max
Definition UIWidgets.h:271
+
FloatSliderOptions & Max(float max_)
Definition UIWidgets.h:295
+
Definition UIWidgets.h:212
+
Colors color
Definition UIWidgets.h:221
+
IntSliderOptions & LabelPosition(LabelPosition labelPosition_)
Definition UIWidgets.h:252
+
IntSliderOptions & ComponentAlignment(ComponentAlignment alignment_)
Definition UIWidgets.h:248
+
const char * format
Definition UIWidgets.h:214
+
IntSliderOptions & DefaultValue(int32_t defaultValue_)
Definition UIWidgets.h:244
+
ImGuiSliderFlags flags
Definition UIWidgets.h:222
+
IntSliderOptions & Min(int32_t min_)
Definition UIWidgets.h:236
+
LabelPosition labelPosition
Definition UIWidgets.h:220
+
IntSliderOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:256
+
int32_t step
Definition UIWidgets.h:215
+
IntSliderOptions & Color(Colors color_)
Definition UIWidgets.h:260
+
int32_t max
Definition UIWidgets.h:217
+
int32_t min
Definition UIWidgets.h:216
+
IntSliderOptions & ShowButtons(bool showButtons_)
Definition UIWidgets.h:224
+
IntSliderOptions & Step(int32_t step_)
Definition UIWidgets.h:232
+
int32_t defaultValue
Definition UIWidgets.h:218
+
bool showButtons
Definition UIWidgets.h:213
+
ComponentAlignment alignment
Definition UIWidgets.h:219
+
IntSliderOptions & Format(const char *format_)
Definition UIWidgets.h:228
+
IntSliderOptions & Max(int32_t max_)
Definition UIWidgets.h:240
Definition UIWidgets.h:18
static int FilterAlphaNum(ImGuiInputTextCallbackData *data)
Definition UIWidgets.h:26
static int FilterNumbers(ImGuiInputTextCallbackData *data)
Definition UIWidgets.h:19
-
Definition UIWidgets.h:107
-
WidgetOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:117
-
const char * disabledTooltip
Definition UIWidgets.h:110
-
const char * tooltip
Definition UIWidgets.h:108
-
WidgetOptions & Disabled(bool disabled_)
Definition UIWidgets.h:121
-
Colors color
Definition UIWidgets.h:111
-
WidgetOptions & Color(Colors color_)
Definition UIWidgets.h:113
-
bool disabled
Definition UIWidgets.h:109
+
Definition UIWidgets.h:112
+
WidgetOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:122
+
const char * disabledTooltip
Definition UIWidgets.h:115
+
const char * tooltip
Definition UIWidgets.h:113
+
WidgetOptions & Disabled(bool disabled_)
Definition UIWidgets.h:126
+
Colors color
Definition UIWidgets.h:116
+
WidgetOptions & Color(Colors color_)
Definition UIWidgets.h:118
+
bool disabled
Definition UIWidgets.h:114
diff --git a/basics.js b/basics.js index 8a9a8d380..e44238fef 100644 --- a/basics.js +++ b/basics.js @@ -2,10 +2,10 @@ var basics = [ [ "Installing mk64 Decomp", "compiling.html", [ [ "Build Instructions", "compiling.html#build-instructions", null ], - [ "Linux", "compiling.html#linux-1", null ], - [ "Windows", "compiling.html#windows-1", null ], - [ "macOS", "compiling.html#macos-1", null ], - [ "Docker", "compiling.html#docker-1", null ], + [ "Linux", "compiling.html#linux", null ], + [ "Windows", "compiling.html#windows", null ], + [ "macOS", "compiling.html#macos", null ], + [ "Docker", "compiling.html#docker", null ], [ "Building US", "compiling.html#building-us", null ], [ "Building EU", "compiling.html#building-eu", null ] ] ], diff --git a/ceremony__and__credits_8c.html b/ceremony__and__credits_8c.html index 17a3c3e1b..e8b13246b 100644 --- a/ceremony__and__credits_8c.html +++ b/ceremony__and__credits_8c.html @@ -1363,7 +1363,7 @@ Here is the caller graph for this function:

Functions

-
Todo
Does this match as a return of s8?
+
Todo
Does this match as a return of s8?
Here is the call graph for this function:
@@ -2099,7 +2099,7 @@ Here is the call graph for this function:
-
Todo
What does this even do?
+
Todo
What does this even do?
Here is the call graph for this function:
diff --git a/ceremony__and__credits_8h.html b/ceremony__and__credits_8h.html index b5ff188c0..0238c9cb1 100644 --- a/ceremony__and__credits_8h.html +++ b/ceremony__and__credits_8h.html @@ -2037,7 +2037,7 @@ Here is the call graph for this function:
-
Todo
What does this even do?
+
Todo
What does this even do?
Here is the call graph for this function:
diff --git a/classGameUI_1_1PortMenu__coll__graph.map b/classGameUI_1_1PortMenu__coll__graph.map index b7857449c..2a5105a19 100644 --- a/classGameUI_1_1PortMenu__coll__graph.map +++ b/classGameUI_1_1PortMenu__coll__graph.map @@ -37,6 +37,6 @@ - - + + diff --git a/classGameUI_1_1PortMenu__coll__graph.md5 b/classGameUI_1_1PortMenu__coll__graph.md5 index 76cd975a2..d9307b814 100644 --- a/classGameUI_1_1PortMenu__coll__graph.md5 +++ b/classGameUI_1_1PortMenu__coll__graph.md5 @@ -1 +1 @@ -28ce5064a841ccc03fc80fd156bb936f \ No newline at end of file +aebc79b8fa445d81404a8ee7f1cee7e4 \ No newline at end of file diff --git a/classGameUI_1_1PortMenu__coll__graph.svg b/classGameUI_1_1PortMenu__coll__graph.svg index 924fda2ba..20fe52ef3 100644 --- a/classGameUI_1_1PortMenu__coll__graph.svg +++ b/classGameUI_1_1PortMenu__coll__graph.svg @@ -4,7 +4,7 @@ - + @@ -48,7 +48,7 @@ @@ -59,8 +59,8 @@ var sectionId = 'dynsection-1'; Node1 - -GameUI::PortMenu + +GameUI::PortMenu @@ -68,8 +68,8 @@ var sectionId = 'dynsection-1'; Node2 - -Ship::Menu + +Ship::Menu @@ -77,8 +77,8 @@ var sectionId = 'dynsection-1'; Node2->Node1 - - + + @@ -86,8 +86,8 @@ var sectionId = 'dynsection-1'; Node3 - -Ship::GuiWindow + +Ship::GuiWindow @@ -95,8 +95,8 @@ var sectionId = 'dynsection-1'; Node3->Node2 - - + + @@ -104,8 +104,8 @@ var sectionId = 'dynsection-1'; Node4 - -ImVec2 + +ImVec2 @@ -113,20 +113,20 @@ var sectionId = 'dynsection-1'; Node4->Node2 - - + + - mOriginalSize -poppedPos -poppedSize + mOriginalSize +poppedPos +poppedSize Node5 - -string + +string @@ -134,18 +134,18 @@ var sectionId = 'dynsection-1'; Node5->Node2 - - + + - mName + mName Node6 - -uint32_t + +uint32_t @@ -153,18 +153,18 @@ var sectionId = 'dynsection-1'; Node6->Node2 - - + + - mWindowFlags + mWindowFlags Node17 - -SidebarEntry + +SidebarEntry @@ -172,19 +172,19 @@ var sectionId = 'dynsection-1'; Node6->Node17 - - + + - columnCount + columnCount Node7 - -unordered_map< std -::string, MainMenuEntry > + +unordered_map< std +::string, MainMenuEntry > @@ -192,18 +192,18 @@ var sectionId = 'dynsection-1'; Node7->Node2 - - + + - menuEntries + menuEntries Node8 - -vector< std::string > + +vector< std::string > @@ -211,18 +211,18 @@ var sectionId = 'dynsection-1'; Node8->Node2 - - + + - menuOrder + menuOrder Node9 - -ImGuiTextFilter + +ImGuiTextFilter @@ -230,18 +230,18 @@ var sectionId = 'dynsection-1'; Node9->Node2 - - + + - menuSearch + menuSearch Node10 - -uint8_t + +uint8_t @@ -249,18 +249,18 @@ var sectionId = 'dynsection-1'; Node10->Node2 - - + + - searchSidebarIndex + searchSidebarIndex Node11 - -Colors + +Colors @@ -268,19 +268,19 @@ var sectionId = 'dynsection-1'; Node11->Node2 - - + + - defaultThemeIndex + defaultThemeIndex Node12 - -shared_ptr< std::vector -< Ship::WindowBackend > > + +shared_ptr< std::vector +< Ship::WindowBackend > > @@ -288,20 +288,20 @@ var sectionId = 'dynsection-1'; Node12->Node2 - - + + - availableWindowBackends + availableWindowBackends Node13 - -unordered_map< Ship -::WindowBackend, const - char * > + +unordered_map< Ship +::WindowBackend, const + char * > @@ -309,18 +309,18 @@ var sectionId = 'dynsection-1'; Node13->Node2 - - + + - availableWindowBackendsMap + availableWindowBackendsMap Node14 - -WindowBackend + +WindowBackend @@ -328,19 +328,19 @@ var sectionId = 'dynsection-1'; Node14->Node2 - - + + - configWindowBackend + configWindowBackend Node15 - -unordered_map< uint32 -_t, disabledInfo > + +unordered_map< uint32 +_t, disabledInfo > @@ -348,18 +348,18 @@ var sectionId = 'dynsection-1'; Node15->Node2 - - + + - disabledMap + disabledMap Node16 - -vector< disabledInfo > + +vector< disabledInfo > @@ -367,29 +367,29 @@ var sectionId = 'dynsection-1'; Node16->Node2 - - + + - disabledVector + disabledVector Node17->Node2 - - + + - searchSidebarEntry + searchSidebarEntry Node18 - -vector< std::vector -< WidgetInfo > > + +vector< std::vector +< WidgetInfo > > @@ -397,18 +397,18 @@ var sectionId = 'dynsection-1'; Node18->Node17 - - + + - columnWidgets + columnWidgets Node19 - -bool + +bool @@ -416,19 +416,19 @@ var sectionId = 'dynsection-1'; Node19->Node2 - - + + - allowPopout -popped + allowPopout +popped Node20 - -float + +float @@ -436,12 +436,13 @@ var sectionId = 'dynsection-1'; Node20->Node2 - - + + - windowHeight -windowWidth + uiScale +windowHeight +windowWidth diff --git a/classGameUI_1_1PortMenu__coll__graph_org.svg b/classGameUI_1_1PortMenu__coll__graph_org.svg index 88699128d..6b8e35d7e 100644 --- a/classGameUI_1_1PortMenu__coll__graph_org.svg +++ b/classGameUI_1_1PortMenu__coll__graph_org.svg @@ -4,16 +4,16 @@ - - + + GameUI::PortMenu Node1 - -GameUI::PortMenu + +GameUI::PortMenu @@ -21,8 +21,8 @@ Node2 - -Ship::Menu + +Ship::Menu @@ -30,8 +30,8 @@ Node2->Node1 - - + + @@ -39,8 +39,8 @@ Node3 - -Ship::GuiWindow + +Ship::GuiWindow @@ -48,8 +48,8 @@ Node3->Node2 - - + + @@ -57,8 +57,8 @@ Node4 - -ImVec2 + +ImVec2 @@ -66,20 +66,20 @@ Node4->Node2 - - + + - mOriginalSize -poppedPos -poppedSize + mOriginalSize +poppedPos +poppedSize Node5 - -string + +string @@ -87,18 +87,18 @@ Node5->Node2 - - + + - mName + mName Node6 - -uint32_t + +uint32_t @@ -106,18 +106,18 @@ Node6->Node2 - - + + - mWindowFlags + mWindowFlags Node17 - -SidebarEntry + +SidebarEntry @@ -125,19 +125,19 @@ Node6->Node17 - - + + - columnCount + columnCount Node7 - -unordered_map< std -::string, MainMenuEntry > + +unordered_map< std +::string, MainMenuEntry > @@ -145,18 +145,18 @@ Node7->Node2 - - + + - menuEntries + menuEntries Node8 - -vector< std::string > + +vector< std::string > @@ -164,18 +164,18 @@ Node8->Node2 - - + + - menuOrder + menuOrder Node9 - -ImGuiTextFilter + +ImGuiTextFilter @@ -183,18 +183,18 @@ Node9->Node2 - - + + - menuSearch + menuSearch Node10 - -uint8_t + +uint8_t @@ -202,18 +202,18 @@ Node10->Node2 - - + + - searchSidebarIndex + searchSidebarIndex Node11 - -Colors + +Colors @@ -221,19 +221,19 @@ Node11->Node2 - - + + - defaultThemeIndex + defaultThemeIndex Node12 - -shared_ptr< std::vector -< Ship::WindowBackend > > + +shared_ptr< std::vector +< Ship::WindowBackend > > @@ -241,20 +241,20 @@ Node12->Node2 - - + + - availableWindowBackends + availableWindowBackends Node13 - -unordered_map< Ship -::WindowBackend, const - char * > + +unordered_map< Ship +::WindowBackend, const + char * > @@ -262,18 +262,18 @@ Node13->Node2 - - + + - availableWindowBackendsMap + availableWindowBackendsMap Node14 - -WindowBackend + +WindowBackend @@ -281,19 +281,19 @@ Node14->Node2 - - + + - configWindowBackend + configWindowBackend Node15 - -unordered_map< uint32 -_t, disabledInfo > + +unordered_map< uint32 +_t, disabledInfo > @@ -301,18 +301,18 @@ Node15->Node2 - - + + - disabledMap + disabledMap Node16 - -vector< disabledInfo > + +vector< disabledInfo > @@ -320,29 +320,29 @@ Node16->Node2 - - + + - disabledVector + disabledVector Node17->Node2 - - + + - searchSidebarEntry + searchSidebarEntry Node18 - -vector< std::vector -< WidgetInfo > > + +vector< std::vector +< WidgetInfo > > @@ -350,18 +350,18 @@ Node18->Node17 - - + + - columnWidgets + columnWidgets Node19 - -bool + +bool @@ -369,19 +369,19 @@ Node19->Node2 - - + + - allowPopout -popped + allowPopout +popped Node20 - -float + +float @@ -389,12 +389,13 @@ Node20->Node2 - - + + - windowHeight -windowWidth + uiScale +windowHeight +windowWidth diff --git a/classShip_1_1Menu.html b/classShip_1_1Menu.html index c1e1e5320..9d8af2175 100644 --- a/classShip_1_1Menu.html +++ b/classShip_1_1Menu.html @@ -201,6 +201,8 @@ Private Attributes
 
ImVec2 poppedPos
 
+
float uiScale = 1.0f
+
 
float windowHeight
 
float windowWidth
@@ -1004,8 +1006,8 @@ Here is the caller graph for this function:
"Searches all menus for the given text, including tooltips.")) } } }
}
@ WIDGET_SEARCH
Definition MenuTypes.h:44
-
Definition UIWidgets.h:107
-
WidgetOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:117
+
Definition UIWidgets.h:112
+
WidgetOptions & Tooltip(const char *tooltip_)
Definition UIWidgets.h:122
@@ -1029,6 +1031,28 @@ Here is the caller graph for this function:
+
+ + +

◆ uiScale

+ +
+
+ + + + + +
+ + + + +
float Ship::Menu::uiScale = 1.0f
+
+private
+
+
diff --git a/classShip_1_1Menu.js b/classShip_1_1Menu.js index dc6b679a8..0911b8cf1 100644 --- a/classShip_1_1Menu.js +++ b/classShip_1_1Menu.js @@ -32,6 +32,7 @@ var classShip_1_1Menu = [ "poppedSize", "classShip_1_1Menu.html#a0edbc3567ae7dbf1a51fddd74586c94f", null ], [ "searchSidebarEntry", "classShip_1_1Menu.html#ab4a6a9763a29fbb19549dd3cd8495b49", null ], [ "searchSidebarIndex", "classShip_1_1Menu.html#a428a53abcb78b4c35162dd22a05c6cae", null ], + [ "uiScale", "classShip_1_1Menu.html#a21549eb77a07a8ed2bcfee30a22e020c", null ], [ "windowHeight", "classShip_1_1Menu.html#aaa24bab2a495dc0d1573ad9a1b293104", null ], [ "windowWidth", "classShip_1_1Menu.html#a946930a0d1dce97c703d0fb51bf79416", null ] ]; \ No newline at end of file diff --git a/classShip_1_1Menu__coll__graph.map b/classShip_1_1Menu__coll__graph.map index 924bd8ac2..24a11b030 100644 --- a/classShip_1_1Menu__coll__graph.map +++ b/classShip_1_1Menu__coll__graph.map @@ -35,6 +35,6 @@ - - + + diff --git a/classShip_1_1Menu__coll__graph.md5 b/classShip_1_1Menu__coll__graph.md5 index 5bce1765a..a0bc29098 100644 --- a/classShip_1_1Menu__coll__graph.md5 +++ b/classShip_1_1Menu__coll__graph.md5 @@ -1 +1 @@ -ed01fc0bd7a802e149e5a1d129d0e54d \ No newline at end of file +cb69520985f3f5fed6d31c4a94497e0c \ No newline at end of file diff --git a/classShip_1_1Menu__coll__graph.svg b/classShip_1_1Menu__coll__graph.svg index b7eee8c1a..9c8cc75c7 100644 --- a/classShip_1_1Menu__coll__graph.svg +++ b/classShip_1_1Menu__coll__graph.svg @@ -4,7 +4,7 @@ - + @@ -48,7 +48,7 @@ @@ -59,8 +59,8 @@ var sectionId = 'dynsection-1'; Node1 - -Ship::Menu + +Ship::Menu @@ -68,8 +68,8 @@ var sectionId = 'dynsection-1'; Node2 - -Ship::GuiWindow + +Ship::GuiWindow @@ -77,8 +77,8 @@ var sectionId = 'dynsection-1'; Node2->Node1 - - + + @@ -86,8 +86,8 @@ var sectionId = 'dynsection-1'; Node3 - -ImVec2 + +ImVec2 @@ -95,20 +95,20 @@ var sectionId = 'dynsection-1'; Node3->Node1 - - + + - mOriginalSize -poppedPos -poppedSize + mOriginalSize +poppedPos +poppedSize Node4 - -string + +string @@ -116,18 +116,18 @@ var sectionId = 'dynsection-1'; Node4->Node1 - - + + - mName + mName Node5 - -uint32_t + +uint32_t @@ -135,18 +135,18 @@ var sectionId = 'dynsection-1'; Node5->Node1 - - + + - mWindowFlags + mWindowFlags Node16 - -SidebarEntry + +SidebarEntry @@ -154,19 +154,19 @@ var sectionId = 'dynsection-1'; Node5->Node16 - - + + - columnCount + columnCount Node6 - -unordered_map< std -::string, MainMenuEntry > + +unordered_map< std +::string, MainMenuEntry > @@ -174,18 +174,18 @@ var sectionId = 'dynsection-1'; Node6->Node1 - - + + - menuEntries + menuEntries Node7 - -vector< std::string > + +vector< std::string > @@ -193,18 +193,18 @@ var sectionId = 'dynsection-1'; Node7->Node1 - - + + - menuOrder + menuOrder Node8 - -ImGuiTextFilter + +ImGuiTextFilter @@ -212,18 +212,18 @@ var sectionId = 'dynsection-1'; Node8->Node1 - - + + - menuSearch + menuSearch Node9 - -uint8_t + +uint8_t @@ -231,18 +231,18 @@ var sectionId = 'dynsection-1'; Node9->Node1 - - + + - searchSidebarIndex + searchSidebarIndex Node10 - -Colors + +Colors @@ -250,19 +250,19 @@ var sectionId = 'dynsection-1'; Node10->Node1 - - + + - defaultThemeIndex + defaultThemeIndex Node11 - -shared_ptr< std::vector -< Ship::WindowBackend > > + +shared_ptr< std::vector +< Ship::WindowBackend > > @@ -270,20 +270,20 @@ var sectionId = 'dynsection-1'; Node11->Node1 - - + + - availableWindowBackends + availableWindowBackends Node12 - -unordered_map< Ship -::WindowBackend, const - char * > + +unordered_map< Ship +::WindowBackend, const + char * > @@ -291,18 +291,18 @@ var sectionId = 'dynsection-1'; Node12->Node1 - - + + - availableWindowBackendsMap + availableWindowBackendsMap Node13 - -WindowBackend + +WindowBackend @@ -310,19 +310,19 @@ var sectionId = 'dynsection-1'; Node13->Node1 - - + + - configWindowBackend + configWindowBackend Node14 - -unordered_map< uint32 -_t, disabledInfo > + +unordered_map< uint32 +_t, disabledInfo > @@ -330,18 +330,18 @@ var sectionId = 'dynsection-1'; Node14->Node1 - - + + - disabledMap + disabledMap Node15 - -vector< disabledInfo > + +vector< disabledInfo > @@ -349,29 +349,29 @@ var sectionId = 'dynsection-1'; Node15->Node1 - - + + - disabledVector + disabledVector Node16->Node1 - - + + - searchSidebarEntry + searchSidebarEntry Node17 - -vector< std::vector -< WidgetInfo > > + +vector< std::vector +< WidgetInfo > > @@ -379,18 +379,18 @@ var sectionId = 'dynsection-1'; Node17->Node16 - - + + - columnWidgets + columnWidgets Node18 - -bool + +bool @@ -398,19 +398,19 @@ var sectionId = 'dynsection-1'; Node18->Node1 - - + + - allowPopout -popped + allowPopout +popped Node19 - -float + +float @@ -418,12 +418,13 @@ var sectionId = 'dynsection-1'; Node19->Node1 - - + + - windowHeight -windowWidth + uiScale +windowHeight +windowWidth diff --git a/classShip_1_1Menu__coll__graph_org.svg b/classShip_1_1Menu__coll__graph_org.svg index 845c3d103..8a2254ec0 100644 --- a/classShip_1_1Menu__coll__graph_org.svg +++ b/classShip_1_1Menu__coll__graph_org.svg @@ -4,16 +4,16 @@ - - + + Ship::Menu Node1 - -Ship::Menu + +Ship::Menu @@ -21,8 +21,8 @@ Node2 - -Ship::GuiWindow + +Ship::GuiWindow @@ -30,8 +30,8 @@ Node2->Node1 - - + + @@ -39,8 +39,8 @@ Node3 - -ImVec2 + +ImVec2 @@ -48,20 +48,20 @@ Node3->Node1 - - + + - mOriginalSize -poppedPos -poppedSize + mOriginalSize +poppedPos +poppedSize Node4 - -string + +string @@ -69,18 +69,18 @@ Node4->Node1 - - + + - mName + mName Node5 - -uint32_t + +uint32_t @@ -88,18 +88,18 @@ Node5->Node1 - - + + - mWindowFlags + mWindowFlags Node16 - -SidebarEntry + +SidebarEntry @@ -107,19 +107,19 @@ Node5->Node16 - - + + - columnCount + columnCount Node6 - -unordered_map< std -::string, MainMenuEntry > + +unordered_map< std +::string, MainMenuEntry > @@ -127,18 +127,18 @@ Node6->Node1 - - + + - menuEntries + menuEntries Node7 - -vector< std::string > + +vector< std::string > @@ -146,18 +146,18 @@ Node7->Node1 - - + + - menuOrder + menuOrder Node8 - -ImGuiTextFilter + +ImGuiTextFilter @@ -165,18 +165,18 @@ Node8->Node1 - - + + - menuSearch + menuSearch Node9 - -uint8_t + +uint8_t @@ -184,18 +184,18 @@ Node9->Node1 - - + + - searchSidebarIndex + searchSidebarIndex Node10 - -Colors + +Colors @@ -203,19 +203,19 @@ Node10->Node1 - - + + - defaultThemeIndex + defaultThemeIndex Node11 - -shared_ptr< std::vector -< Ship::WindowBackend > > + +shared_ptr< std::vector +< Ship::WindowBackend > > @@ -223,20 +223,20 @@ Node11->Node1 - - + + - availableWindowBackends + availableWindowBackends Node12 - -unordered_map< Ship -::WindowBackend, const - char * > + +unordered_map< Ship +::WindowBackend, const + char * > @@ -244,18 +244,18 @@ Node12->Node1 - - + + - availableWindowBackendsMap + availableWindowBackendsMap Node13 - -WindowBackend + +WindowBackend @@ -263,19 +263,19 @@ Node13->Node1 - - + + - configWindowBackend + configWindowBackend Node14 - -unordered_map< uint32 -_t, disabledInfo > + +unordered_map< uint32 +_t, disabledInfo > @@ -283,18 +283,18 @@ Node14->Node1 - - + + - disabledMap + disabledMap Node15 - -vector< disabledInfo > + +vector< disabledInfo > @@ -302,29 +302,29 @@ Node15->Node1 - - + + - disabledVector + disabledVector Node16->Node1 - - + + - searchSidebarEntry + searchSidebarEntry Node17 - -vector< std::vector -< WidgetInfo > > + +vector< std::vector +< WidgetInfo > > @@ -332,18 +332,18 @@ Node17->Node16 - - + + - columnWidgets + columnWidgets Node18 - -bool + +bool @@ -351,19 +351,19 @@ Node18->Node1 - - + + - allowPopout -popped + allowPopout +popped Node19 - -float + +float @@ -371,12 +371,13 @@ Node19->Node1 - - + + - windowHeight -windowWidth + uiScale +windowHeight +windowWidth diff --git a/collision__viewer_8c.html b/collision__viewer_8c.html index 3a3550a53..b0c0b7a89 100644 --- a/collision__viewer_8c.html +++ b/collision__viewer_8c.html @@ -148,7 +148,7 @@ Functions
-
Todo
decide to use colours or textures and fix displaylists because they are buggy
+
Todo
decide to use colours or textures and fix displaylists because they are buggy
Here is the call graph for this function:
diff --git a/collision__viewer_8h.html b/collision__viewer_8h.html index 93c67dcd9..155fc82f3 100644 --- a/collision__viewer_8h.html +++ b/collision__viewer_8h.html @@ -144,7 +144,7 @@ Functions
-
Todo
decide to use colours or textures and fix displaylists because they are buggy
+
Todo
decide to use colours or textures and fix displaylists because they are buggy
Here is the call graph for this function:
diff --git a/compiling.html b/compiling.html index 7afef543d..95778f4a9 100644 --- a/compiling.html +++ b/compiling.html @@ -114,7 +114,7 @@ $(function(){initNavTree('compiling.html',''); initResizable(true); }); Build Instructions
  • - Linux + Linux
      • @@ -122,17 +122,17 @@ $(function(){initNavTree('compiling.html',''); initResizable(true); }); Ubuntu
      • - Fedora + Fedora
      • - Arch + Arch
  • - Windows + Windows
      • @@ -144,10 +144,10 @@ $(function(){initNavTree('compiling.html',''); initResizable(true); });
    • - macOS + macOS
    • - Docker + Docker
    • Building US @@ -164,23 +164,23 @@ python3 >= 3.6 libaudiofile

      To add submodules run git submodule update --init --recursive after cloning.

      Run make assets to extract assets.

      -

      +

      Linux

      Ubuntu

      sudo apt install cmake build-essential pkg-config git binutils-mips-linux-gnu python3 zlib1g-dev libaudiofile-dev libcapstone-dev
      -

      +

  • Fedora

    sudo dnf install make automake gcc gcc-c++ kernel-devel cmake pkg-config git python3 zlib-devel audiofile-devel capstone

    and install gcc toolchain of libdragon and add export PATH="/opt/libdragon/bin:$PATH" to ~/.bashrc

    -

    +

    Arch

    sudo pacman -S base-devel capstone python

    Install the following AUR package:

    Review the n64decomp/sm64 readme for instructions to compile in other distributions.

    -

    +

    Windows

    -

    +

    macOS

    Install Homebrew, then install the following dependencies:

    brew update
    brew install python3 capstone coreutils make pkg-config tehzz/n64-dev/mips64-elf-binutils

    Build using gmake ensuring homebrew make is used instead of the old macOS system make.

    -

    +

    Docker

    Build the Docker image:

    docker build -t mk64 .

    When building and using other tools, append the following in front of every command you run:

    -
    Todo
    configure this properly
    +
    Todo
    configure this properly
    Here is the call graph for this function:
    diff --git a/freecam_8h.html b/freecam_8h.html index 103fa0073..f0cc4f51f 100644 --- a/freecam_8h.html +++ b/freecam_8h.html @@ -221,7 +221,7 @@ Here is the caller graph for this function:
    -
    Todo
    configure this properly
    +
    Todo
    configure this properly
    Here is the call graph for this function:
    diff --git a/functions_u.html b/functions_u.html index 43989675f..e5d10a55c 100644 --- a/functions_u.html +++ b/functions_u.html @@ -114,6 +114,7 @@ $(function(){initNavTree('functions_u.html',''); initResizable(true); });
  • u32 : MK64::ScalarData, printf_struct
  • u64 : MK64::ScalarData, printf_struct
  • u8 : MK64::ScalarData
  • +
  • uiScale : Ship::Menu
  • un52 : credits_data_1FA0
  • UNK : OPenguin
  • unk : struct_D_802874D8, UnkStruct_800DC5EC
  • diff --git a/functions_vars_u.html b/functions_vars_u.html index 4da8df2b5..c4f32a53f 100644 --- a/functions_vars_u.html +++ b/functions_vars_u.html @@ -114,6 +114,7 @@ $(function(){initNavTree('functions_vars_u.html',''); initResizable(true); });
  • u32 : MK64::ScalarData, printf_struct
  • u64 : MK64::ScalarData, printf_struct
  • u8 : MK64::ScalarData
  • +
  • uiScale : Ship::Menu
  • un52 : credits_data_1FA0
  • unk : struct_D_802874D8, UnkStruct_800DC5EC
  • unk0 : _struct_gCoursePathSizes_0x10, credits_data_1FA0, D_80150158, Skybox, struct_80282C40, struct_80283430, struct_80283431, struct_80284AE8, struct_80285D80, struct_80286A04, struct_80286A10, struct_D_802874D8, unexpiredActors, UnkPlayerInner, UnkStr_802AA7C8, UnkStruct8018EF18, UnkStruct80287560, UnkStruct802AF7B4, UnkStruct_46D0, UnkStruct_800DDB40, UnkStruct_80287500, UnkStruct_802B53C8, UnkStruct_802B8CD4
  • diff --git a/md_docs_2BUILDING.html b/md_docs_2BUILDING.html index 54c61cbe5..1729cc20a 100644 --- a/md_docs_2BUILDING.html +++ b/md_docs_2BUILDING.html @@ -109,7 +109,7 @@ $(function(){initNavTree('md_docs_2BUILDING.html',''); initResizable(true); });

    -

    +

    Windows

    Requires:

    • At least 8GB of RAM (machines with 4GB have seen complier failures)
    • @@ -171,7 +171,7 @@ Additional CMake Targets Clean
      # If you need to clean the project you can run
      C:\Program Files\CMake\bin\cmake.exe --build build-cmake --target clean
      -

      +

    Linux

    Clone the repo and enter the directory

    @@ -188,14 +188,14 @@ Debian/Ubuntu
    # or using clang
    apt-get install clang git cmake ninja-build lsb-release libsdl2-dev libpng-dev libsdl2-net-dev libzip-dev zipcmp zipmerge ziptool nlohmann-json3-dev libtinyxml2-dev libspdlog-dev libboost-dev libopengl-dev libogg-dev libvorbis-dev
    -

    +

    Arch

    # using gcc
    pacman -S gcc git cmake ninja lsb-release sdl2 libpng libzip nlohmann-json tinyxml2 spdlog sdl2_net boost libogg libvorbis
    # or using clang
    pacman -S clang git cmake ninja lsb-release sdl2 libpng libzip nlohmann-json tinyxml2 spdlog sdl2_net boost libogg libvorbis
    -

    +

    Fedora

    # using gcc
    dnf install gcc gcc-c++ git cmake ninja-build lsb_release SDL2-devel SDL2_net-devel libpng-devel libzip-devel libzip-tools nlohmann-json-devel tinyxml2-devel spdlog-devel boost-devel libogg-devel libvorbis-devel
    @@ -233,7 +233,7 @@ Build
    # To develop the project open the repository in VSCode (or your preferred editor)
    # System wide freezes may be due to low memory, add "-j4" to the end of the build command to use four cores.
    -

    +

    Docker

    Create the docker container

    @@ -258,7 +258,7 @@ Additional CMake Targets Clean
    # If you need to clean the project you can run
    cmake --build build-cmake --target clean
    -

    +

    macOS

    Requires Xcode (or xcode-tools) && sdl2, libpng, glew, ninja, cmake, nlohmann-json, libzip, vorbis-tools, sdl2_net, tinyxml2 (can be installed via homebrew, macports, etc)

    Important: For maximum performance make sure you have ninja build tools installed!

    diff --git a/menu__items_8c.html b/menu__items_8c.html index b48bba637..30b80eb6b 100644 --- a/menu__items_8c.html +++ b/menu__items_8c.html @@ -2398,7 +2398,7 @@ Here is the caller graph for this function:
    -
    Todo
    These sizes need to be sizeof() for shiftability if possible
    +
    Todo
    These sizes need to be sizeof() for shiftability if possible
    Here is the call graph for this function:
    diff --git a/menu__items_8h.html b/menu__items_8h.html index 0fda65bc0..22388dbbc 100644 --- a/menu__items_8h.html +++ b/menu__items_8h.html @@ -2744,7 +2744,7 @@ Here is the caller graph for this function:
    -
    Todo
    These sizes need to be sizeof() for shiftability if possible
    +
    Todo
    These sizes need to be sizeof() for shiftability if possible
    Here is the call graph for this function:
    diff --git a/menudata.js b/menudata.js index f65f379f3..d19fdc214 100644 --- a/menudata.js +++ b/menudata.js @@ -30,26 +30,26 @@ var menudata={children:[ {text:"Namespace Members",url:"namespacemembers.html",children:[ {text:"All",url:"namespacemembers.html",children:[ {text:"a",url:"namespacemembers.html#index_a"}, -{text:"b",url:"namespacemembers.html#index_b"}, -{text:"c",url:"namespacemembers.html#index_c"}, -{text:"d",url:"namespacemembers.html#index_d"}, -{text:"e",url:"namespacemembers.html#index_e"}, -{text:"f",url:"namespacemembers.html#index_f"}, -{text:"g",url:"namespacemembers.html#index_g"}, -{text:"h",url:"namespacemembers.html#index_h"}, -{text:"i",url:"namespacemembers.html#index_i"}, -{text:"l",url:"namespacemembers.html#index_l"}, -{text:"m",url:"namespacemembers.html#index_m"}, -{text:"n",url:"namespacemembers.html#index_n"}, -{text:"o",url:"namespacemembers.html#index_o"}, -{text:"p",url:"namespacemembers.html#index_p"}, -{text:"r",url:"namespacemembers.html#index_r"}, -{text:"s",url:"namespacemembers.html#index_s"}, -{text:"t",url:"namespacemembers.html#index_t"}, -{text:"u",url:"namespacemembers.html#index_u"}, -{text:"v",url:"namespacemembers.html#index_v"}, -{text:"w",url:"namespacemembers.html#index_w"}, -{text:"y",url:"namespacemembers.html#index_y"}]}, +{text:"b",url:"namespacemembers_b.html#index_b"}, +{text:"c",url:"namespacemembers_c.html#index_c"}, +{text:"d",url:"namespacemembers_d.html#index_d"}, +{text:"e",url:"namespacemembers_e.html#index_e"}, +{text:"f",url:"namespacemembers_f.html#index_f"}, +{text:"g",url:"namespacemembers_g.html#index_g"}, +{text:"h",url:"namespacemembers_h.html#index_h"}, +{text:"i",url:"namespacemembers_i.html#index_i"}, +{text:"l",url:"namespacemembers_l.html#index_l"}, +{text:"m",url:"namespacemembers_m.html#index_m"}, +{text:"n",url:"namespacemembers_n.html#index_n"}, +{text:"o",url:"namespacemembers_o.html#index_o"}, +{text:"p",url:"namespacemembers_p.html#index_p"}, +{text:"r",url:"namespacemembers_r.html#index_r"}, +{text:"s",url:"namespacemembers_s.html#index_s"}, +{text:"t",url:"namespacemembers_t.html#index_t"}, +{text:"u",url:"namespacemembers_u.html#index_u"}, +{text:"v",url:"namespacemembers_v.html#index_v"}, +{text:"w",url:"namespacemembers_w.html#index_w"}, +{text:"y",url:"namespacemembers_y.html#index_y"}]}, {text:"Functions",url:"namespacemembers_func.html",children:[ {text:"b",url:"namespacemembers_func.html#index_b"}, {text:"c",url:"namespacemembers_func.html#index_c"}, @@ -99,6 +99,7 @@ var menudata={children:[ {text:"o",url:"namespacemembers_eval.html#index_o"}, {text:"p",url:"namespacemembers_eval.html#index_p"}, {text:"r",url:"namespacemembers_eval.html#index_r"}, +{text:"s",url:"namespacemembers_eval.html#index_s"}, {text:"u",url:"namespacemembers_eval.html#index_u"}, {text:"v",url:"namespacemembers_eval.html#index_v"}, {text:"w",url:"namespacemembers_eval.html#index_w"}, diff --git a/namespaceGameUI.html b/namespaceGameUI.html index d69e44ac1..d67d9535d 100644 --- a/namespaceGameUI.html +++ b/namespaceGameUI.html @@ -186,6 +186,8 @@ Variables   int32_t motionBlurStrength   +static const std::unordered_map< int32_t, const char * > menuExtentOptions +  static const std::unordered_map< int32_t, const char * > menuThemeOptions   static const std::unordered_map< int32_t, const char * > introBehaviourOptions @@ -851,6 +853,34 @@ Here is the call graph for this function:
    +
    + + +

    ◆ menuExtentOptions

    + +
    +
    + + + + + +
    + + + + +
    const std::unordered_map<int32_t, const char*> GameUI::menuExtentOptions
    +
    +static
    +
    +Initial value:
    = {
    + + +
    }
    +
    @ Stretched
    Definition UIWidgets.h:109
    +
    @ Condensed
    Definition UIWidgets.h:108
    +
    diff --git a/namespaceGameUI.js b/namespaceGameUI.js index 4cba311f6..d7aeced72 100644 --- a/namespaceGameUI.js +++ b/namespaceGameUI.js @@ -60,6 +60,7 @@ var namespaceGameUI = [ "maxVerticalPixelCount", "namespaceGameUI.html#afa865c03604144e2764bf5cc75e2bd4f", null ], [ "mConsoleWindow", "namespaceGameUI.html#ad578e6e03a0f0901d9bd3f505d76a152", null ], [ "mContentBrowserWindow", "namespaceGameUI.html#ac706231c321fb011884fe479328bb1ed", null ], + [ "menuExtentOptions", "namespaceGameUI.html#ab4d46dc9f627364944694cce110ede7f", null ], [ "menuThemeOptions", "namespaceGameUI.html#a3d46807cc832ea9dce8ac8d36836343f", null ], [ "messageColor", "namespaceGameUI.html#a8294545d5526359ddf2ceb19c6016f1b", null ], [ "mGfxDebuggerWindow", "namespaceGameUI.html#a0a095cd5e52838f92ff9f8d1c0a71064", null ], diff --git a/namespaceUIWidgets.html b/namespaceUIWidgets.html index 444af6c1a..d68bf0455 100644 --- a/namespaceUIWidgets.html +++ b/namespaceUIWidgets.html @@ -189,6 +189,10 @@ Enumerations , Right }   +enum  MenuExtent { Condensed +, Stretched + } +  @@ -380,6 +384,24 @@ Variables

    Functions

    Within 
    + + + +

    ◆ MenuExtent

    + +
    +
    + + + + +
    enum UIWidgets::MenuExtent
    +
    + + + +
    Enumerator
    Condensed 
    Stretched 
    +

    Function Documentation

    diff --git a/namespaceUIWidgets.js b/namespaceUIWidgets.js index edefff4a7..a2bf2bb3d 100644 --- a/namespaceUIWidgets.js +++ b/namespaceUIWidgets.js @@ -46,6 +46,10 @@ var namespaceUIWidgets = [ "None", "namespaceUIWidgets.html#a23ae264367182e084aed61c4b582521baf6c9204d3b575d2f94614341a8fcb652", null ], [ "Within", "namespaceUIWidgets.html#a23ae264367182e084aed61c4b582521bac9c5f60c8731ee084e46a4516dd0146c", null ] ] ], + [ "MenuExtent", "namespaceUIWidgets.html#a2f7c93f2b8d08a16c305b29d415d7cc5", [ + [ "Condensed", "namespaceUIWidgets.html#a2f7c93f2b8d08a16c305b29d415d7cc5aa5c7af7144725d0642cdbfd6bab35af7", null ], + [ "Stretched", "namespaceUIWidgets.html#a2f7c93f2b8d08a16c305b29d415d7cc5a964b6779c78f51abc4a05ac417028182", null ] + ] ], [ "BeginMenu", "namespaceUIWidgets.html#aed73bb0e7d02ca787973de9803f10562", null ], [ "Button", "namespaceUIWidgets.html#aff1b4b5ec89aa4afa79223288c55a91e", null ], [ "Checkbox", "namespaceUIWidgets.html#a28268b432c9b36af9e83d12b8b28bb35", null ], diff --git a/namespacemembers.html b/namespacemembers.html index 275698aca..059ed0c43 100644 --- a/namespacemembers.html +++ b/namespacemembers.html @@ -118,258 +118,6 @@ $(function(){initNavTree('namespacemembers.html',''); initResizable(true); });
  • aspectRatioX : GameUI
  • aspectRatioY : GameUI
  • - - -

    - b -

    - - -

    - c -

    - - -

    - d -

    - - -

    - e -

    - - -

    - f -

    - - -

    - g -

    - - -

    - h -

    - - -

    - i -

    - - -

    - l -

    - - -

    - m -

    - - -

    - n -

    - - -

    - o -

    - - -

    - p -

    - - -

    - r -

    - - -

    - s -

    - - -

    - t -

    - - -

    - u -

    - - -

    - v -

    - - -

    - w -

    - - -

    - y -

    diff --git a/namespacemembers_b.html b/namespacemembers_b.html new file mode 100644 index 000000000..60d8278bf --- /dev/null +++ b/namespacemembers_b.html @@ -0,0 +1,127 @@ + + + + + + + + +Mario Kart 64: Namespace Members + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    Mario Kart 64 +
    +
    +
    + + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    Here is a list of all namespace members with links to the namespace documentation for each member:
    + +

    - b -

    +
    +
    + + + + diff --git a/namespacemembers_c.html b/namespacemembers_c.html new file mode 100644 index 000000000..2702a6b1e --- /dev/null +++ b/namespacemembers_c.html @@ -0,0 +1,138 @@ + + + + + + + + +Mario Kart 64: Namespace Members + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    Mario Kart 64 +
    +
    +
    + + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    Here is a list of all namespace members with links to the namespace documentation for each member:
    + +

    - c -

    +
    +
    + + + + diff --git a/namespacemembers_d.html b/namespacemembers_d.html new file mode 100644 index 000000000..15178c4cd --- /dev/null +++ b/namespacemembers_d.html @@ -0,0 +1,142 @@ + + + + + + + + +Mario Kart 64: Namespace Members + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    Mario Kart 64 +
    +
    +
    + + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    Here is a list of all namespace members with links to the namespace documentation for each member:
    + +

    - d -

    +
    +
    + + + + diff --git a/namespacemembers_dup.js b/namespacemembers_dup.js new file mode 100644 index 000000000..0ea5d38bd --- /dev/null +++ b/namespacemembers_dup.js @@ -0,0 +1,24 @@ +var namespacemembers_dup = +[ + [ "a", "namespacemembers.html", null ], + [ "b", "namespacemembers_b.html", null ], + [ "c", "namespacemembers_c.html", null ], + [ "d", "namespacemembers_d.html", null ], + [ "e", "namespacemembers_e.html", null ], + [ "f", "namespacemembers_f.html", null ], + [ "g", "namespacemembers_g.html", null ], + [ "h", "namespacemembers_h.html", null ], + [ "i", "namespacemembers_i.html", null ], + [ "l", "namespacemembers_l.html", null ], + [ "m", "namespacemembers_m.html", null ], + [ "n", "namespacemembers_n.html", null ], + [ "o", "namespacemembers_o.html", null ], + [ "p", "namespacemembers_p.html", null ], + [ "r", "namespacemembers_r.html", null ], + [ "s", "namespacemembers_s.html", null ], + [ "t", "namespacemembers_t.html", null ], + [ "u", "namespacemembers_u.html", null ], + [ "v", "namespacemembers_v.html", null ], + [ "w", "namespacemembers_w.html", null ], + [ "y", "namespacemembers_y.html", null ] +]; \ No newline at end of file diff --git a/namespacemembers_e.html b/namespacemembers_e.html new file mode 100644 index 000000000..c44d86241 --- /dev/null +++ b/namespacemembers_e.html @@ -0,0 +1,124 @@ + + + + + + + + +Mario Kart 64: Namespace Members + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    Mario Kart 64 +
    +
    +
    + + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    Here is a list of all namespace members with links to the namespace documentation for each member:
    + +

    - e -

    +
    +
    + + + + diff --git a/namespacemembers_enum.html b/namespacemembers_enum.html index 52031fef8..7d695030a 100644 --- a/namespacemembers_enum.html +++ b/namespacemembers_enum.html @@ -114,6 +114,7 @@ $(function(){initNavTree('namespacemembers_enum.html',''); initResizable(true);
  • ComponentAlignment : UIWidgets
  • icon : pfd
  • LabelPosition : UIWidgets
  • +
  • MenuExtent : UIWidgets
  • messageType : GameUI
  • opt : pfd
  • ResourceType : MK64, SF64
  • diff --git a/namespacemembers_eval.html b/namespacemembers_eval.html index 95e8628e1..b8accdef7 100644 --- a/namespacemembers_eval.html +++ b/namespacemembers_eval.html @@ -120,6 +120,7 @@ $(function(){initNavTree('namespacemembers_eval.html',''); initResizable(true);

    - c -

    @@ -188,6 +189,11 @@ $(function(){initNavTree('namespacemembers_eval.html',''); initResizable(true); +

    - s -

    + +

    - u -