mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
ui: Turned spinner into ImGui widget
This commit is contained in:
@@ -13,4 +13,5 @@ namespace ImGui {
|
||||
void UnderlinedText(const char* label, ImColor color, const ImVec2& size_arg = ImVec2(0, 0));
|
||||
|
||||
void Disabled(std::function<void()> widgets, bool disabled);
|
||||
void TextSpinner(const char* label);
|
||||
}
|
||||
@@ -153,4 +153,8 @@ namespace ImGui {
|
||||
}
|
||||
}
|
||||
|
||||
void TextSpinner(const char* label) {
|
||||
ImGui::Text("[%c] %s", "|/-\\"[ImU32(ImGui::GetTime() * 20) % 4], label);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user