Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
theme_picker.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../debug_ui.h"
4 
6 
7 //shows theme picker, with a few built-in themes
8 
10 {
21  {
22  public:
27 
32 
36  void Draw()
37  {
38  //Theme Picker
39  if (show)
40  {
41  ImGui::Begin("Theme Picker", &show, ImGuiWindowFlags_AlwaysAutoResize);
42 
43  ImGui::PushTextWrapPos(240);
44  ImGui::TextColored(ImVec4(1,0,0,1), ENGINE_TEXT("imgui_theme_picker_deprecated").c_str());
45  ImGui::PopTextWrapPos();
46 
47  ImGui::Separator();
48  if (ImGui::Button("Xenia", ImVec2(120, 0))) { InternalUI::load_xenia_styles(); }
49  ImGui::SameLine();
50  if (ImGui::Button("Elaztek", ImVec2(120, 0))) { InternalUI::load_elaztek_styles(); }
51 
52  if (ImGui::Button("ImGui", ImVec2(120, 0))) { InternalUI::load_default_styles(); }
53  ImGui::SameLine();
54  if (ImGui::Button("Classic", ImVec2(120, 0))) { InternalUI::load_elaztek_styles_classic(); }
55 
56  if (ImGui::Button("CEX", ImVec2(120, 0))) { InternalUI::load_cex_styles(); }
57  ImGui::SameLine();
58  if (ImGui::Button("Windows 9x", ImVec2(120, 0))) { InternalUI::load_win9x_styles(); }
59 
60  if (ImGui::Button("Source", ImVec2(120, 0))) { InternalUI::load_hl2_styles(); }
61  ImGui::SameLine();
62  if (ImGui::Button("OSX", ImVec2(120, 0))) { InternalUI::load_osx_styles(); }
63 
64  if (ImGui::Button("ImGui Dark", ImVec2(120, 0))) { ImGui::StyleColorsDark(); }
65  ImGui::SameLine();
66  if (ImGui::Button("ImGui Light", ImVec2(120, 0))) { ImGui::StyleColorsLight(); }
67 
68  if (ImGui::Button("ImGui Classic", ImVec2(120, 0))) { ImGui::StyleColorsClassic(); }
69  ImGui::SameLine();
70  if (ImGui::Button("Blamite Pink", ImVec2(120, 0))) { InternalUI::load_blamite_pink_styles(); }
71 
72  ImGui::End();
73  }
74  }
75  };
76 }
InternalUI::load_win9x_styles
UI_API void load_win9x_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:406
InternalUI::load_default_styles
UI_API void load_default_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:280
InternalUI::load_xenia_styles
UI_API void load_xenia_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:59
engine_text.h
InternalUI::load_cex_styles
UI_API void load_cex_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:341
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:3
InternalUI::load_osx_styles
UI_API void load_osx_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:543
InternalUI::load_hl2_styles
UI_API void load_hl2_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:475
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:362
Blam::DebugUI::Windows::ThemePicker::~ThemePicker
~ThemePicker()
Empty destructor.
Definition: theme_picker.hpp:31
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
Blam::DebugUI::Windows::ThemePicker::ThemePicker
ThemePicker()
Empty constructor.
Definition: theme_picker.hpp:26
Blam::DebugUI::Windows::ThemePicker::Draw
void Draw()
Shows the theme picker dialog.
Definition: theme_picker.hpp:36
ENGINE_TEXT
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:434
Blam::DebugUI::Windows::ThemePicker
Class for the old and awful theme picker dialog.
Definition: theme_picker.hpp:20
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:213
InternalUI::load_elaztek_styles
UI_API void load_elaztek_styles()
Legacy function to apply a modified ImGUI color scheme.
Definition: ui_themes.cpp:142