overlays: Shrink the shader notification popup
This commit is contained in:
@@ -18,7 +18,7 @@ namespace rsx
|
|||||||
}
|
}
|
||||||
|
|
||||||
queue_message(
|
queue_message(
|
||||||
localized_string_id::RSX_OVERLAYS_COMPILING_SHADERS,
|
localized_string_id::INVALID,
|
||||||
5'000'000,
|
5'000'000,
|
||||||
{},
|
{},
|
||||||
message_pin_location::bottom_left,
|
message_pin_location::bottom_left,
|
||||||
|
|||||||
@@ -407,6 +407,12 @@ 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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ namespace rsx
|
|||||||
m_frame_width = m_frame_height = 24;
|
m_frame_width = m_frame_height = 24;
|
||||||
m_spacing_x = m_spacing_y = 6;
|
m_spacing_x = m_spacing_y = 6;
|
||||||
|
|
||||||
set_size(24, 30);
|
set_size(24, 24);
|
||||||
set_padding(4, 0, 2, 8);
|
set_padding(4, 0, 4, 0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace rsx
|
|||||||
m_visible_duration = expiration;
|
m_visible_duration = expiration;
|
||||||
m_refs = std::move(refs);
|
m_refs = std::move(refs);
|
||||||
|
|
||||||
m_text.set_font("Arial", 14);
|
m_text.set_font("Arial", 12);
|
||||||
m_text.set_text(msg_id);
|
m_text.set_text(msg_id);
|
||||||
m_text.set_padding(4, 8, 4, 8);
|
m_text.set_padding(4, 8, 4, 8);
|
||||||
m_text.auto_resize();
|
m_text.auto_resize();
|
||||||
|
|||||||
Reference in New Issue
Block a user