mirror of https://github.com/WerWolv/ImHex.git
impr: Make drag n drop overlay localizable
This commit is contained in:
parent
3449525ead
commit
5f02320e8e
|
@ -73,6 +73,7 @@
|
|||
"hex.builtin.command.cmd.result": "Run command '{0}'",
|
||||
"hex.builtin.command.web.desc": "Website lookup",
|
||||
"hex.builtin.command.web.result": "Navigate to '{0}'",
|
||||
"hex.builtin.drag_drop.text": "Drop files here to open them...",
|
||||
"hex.builtin.inspector.ascii": "ASCII Character",
|
||||
"hex.builtin.inspector.binary": "Binary (8 bit)",
|
||||
"hex.builtin.inspector.bool": "bool",
|
||||
|
|
|
@ -80,7 +80,7 @@ namespace hex::plugin::builtin {
|
|||
const auto offset = scaled({ 15, 15 });
|
||||
const auto margin = scaled({ 20, 20 });
|
||||
|
||||
const auto text = "Drop files here to open them...";
|
||||
const auto text = "hex.builtin.drag_drop.text"_lang;
|
||||
const auto textSize = ImGui::CalcTextSize(text);
|
||||
|
||||
drawList->AddShadowRect(center - ImVec2(textSize.x, iconSize.y + 40_scaled) / 2.0F - offset - margin, center + ImVec2(textSize.x, iconSize.y + 75_scaled) / 2.0F + offset + ImVec2(0, textSize.y) + margin, ImGui::GetColorU32(ImGuiCol_WindowShadow), 20_scaled, ImVec2(), ImDrawFlags_None, 10_scaled);
|
||||
|
|
Loading…
Reference in New Issue