TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ ShowOptionsMenu()

void MainMenu::ShowOptionsMenu ( )

Definition at line 164 of file MainMenu.cpp.

165{
166 if (ImGui::MenuItem("Toggle System Console"))
167 {
168 ToggleSystemConsole();
169 }
170
171 if (ImGui::MenuItem("Associate (.terr3d) File Type"))
172 {
173 AccocFileType();
174 }
175
176 if (ImGui::MenuItem("Copy Version Hash"))
177 {
178 char *output = new char[MD5File(GetExecutablePath()).ToString().size() + 1];
179 strcpy(output, MD5File(GetExecutablePath()).ToString().c_str());
180 const size_t len = strlen(output) + 1;
181#ifdef TERR3D_WIN32
182 HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, len);
183 memcpy(GlobalLock(hMem), output, len);
184 GlobalUnlock(hMem);
185 OpenClipboard(0);
186 EmptyClipboard();
187 SetClipboardData(CF_TEXT, hMem);
188 CloseClipboard();
189 delete[] output;
190#else
191 std::cout << "Version Hash : " << output << std::endl;
192#endif
193 }
194
195 if (ImGui::BeginMenu("Themes"))
196 {
197 if (ImGui::MenuItem("Default"))
198 {
199 LoadDefaultStyle();
200 }
201
202 if(ImGui::MenuItem("Maya Theme"))
203 {
204 LoadMayaStyle();
205 }
206
207 if (ImGui::MenuItem("Black & White"))
208 {
209 LoadBlackAndWhite();
210 }
211
212 if (ImGui::MenuItem("Cool Dark"))
213 {
214 LoadDarkCoolStyle();
215 }
216
217 if (ImGui::MenuItem("Light Orange"))
218 {
219 LoadLightOrngeStyle();
220 }
221
222 if (ImGui::MenuItem("Load Theme From File"))
223 {
224 LoadThemeFromFile(openfilename());
225 }
226
227 ImGui::EndMenu();
228 }
229}