 |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
23 bool show_license_key_failed =
false;
51 static char key1[255] =
"haloman30@CUND82443161A";
52 static char key2[255] =
"00000000000000000000000";
53 static char key3[255] =
"haloman30@CUND82443161A";
54 static char key4[255] =
"haloman30@CUND82443161A";
55 static char key_generic[255] =
"altkey";
58 ImGui::Text(
"You are attempting to launch a development build of the engine.\nTo continue, you must input your developer access key.\nThis can be found on the Gitlab repository.");
132 std::string strAKey(access_key);
133 std::string strKey1(key1);
134 std::string strKey2(key2);
135 std::string strKey3(key3);
136 std::string strKey4(key4);
137 std::string strKeyGeneric(key_generic);
148 if (access_key == strKey1)
152 show_license_key_failed =
false;
154 else if (access_key == strKeyGeneric)
158 show_license_key_failed =
false;
160 else if (access_key == strKey2)
164 show_license_key_failed =
false;
166 else if (access_key == strKey3)
170 show_license_key_failed =
false;
172 else if (access_key == strKey4)
176 show_license_key_failed =
false;
182 show_license_key_failed =
true;
190 if (show_license_key_failed)
204 show_license_key_failed =
false;
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:141
IMGUI_API void EndPopup()
Definition: imgui.cpp:7675
IMGUI_API bool BeginPopupModal(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:7647
void Draw()
Displays the access key dialog.
Definition: license_prompt.hpp:39
IMGUI_API bool InputText(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3068
Dialog to prompt for developer key authentication.
Definition: license_prompt.hpp:20
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
IMGUI_API void OpenPopup(const char *str_id)
Definition: imgui.cpp:7453
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:362
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
~LicensePrompt()
Empty destructor.
Definition: license_prompt.hpp:34
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
LicensePrompt()
Empty constructor.
Definition: license_prompt.hpp:29
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
Legacy namespace to contain data for the legacy ImGUI console.
Definition: ui.h:14
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644