ui: Added icon to footer when ImHex has elevated permissions

This commit is contained in:
WerWolv
2021-12-13 22:58:23 +01:00
parent 9bf9788689
commit 51474b2eae
3 changed files with 35 additions and 2 deletions

View File

@@ -13,6 +13,12 @@ namespace hex::plugin::builtin {
void addFooterItems() {
if (hex::isProcessElevated()) {
ContentRegistry::Interface::addFooterItem([] {
ImGui::TextUnformatted(ICON_VS_SHIELD);
});
}
ContentRegistry::Interface::addFooterItem([] {
static float framerate = 0;
if (ImGui::HasSecondPassed()) {