 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
19 bool show_license_key_failed =
false;
36 static char key1[255] =
"haloman30@CUND82443161A";
37 static char key2[255] =
"00000000000000000000000";
38 static char key3[255] =
"haloman30@CUND82443161A";
39 static char key4[255] =
"haloman30@CUND82443161A";
40 static char key_generic[255] =
"altkey";
42 ImGui::Text(
"You are attempting to launch a development build of the engine.\nTo continue, you must input "
43 "your developer access key.\nThis can be found on the Gitlab repository.");
48 "click 'Accept'. If the key is valid, the game will continue normally.");
116 std::string strAKey(access_key);
117 std::string strKey1(key1);
118 std::string strKey2(key2);
119 std::string strKey3(key3);
120 std::string strKey4(key4);
121 std::string strKeyGeneric(key_generic);
130 if (access_key == strKey1)
134 show_license_key_failed =
false;
136 else if (access_key == strKeyGeneric)
140 show_license_key_failed =
false;
142 else if (access_key == strKey2)
146 show_license_key_failed =
false;
148 else if (access_key == strKey3)
152 show_license_key_failed =
false;
154 else if (access_key == strKey4)
158 show_license_key_failed =
false;
164 show_license_key_failed =
true;
172 if (show_license_key_failed)
185 show_license_key_failed =
false;
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
IMGUI_API void EndPopup()
Definition: imgui.cpp:7675
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
IMGUI_API bool BeginPopupModal(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:7647
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
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
Class representing an ImGUI window.
Definition: imgui.h:31
Dialog to prompt for developer key authentication.
Definition: license_prompt.hpp:16
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
void Draw()
Displays the access key dialog.
Definition: license_prompt.hpp:25
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644