mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Trophy notification improvements (#10482)
* Makes the text more similar to the original PS3 trophy notification.
This commit is contained in:
parent
926fa73fee
commit
d59707bc4b
2 changed files with 19 additions and 15 deletions
|
@ -34,17 +34,21 @@ namespace rsx
|
||||||
|
|
||||||
trophy_notification::trophy_notification()
|
trophy_notification::trophy_notification()
|
||||||
{
|
{
|
||||||
frame.set_pos(0, 0);
|
frame.set_pos(68, 55);
|
||||||
frame.set_size(300, 80);
|
frame.set_size(300, 72);
|
||||||
frame.back_color.a = 0.85f;
|
frame.back_color.r = 0.247059f;
|
||||||
|
frame.back_color.g = 0.250980f;
|
||||||
|
frame.back_color.b = 0.247059f;
|
||||||
|
frame.back_color.a = 0.88f;
|
||||||
|
|
||||||
|
|
||||||
image.set_pos(8, 8);
|
image.set_pos(78, 64);
|
||||||
image.set_size(64, 64);
|
image.set_size(53, 53);
|
||||||
image.back_color.a = 0.f;
|
image.back_color.a = 0.f;
|
||||||
|
|
||||||
text_view.set_pos(85, 0);
|
text_view.set_pos(139, 69);
|
||||||
text_view.set_padding(0, 0, 24, 0);
|
text_view.set_padding(0, 0, 0, 0);
|
||||||
text_view.set_font("Arial", 9);
|
text_view.set_font("Arial", 14);
|
||||||
text_view.align_text(overlay_element::text_align::center);
|
text_view.align_text(overlay_element::text_align::center);
|
||||||
text_view.back_color.a = 0.f;
|
text_view.back_color.a = 0.f;
|
||||||
|
|
||||||
|
@ -71,7 +75,7 @@ namespace rsx
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((t - creation_time) / 1000) > 7500)
|
if (((t - creation_time) / 1000) > 5000)
|
||||||
{
|
{
|
||||||
if (!sliding_animation.active)
|
if (!sliding_animation.active)
|
||||||
{
|
{
|
||||||
|
@ -133,8 +137,8 @@ namespace rsx
|
||||||
text_view.auto_resize();
|
text_view.auto_resize();
|
||||||
|
|
||||||
// Resize background to cover the text
|
// Resize background to cover the text
|
||||||
u16 margin_sz = text_view.x - image.w - image.x;
|
u16 margin_sz = 9;
|
||||||
frame.w = text_view.x + text_view.w + margin_sz;
|
frame.w = margin_sz * 3 + image.w + text_view.w;
|
||||||
|
|
||||||
visible = true;
|
visible = true;
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
|
|
@ -34,10 +34,10 @@ private:
|
||||||
{
|
{
|
||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
case localized_string_id::RSX_OVERLAYS_TROPHY_BRONZE: return tr("You have earned the 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 the 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 the 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)...);
|
||||||
case localized_string_id::RSX_OVERLAYS_TROPHY_PLATINUM: return tr("You have earned the platinum trophy\n%0", "Trophy text").arg(std::forward<Args>(args)...);
|
case localized_string_id::RSX_OVERLAYS_TROPHY_PLATINUM: return tr("You have earned a platinum trophy.\n%0", "Trophy text").arg(std::forward<Args>(args)...);
|
||||||
case localized_string_id::RSX_OVERLAYS_COMPILING_SHADERS: return tr("Compiling shaders");
|
case localized_string_id::RSX_OVERLAYS_COMPILING_SHADERS: return tr("Compiling shaders");
|
||||||
case localized_string_id::RSX_OVERLAYS_MSG_DIALOG_YES: return tr("Yes", "Message Dialog");
|
case localized_string_id::RSX_OVERLAYS_MSG_DIALOG_YES: return tr("Yes", "Message Dialog");
|
||||||
case localized_string_id::RSX_OVERLAYS_MSG_DIALOG_NO: return tr("No", "Message Dialog");
|
case localized_string_id::RSX_OVERLAYS_MSG_DIALOG_NO: return tr("No", "Message Dialog");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue