Now the editor_class is on top of the editor_additional_text in RectViewNodes.

This commit is contained in:
Relintai 2022-08-05 13:35:27 +02:00
parent 6cf52d15a5
commit 2fbc7a2198

View File

@ -51,10 +51,13 @@ func _draw():
res_cls = edited_resource.get_editor_class()
draw_string(font, Vector2(_editor_rect_border_size, font.get_height()), res_name, _edited_resource_font_color)
draw_string(font, Vector2(_editor_rect_border_size, font.get_height() * 2), _editor_additional_text, _edited_resource_font_color, get_rect().size.x)
if res_cls != "":
draw_string(font, Vector2(_editor_rect_border_size, font.get_height() * 3), res_cls, _edited_resource_font_color, get_rect().size.x)
draw_string(font, Vector2(_editor_rect_border_size, font.get_height() * 2), res_cls, _edited_resource_font_color, get_rect().size.x)
if _editor_additional_text != "":
draw_string(font, Vector2(_editor_rect_border_size, font.get_height() * 3), _editor_additional_text, _edited_resource_font_color, get_rect().size.x)
func refresh() -> void:
if !edited_resource: