| 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) |
no outgoing calls
no test coverage detected