Blamite Game Engine - Blam (Core)
theme_picker.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../debug_ui.h"
4 
5 //shows theme picker, with a few built-in themes
6 
8 {
17  {
18  public:
23 
28 
32  void Draw()
33  {
34  //Theme Picker
35  if (show)
36  {
37  ImGui::Begin("Theme Picker", &show, ImGuiWindowFlags_AlwaysAutoResize);
38  ImGui::Separator();
39  if (ImGui::Button("Xenia", ImVec2(120, 0))) { InternalUI::load_xenia_styles(); }
40  ImGui::SameLine();
41  if (ImGui::Button("Elaztek", ImVec2(120, 0))) { InternalUI::load_elaztek_styles(); }
42 
43  if (ImGui::Button("ImGui", ImVec2(120, 0))) { InternalUI::load_default_styles(); }
44  ImGui::SameLine();
45  if (ImGui::Button("Classic", ImVec2(120, 0))) { InternalUI::load_elaztek_styles_classic(); }
46 
47  if (ImGui::Button("CEX", ImVec2(120, 0))) { InternalUI::load_cex_styles(); }
48  ImGui::SameLine();
49  if (ImGui::Button("Windows 9x", ImVec2(120, 0))) { InternalUI::load_win9x_styles(); }
50 
51  if (ImGui::Button("Source", ImVec2(120, 0))) { InternalUI::load_hl2_styles(); }
52  ImGui::SameLine();
53  if (ImGui::Button("OSX", ImVec2(120, 0))) { InternalUI::load_osx_styles(); }
54 
55  if (ImGui::Button("ImGui Dark", ImVec2(120, 0))) { ImGui::StyleColorsDark(); }
56  ImGui::SameLine();
57  if (ImGui::Button("ImGui Light", ImVec2(120, 0))) { ImGui::StyleColorsLight(); }
58 
59  if (ImGui::Button("ImGui Classic", ImVec2(120, 0))) { ImGui::StyleColorsClassic(); }
60  ImGui::SameLine();
61  if (ImGui::Button("Blamite Pink", ImVec2(120, 0))) { InternalUI::load_blamite_pink_styles(); }
62 
63  ImGui::End();
64  }
65  }
66  };
67 }
InternalUI::load_win9x_styles
UI_API void load_win9x_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:408
InternalUI::load_default_styles
UI_API void load_default_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:282
InternalUI::load_xenia_styles
UI_API void load_xenia_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:61
InternalUI::load_cex_styles
UI_API void load_cex_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:343
InternalUI::load_blamite_pink_styles
UI_API void load_blamite_pink_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:5
InternalUI::load_osx_styles
UI_API void load_osx_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:545
InternalUI::load_hl2_styles
UI_API void load_hl2_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:477
Blam::DebugUI::ImGUIDrawingGroup::show
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:441
Blam::DebugUI::Windows::ThemePicker::~ThemePicker
~ThemePicker()
Empty destructor.
Definition: theme_picker.hpp:27
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:408
Blam::DebugUI::Windows::ThemePicker::ThemePicker
ThemePicker()
Empty constructor.
Definition: theme_picker.hpp:22
Blam::DebugUI::Windows::ThemePicker::Draw
void Draw()
Shows the theme picker dialog.
Definition: theme_picker.hpp:32
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:493
Blam::DebugUI::Windows::ThemePicker
Class for the old and awful theme picker dialog.
Definition: theme_picker.hpp:16
InternalUI::load_elaztek_styles_classic
UI_API void load_elaztek_styles_classic()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:215
InternalUI::load_elaztek_styles
UI_API void load_elaztek_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:144