Fix viewport message offsets
This commit is contained in:
@@ -3265,7 +3265,7 @@ void Node3DEditorViewport::_draw() {
|
||||
if (message_time > 0) {
|
||||
Ref<Font> font = get_theme_font(SceneStringName(font), SNAME("Label"));
|
||||
int font_size = get_theme_font_size(SceneStringName(font_size), SNAME("Label"));
|
||||
Point2 msgpos = Point2(5, get_size().y - 20);
|
||||
Point2 msgpos = Point2(10 * EDSCALE, get_size().y - 14 * EDSCALE);
|
||||
font->draw_string(ci, msgpos + Point2(1, 1), message, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size, Color(0, 0, 0, 0.8));
|
||||
font->draw_string(ci, msgpos + Point2(-1, -1), message, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size, Color(0, 0, 0, 0.8));
|
||||
font->draw_string(ci, msgpos, message, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size, Color(1, 1, 1, 1));
|
||||
|
||||
Reference in New Issue
Block a user