fix: Bookmark region setting not being locked correctly
This commit is contained in:
parent
7a0680c2cb
commit
90abe982ed
@ -665,7 +665,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "Gehe zu",
|
||||
"hex.builtin.view.bookmarks.button.remove": "Entfernen",
|
||||
"hex.builtin.view.bookmarks.default_title": "Lesezeichen [0x{0:X} - 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "Lesezeichen [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "Farbe",
|
||||
"hex.builtin.view.bookmarks.header.comment": "Kommentar",
|
||||
"hex.builtin.view.bookmarks.header.name": "Name",
|
||||
|
@ -766,7 +766,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "Jump to",
|
||||
"hex.builtin.view.bookmarks.button.remove": "Remove",
|
||||
"hex.builtin.view.bookmarks.default_title": "Bookmark [0x{0:X} - 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "Bookmark [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "Color",
|
||||
"hex.builtin.view.bookmarks.header.comment": "Comment",
|
||||
"hex.builtin.view.bookmarks.header.name": "Name",
|
||||
|
@ -664,7 +664,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "Saltar a",
|
||||
"hex.builtin.view.bookmarks.button.remove": "Eliminar",
|
||||
"hex.builtin.view.bookmarks.default_title": "Marcador [0x{0:X} - 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "Marcador [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "Color",
|
||||
"hex.builtin.view.bookmarks.header.comment": "Comentario",
|
||||
"hex.builtin.view.bookmarks.header.name": "Nombre",
|
||||
|
@ -664,7 +664,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "Vai a",
|
||||
"hex.builtin.view.bookmarks.button.remove": "Rimuovi",
|
||||
"hex.builtin.view.bookmarks.default_title": "Segnalibro [0x{0:X} - 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "Segnalibro [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "Colore",
|
||||
"hex.builtin.view.bookmarks.header.comment": "Commento",
|
||||
"hex.builtin.view.bookmarks.header.name": "Nome",
|
||||
|
@ -664,7 +664,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "移動",
|
||||
"hex.builtin.view.bookmarks.button.remove": "削除",
|
||||
"hex.builtin.view.bookmarks.default_title": "ブックマーク [0x{0:X} - 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "ブックマーク [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "色",
|
||||
"hex.builtin.view.bookmarks.header.comment": "コメント",
|
||||
"hex.builtin.view.bookmarks.header.name": "名前",
|
||||
|
@ -678,7 +678,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} ~ 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "이동하기",
|
||||
"hex.builtin.view.bookmarks.button.remove": "지우기",
|
||||
"hex.builtin.view.bookmarks.default_title": "북마크 [0x{0:X} ~ 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "북마크 [0x{0:02X} ~ 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "색상",
|
||||
"hex.builtin.view.bookmarks.header.comment": "설명",
|
||||
"hex.builtin.view.bookmarks.header.name": "이름",
|
||||
|
@ -664,7 +664,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "Pular para",
|
||||
"hex.builtin.view.bookmarks.button.remove": "Remover",
|
||||
"hex.builtin.view.bookmarks.default_title": "Favorito [0x{0:X} - 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "Favorito [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "Cor",
|
||||
"hex.builtin.view.bookmarks.header.comment": "Comentar",
|
||||
"hex.builtin.view.bookmarks.header.name": "Nome",
|
||||
|
@ -678,7 +678,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "转到",
|
||||
"hex.builtin.view.bookmarks.button.remove": "移除",
|
||||
"hex.builtin.view.bookmarks.default_title": "书签 [0x{0:X} - 0x{1:X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "书签 [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "颜色",
|
||||
"hex.builtin.view.bookmarks.header.comment": "注释",
|
||||
"hex.builtin.view.bookmarks.header.name": "名称",
|
||||
|
@ -678,7 +678,7 @@
|
||||
"hex.builtin.view.bookmarks.address": "0x{0:02X} - 0x{1:02X}",
|
||||
"hex.builtin.view.bookmarks.button.jump": "跳至",
|
||||
"hex.builtin.view.bookmarks.button.remove": "移除",
|
||||
"hex.builtin.view.bookmarks.default_title": "書籤 [0x0:{X} - 0x1:{X}]",
|
||||
"hex.builtin.view.bookmarks.default_title": "書籤 [0x{0:02X} - 0x{1:02X}]",
|
||||
"hex.builtin.view.bookmarks.header.color": "顏色",
|
||||
"hex.builtin.view.bookmarks.header.comment": "註解",
|
||||
"hex.builtin.view.bookmarks.header.name": "名稱",
|
||||
|
@ -386,16 +386,20 @@ namespace hex::plugin::builtin {
|
||||
u64 begin = region.getStartAddress();
|
||||
u64 end = region.getEndAddress();
|
||||
|
||||
ImGui::PushItemWidth(100_scaled);
|
||||
ImGuiExt::InputHexadecimal("##begin", &begin);
|
||||
ImGui::SameLine();
|
||||
ImGui::TextUnformatted(" - ");
|
||||
ImGui::SameLine();
|
||||
ImGuiExt::InputHexadecimal("##end", &end);
|
||||
ImGui::PopItemWidth();
|
||||
if (!locked) {
|
||||
ImGui::PushItemWidth(100_scaled);
|
||||
ImGuiExt::InputHexadecimal("##begin", &begin);
|
||||
ImGui::SameLine(0, 0);
|
||||
ImGui::TextUnformatted(" - ");
|
||||
ImGui::SameLine(0, 0);
|
||||
ImGuiExt::InputHexadecimal("##end", &end);
|
||||
ImGui::PopItemWidth();
|
||||
|
||||
if (end > begin)
|
||||
region = Region(begin, end - begin + 1);
|
||||
if (end > begin)
|
||||
region = Region(begin, end - begin + 1);
|
||||
} else {
|
||||
ImGuiExt::TextFormatted("0x{:02X} - 0x{:02X}", begin, end);
|
||||
}
|
||||
|
||||
ImGui::TableNextRow(ImGuiTableRowFlags_None, rowHeight);
|
||||
ImGui::TableNextColumn();
|
||||
|
Loading…
x
Reference in New Issue
Block a user