mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
refactor: Move custom ImGui functions to ImGuiExt namespace (#1427)
Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ namespace hex::plugin::builtin {
|
||||
void drawNode() override {
|
||||
ImGui::PushItemWidth(150_scaled);
|
||||
if (this->m_value.has_value())
|
||||
ImGui::TextFormatted("0x{0:X}", this->m_value.value());
|
||||
ImGuiExt::TextFormatted("0x{0:X}", this->m_value.value());
|
||||
else
|
||||
ImGui::TextUnformatted("???");
|
||||
ImGui::PopItemWidth();
|
||||
@@ -37,7 +37,7 @@ namespace hex::plugin::builtin {
|
||||
void drawNode() override {
|
||||
ImGui::PushItemWidth(150_scaled);
|
||||
if (this->m_value.has_value())
|
||||
ImGui::TextFormatted("{0}", this->m_value.value());
|
||||
ImGuiExt::TextFormatted("{0}", this->m_value.value());
|
||||
else
|
||||
ImGui::TextUnformatted("???");
|
||||
ImGui::PopItemWidth();
|
||||
|
||||
Reference in New Issue
Block a user