 |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
32 static char state[127] =
"Forge World";
33 static char details[127] =
"Using the Forge";
34 static char large_img_key[31] =
"infinity_icon_for_discord_rpc";
35 static char small_img_key[31] =
"blam_icon3";
36 static char large_img_tooltip[127] =
"sample tooltip for infinity icon";
38 static char party_id[127] =
"derp";
39 static char join_secret[127] =
"4b2fdce12f639de8bfa7e3591b71a0d679d7c93f";
40 static char spectate_secret[127] =
"e7eb30d2ee025ed05c71ea495f770b76454ee4e0";
41 static int player_count = 1;
42 static int max_players = 8;
43 static int instance = 1;
44 static int64_t time_start = time(0);
45 static int time_end = 60;
46 static bool use_start_time =
true;
47 static bool use_end_time =
false;
49 ImGui::Text(
"This tool is used to manually update Discord Rich Presence for testing purposes.\n");
71 DiscordRichPresence presence;
72 memset(&presence, 0,
sizeof(presence));
74 presence.state =
state;
79 presence.startTimestamp = time(0);
84 presence.endTimestamp = time(0) + time_end;
87 presence.largeImageKey = large_img_key;
88 presence.smallImageKey = small_img_key;
89 presence.largeImageText = large_img_tooltip;
90 presence.smallImageText = small_img_tooltip;
91 presence.partyId = party_id;
92 presence.partySize = player_count;
93 presence.partyMax = max_players;
94 presence.joinSecret = join_secret;
95 presence.spectateSecret = spectate_secret;
96 presence.instance = instance;
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
Class for the Discord Rich Presence test dialog.
Definition: discord_rpc_tester.hpp:20
BLAM void DummyEvent(int id)
Triggers a dummy event.
Definition: discord_rpc.cpp:130
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 End()
Definition: imgui.cpp:6016
void Draw()
Draws the contents of the group.
Definition: discord_rpc_tester.hpp:23
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
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
#define ENGINE_VERSION
Definition: version_data.h:31
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
long long int64_t
Definition: stdint.h:14
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current state
Definition: chiropteraDM.txt:94
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
BLAM void UpdatePresence(DiscordRichPresence discordPresence)
Update the current Discord presence.
Definition: discord_rpc.cpp:103
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644
IMGUI_API bool InputInt(const char *label, int *v, int step=1, int step_fast=100, ImGuiInputTextFlags flags=0)
Definition: imgui_widgets.cpp:3031
const char * details
Definition: error_notice.cpp:17