ux: Fixed goto to work with base addresses and added absolute goto

This commit is contained in:
WerWolv
2021-04-16 19:44:52 +02:00
parent fddb790c70
commit 72eac9f149
5 changed files with 36 additions and 31 deletions

View File

@@ -77,9 +77,8 @@ namespace hex::plugin::builtin {
}) {}
void drawNode() override {
ImGui::TextUnformatted("0x"); ImGui::SameLine(0, 0);
ImGui::PushItemWidth(100);
ImGui::InputScalar("##integerValue", ImGuiDataType_U64, &this->m_value, nullptr, nullptr, "%llx", ImGuiInputTextFlags_CharsHexadecimal);
ImGui::InputScalar("hex", ImGuiDataType_U64, &this->m_value, nullptr, nullptr, "%llx", ImGuiInputTextFlags_CharsHexadecimal);
ImGui::PopItemWidth();
}