@@ -39,28 +39,28 @@ namespace ConfigMenu {
39
39
float ComponentWidth = ImGui::GetColumnWidth () - ImGui::GetStyle ().ItemSpacing .x - CursorX * 2 ;
40
40
41
41
ImGui::SetCursorPos (ImVec2 (15 .f , 24 .f ));
42
- ImGui::SeparatorText (Lang::ConfigText. FeatureName );
42
+ ImGui::SeparatorText (Text::Config:: FeatureName. c_str () );
43
43
44
44
ImGui::SetCursorPosX (CurrentCursorX + CursorX);
45
- ImGui::TextDisabled (Lang::ConfigText. MyConfigs );
45
+ ImGui::TextDisabled (Text::Config:: MyConfigs. c_str () );
46
46
ImGui::SetCursorPosX (CurrentCursorX + CursorX);
47
47
ImGui::SetNextItemWidth (ComponentWidth);
48
48
ImGui::ListBox (" ##ConfigFiles" , &selectedConfig, configFilesCStr.data (), configFilesCStr.size ());
49
49
ImGui::SetCursorPosX (CurrentCursorX + CursorX);
50
- if (ImGui::Button (Lang::ConfigText. Load , { 120 .f , 30 .f }) && selectedConfig >= 0 && selectedConfig < configFiles.size ())
50
+ if (ImGui::Button (Text::Config:: Load. c_str () , { 120 .f , 30 .f }) && selectedConfig >= 0 && selectedConfig < configFiles.size ())
51
51
{
52
52
std::string selectedConfigFile = configFiles[selectedConfig];
53
53
MyConfigSaver::LoadConfig (selectedConfigFile);
54
54
}
55
55
ImGui::SameLine ();
56
- if (ImGui::Button (Lang::ConfigText. Save , { 120 .f , 30 .f }) && selectedConfig >= 0 && selectedConfig < configFiles.size ())
56
+ if (ImGui::Button (Text::Config:: Save. c_str () , { 120 .f , 30 .f }) && selectedConfig >= 0 && selectedConfig < configFiles.size ())
57
57
{
58
58
std::string selectedConfigFile = configFiles[selectedConfig];
59
59
MyConfigSaver::SaveConfig (selectedConfigFile);
60
60
}
61
61
62
62
ImGui::SetCursorPosX (CurrentCursorX + CursorX);
63
- if (ImGui::Button (Lang::ConfigText. Delete , { 120 .f , 30 .f }) && selectedConfig >= 0 && selectedConfig < configFiles.size ())
63
+ if (ImGui::Button (Text::Config:: Delete. c_str () , { 120 .f , 30 .f }) && selectedConfig >= 0 && selectedConfig < configFiles.size ())
64
64
ImGui::OpenPopup (" ##reallyDelete" );
65
65
if (ImGui::BeginPopup (" ##reallyDelete" ))
66
66
{
@@ -85,7 +85,7 @@ namespace ConfigMenu {
85
85
ImGui::EndPopup ();
86
86
}
87
87
ImGui::SameLine ();
88
- if (ImGui::Button (Lang::ConfigText. Reset , { 120 .f , 30 .f }))
88
+ if (ImGui::Button (Text::Config:: Reset. c_str () , { 120 .f , 30 .f }))
89
89
ImGui::OpenPopup (" ##reallyReset" );
90
90
if (ImGui::BeginPopup (" ##reallyReset" ))
91
91
{
@@ -106,21 +106,21 @@ namespace ConfigMenu {
106
106
ImGui::NextColumn ();
107
107
CurrentCursorX = ImGui::GetCursorPosX ();
108
108
ImGui::SetCursorPos (ImVec2 (CurrentCursorX + CursorX, 24 .f ));
109
- ImGui::SeparatorText (Lang::ConfigText. SeparateLine );
110
- ImGui::TextDisabled (Lang::ConfigText. ConfigName );
109
+ ImGui::SeparatorText (Text::Config:: SeparateLine. c_str () );
110
+ ImGui::TextDisabled (Text::Config:: ConfigName. c_str () );
111
111
ImGui::SetNextItemWidth (ComponentWidth + 8 );
112
112
ImGui::InputText (" ###ConfigNameInput" , configNameBuffer, sizeof (configNameBuffer));
113
- ImGui::TextDisabled (Lang::ConfigText. AuthorName );
113
+ ImGui::TextDisabled (Text::Config:: AuthorName. c_str () );
114
114
ImGui::SetNextItemWidth (ComponentWidth + 8 );
115
115
ImGui::InputText (" ###AuthorNameInput" , configAuthorBuffer, sizeof (configAuthorBuffer));
116
116
ImGui::NewLine ();
117
- if (ImGui::Button (Lang::ConfigText. Create , { 120 .f , 30 .f }))
117
+ if (ImGui::Button (Text::Config:: Create. c_str () , { 120 .f , 30 .f }))
118
118
{
119
119
std::string configFileName = std::string (configNameBuffer) + " .cfg" ;
120
120
MyConfigSaver::SaveConfig (configFileName, std::string (configAuthorBuffer));
121
121
}
122
122
ImGui::SameLine ();
123
- if (ImGui::Button (Lang::ConfigText. OpenFolder , { 120 .f , 30 .f }))
123
+ if (ImGui::Button (Text::Config:: OpenFolder. c_str () , { 120 .f , 30 .f }))
124
124
{
125
125
Gui.OpenWebpage (configDir.c_str ());
126
126
}
0 commit comments