ui: Make use of ImPlot to drastically improve information view

This commit is contained in:
WerWolv
2021-03-02 13:49:45 +01:00
parent 2e4eaf8d33
commit de327cf3a4
5 changed files with 55 additions and 15 deletions

View File

@@ -157,6 +157,13 @@ namespace ImGui {
ImGui::Text("[%c] %s", "|/-\\"[ImU32(ImGui::GetTime() * 20) % 4], label);
}
void Header(const char *label, bool firstEntry) {
if (!firstEntry)
ImGui::NewLine();
ImGui::TextUnformatted(label);
ImGui::Separator();
}
ImU32 GetCustomColorU32(ImGuiCustomCol idx, float alpha_mul) {
auto& customData = *static_cast<ImHexCustomData*>(GImGui->IO.UserData);
ImVec4 c = customData.Colors[idx];