overlays: Add a special message id for spinners with empty text
This commit is contained in:
@@ -18,7 +18,7 @@ namespace rsx
|
|||||||
}
|
}
|
||||||
|
|
||||||
queue_message(
|
queue_message(
|
||||||
localized_string_id::INVALID,
|
localized_string_id::RSX_OVERLAYS_SPINNER_NO_TEXT,
|
||||||
5'000'000,
|
5'000'000,
|
||||||
{},
|
{},
|
||||||
message_pin_location::bottom_left,
|
message_pin_location::bottom_left,
|
||||||
|
|||||||
@@ -407,12 +407,6 @@ namespace rsx
|
|||||||
|
|
||||||
void overlay_element::set_text(localized_string_id id)
|
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));
|
set_unicode_text(get_localized_u32string(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ enum class localized_string_id
|
|||||||
{
|
{
|
||||||
INVALID,
|
INVALID,
|
||||||
|
|
||||||
|
RSX_OVERLAYS_SPINNER_NO_TEXT,
|
||||||
RSX_OVERLAYS_TROPHY_BRONZE,
|
RSX_OVERLAYS_TROPHY_BRONZE,
|
||||||
RSX_OVERLAYS_TROPHY_SILVER,
|
RSX_OVERLAYS_TROPHY_SILVER,
|
||||||
RSX_OVERLAYS_TROPHY_GOLD,
|
RSX_OVERLAYS_TROPHY_GOLD,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ private:
|
|||||||
{
|
{
|
||||||
switch (id)
|
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_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_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)...);
|
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)...);
|
||||||
|
|||||||
Reference in New Issue
Block a user