Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
theme_picker.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
7 
18 {
19 public:
23  void Draw()
24  {
25  if (!show)
26  {
27  return;
28  }
29 
31 
33  ImGui::TextColored(ImVec4(1, 0, 0, 1), ENGINE_TEXT("imgui_theme_picker_deprecated").c_str());
35 
37  if (ImGui::Button("Xenia", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("xenia"); }
39  if (ImGui::Button("Elaztek", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("elaztek_blue"); }
40 
41  if (ImGui::Button("ImGui", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("imgui_old"); }
43  if (ImGui::Button("Classic", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("classic_old"); }
44 
45  if (ImGui::Button("CEX", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("cex_old"); }
47  if (ImGui::Button("Windows 9x", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("win9x_old"); }
48 
49  if (ImGui::Button("Source", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("hl2_old"); }
51  if (ImGui::Button("OSX", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("osx_old"); }
52 
53  if (ImGui::Button("ImGui Dark", ImVec2(120, 0))) { ImGui::StyleColorsDark(); }
55  if (ImGui::Button("ImGui Light", ImVec2(120, 0))) { ImGui::StyleColorsLight(); }
56 
57  if (ImGui::Button("ImGui Classic", ImVec2(120, 0))) { ImGui::StyleColorsClassic(); }
59  if (ImGui::Button("Blamite Pink", ImVec2(120, 0))) { Blam::UI::Themes::ApplyColorScheme("blamite_pink"); }
60 
61  ImGui::End();
62  }
63 };
BlamImGuiWindow_ThemePicker
Class for the old and awful theme picker dialog.
Definition: theme_picker.hpp:17
BlamImGuiWindow::show
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
ImVec4
Definition: imgui.h:192
themes.h
ImGui::End
IMGUI_API void End()
Definition: imgui.cpp:6016
engine_text.h
BlamImGuiWindow_ThemePicker::Draw
void Draw()
Shows the theme picker dialog.
Definition: theme_picker.hpp:23
ImGui::SameLine
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
BlamImGuiWindow
Class representing an ImGUI window.
Definition: imgui.h:31
ImVec2
Definition: imgui.h:179
ImGui::StyleColorsLight
IMGUI_API void StyleColorsLight(ImGuiStyle *dst=NULL)
Definition: imgui_draw.cpp:287
ImGui::Begin
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
ImGui::PopTextWrapPos
IMGUI_API void PopTextWrapPos()
Definition: imgui.cpp:6313
ImGui::StyleColorsDark
IMGUI_API void StyleColorsDark(ImGuiStyle *dst=NULL)
Definition: imgui_draw.cpp:176
ImGuiWindowFlags_AlwaysAutoResize
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
ENGINE_TEXT
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
Blam::UI::Themes::ApplyColorScheme
BLAM bool ApplyColorScheme(std::string scheme_id)
Applies the specified color scheme.
Definition: themes.cpp:461
imgui.h
ImGui::Separator
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
ImGui::PushTextWrapPos
IMGUI_API void PushTextWrapPos(float wrap_local_pos_x=0.0f)
Definition: imgui.cpp:6306
ImGui::StyleColorsClassic
IMGUI_API void StyleColorsClassic(ImGuiStyle *dst=NULL)
Definition: imgui_draw.cpp:231
ImGui::TextColored
IMGUI_API void TextColored(const ImVec4 &col, const char *fmt,...) IM_FMTARGS(2)
Definition: imgui_widgets.cpp:257
ImGui::Button
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644