MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CheatButton

Function CheatButton

engine/Poseidon/Dev/Debug/DebugOverlay.cpp:259–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258template <typename ClickFn>
259void CheatButton(const char* label, bool enabled, const char* tooltip, ClickFn&& click)
260{
261 ImGui::BeginDisabled(!enabled);
262 if (ImGui::Button(label))
263 click();
264 ImGui::EndDisabled();
265 if (tooltip && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
266 ImGui::SetTooltip("%s", tooltip);
267}
268
269void DrawCheatsTab()
270{

Callers 2

DrawCheatsTabFunction · 0.85
DrawModsTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected