overlays: Add a special message id for spinners with empty text

This commit is contained in:
kd-11 2026-03-20 14:16:52 +03:00 committed by kd-11
parent 852317a071
commit 410660627d
4 changed files with 3 additions and 7 deletions

View file

@ -18,7 +18,7 @@ namespace rsx
}
queue_message(
localized_string_id::INVALID,
localized_string_id::RSX_OVERLAYS_SPINNER_NO_TEXT,
5'000'000,
{},
message_pin_location::bottom_left,

View file

@ -407,12 +407,6 @@ namespace rsx
void overlay_element::set_text(localized_string_id id)
{
if (id == localized_string_id::INVALID)
{
set_text("");
return;
}
set_unicode_text(get_localized_u32string(id));
}

View file

@ -4,6 +4,7 @@ enum class localized_string_id
{
INVALID,
RSX_OVERLAYS_SPINNER_NO_TEXT,
RSX_OVERLAYS_TROPHY_BRONZE,
RSX_OVERLAYS_TROPHY_SILVER,
RSX_OVERLAYS_TROPHY_GOLD,

View file

@ -38,6 +38,7 @@ private:
{
switch (id)
{
case localized_string_id::RSX_OVERLAYS_SPINNER_NO_TEXT: return "";
case localized_string_id::RSX_OVERLAYS_TROPHY_BRONZE: return tr("You have earned a bronze trophy.\n%0", "Trophy text").arg(std::forward<Args>(args)...);
case localized_string_id::RSX_OVERLAYS_TROPHY_SILVER: return tr("You have earned a silver trophy.\n%0", "Trophy text").arg(std::forward<Args>(args)...);
case localized_string_id::RSX_OVERLAYS_TROPHY_GOLD: return tr("You have earned a gold trophy.\n%0", "Trophy text").arg(std::forward<Args>(args)...);