mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-04-16 05:26:03 +02:00
Now the editor_class is on top of the editor_additional_text in RectViewNodes.
This commit is contained in:
parent
6cf52d15a5
commit
2fbc7a2198
@ -51,10 +51,13 @@ func _draw():
|
|||||||
res_cls = edited_resource.get_editor_class()
|
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()), 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 != "":
|
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:
|
func refresh() -> void:
|
||||||
if !edited_resource:
|
if !edited_resource:
|
||||||
|
Loading…
Reference in New Issue
Block a user