almost there

eliminate the velociraptor
This commit is contained in:
tildearrow 2024-09-21 17:37:30 -05:00
parent 987bff8b75
commit d703aa1e97
9 changed files with 267 additions and 325 deletions

View file

@ -228,16 +228,12 @@ int PlotBitfieldEx(const char* label, int (*values_getter)(void* data, int idx),
const float v0 = values_getter(data, (v_idx + values_offset) % values_count);
//ImGui::SetTooltip("%d: %8.4g", v_idx, v0);
if (hoverFunc)
{
if (hoverFunc) {
std::string hoverText=hoverFunc(v_idx,v0,hoverFuncUser);
if (!hoverText.empty())
{
if (!hoverText.empty()) {
ImGui::SetTooltip("%s",hoverText.c_str());
}
}
else
{
} else {
ImGui::SetTooltip("%d: %d (%X)", v_idx, (int)v0, (int)v0);
}