impr: Make drag n drop overlay localizable

This commit is contained in:
WerWolv
2024-01-11 10:20:39 +01:00
parent 3449525ead
commit 5f02320e8e
2 changed files with 2 additions and 1 deletions

View File

@@ -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);