 |
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.
3 #include "../../debug_ui.h"
46 static char state[127] =
"Forge World";
47 static char details[127] =
"Using the Forge";
48 static char large_img_key[31] =
"infinity_icon_for_discord_rpc";
49 static char small_img_key[31] =
"blam_icon3";
50 static char large_img_tooltip[127] =
"sample tooltip for infinity icon";
52 static char party_id[127] =
"derp";
53 static char join_secret[127] =
"4b2fdce12f639de8bfa7e3591b71a0d679d7c93f";
54 static char spectate_secret[127] =
"e7eb30d2ee025ed05c71ea495f770b76454ee4e0";
55 static int player_count = 1;
56 static int max_players = 8;
57 static int instance = 1;
58 static int64_t time_start = time(0);
59 static int time_end = 60;
60 static bool use_start_time =
true;
61 static bool use_end_time =
false;
64 ImGui::Text(
"This tool is used to manually update Discord Rich Presence for testing purposes.\n");
86 DiscordRichPresence presence;
87 memset(&presence, 0,
sizeof(presence));
89 presence.state = state;
93 presence.startTimestamp = time(0);
97 presence.endTimestamp = time(0) + time_end;
99 presence.largeImageKey = large_img_key;
100 presence.smallImageKey = small_img_key;
101 presence.largeImageText = large_img_tooltip;
102 presence.smallImageText = small_img_tooltip;
103 presence.partyId = party_id;
104 presence.partySize = player_count;
105 presence.partyMax = max_players;
106 presence.joinSecret = join_secret;
107 presence.spectateSecret = spectate_secret;
108 presence.instance = instance;
void Draw()
Draws the contents of the group.
Definition: discord_rpc_tester.hpp:35
LPSTR details
Definition: error_notice.cpp:17
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
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
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
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
~DiscordRPCTester()
Empty destructor.
Definition: discord_rpc_tester.hpp:33
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
Class for the Discord Rich Presence test dialog.
Definition: discord_rpc_tester.hpp:22
DiscordRPCTester()
Empty constructor.
Definition: discord_rpc_tester.hpp:28
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
@ 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
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