MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / setTooltip

Function setTooltip

TheForceEngine/TFE_Editor/editor.cpp:1256–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1254 }
1255
1256 void setTooltip(const char* msg, ...)
1257 {
1258 if (!ImGui::IsItemHovered() || !s_canShowTooltips) { return; }
1259
1260 char fullStr[TFE_MAX_PATH];
1261 va_list arg;
1262 va_start(arg, msg);
1263 vsprintf(fullStr, msg, arg);
1264 va_end(arg);
1265
1266 ImGui::SetTooltip("%s", fullStr);
1267 }
1268
1269 // Return true if 'str' matches the 'filter', taking into account special symbols.
1270 bool editorStringFilter(const char* str, const char* filter, size_t filterLength)

Callers 15

iconButtonFunction · 0.85
iconButtonInlineFunction · 0.85
browseTexturesFunction · 0.85
browseEntitiesFunction · 0.85
handleTabsFunction · 0.85
textureTooltipFunction · 0.85
infoPanelObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected