MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / HelpMarker

Function HelpMarker

KBotExt/Misc.h:413–424  ·  view source on GitHub ↗

Helper to display a little (?) mark which shows a tooltip when hovered. In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md)

Source from the content-addressed store, hash-verified

411 // Helper to display a little (?) mark which shows a tooltip when hovered.
412 // In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md)
413 static void HelpMarker(const char* desc)
414 {
415 TextDisabled("(?)");
416 if (IsItemHovered())
417 {
418 BeginTooltip();
419 PushTextWrapPos(GetFontSize() * 35.0f);
420 TextUnformatted(desc);
421 PopTextWrapPos();
422 EndTooltip();
423 }
424 }
425
426#pragma warning( push )
427#pragma warning( disable : 4505 ) // warning C4505: 'ImGui::ArrowButtonDisabled': unreferenced function with internal linkage has been removed

Callers 5

RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected