mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Now WorldGenBaseResources can draw additional graphics to the RectViewNodes.
This commit is contained in:
parent
5e6e960d02
commit
4e8e860562
@ -197,6 +197,12 @@ func get_editor_class() -> String:
|
||||
|
||||
func get_editor_additional_text() -> String:
|
||||
return ""
|
||||
|
||||
func eitor_draw_additional(rect_view_node : MarginContainer) -> void:
|
||||
_eitor_draw_additional(rect_view_node)
|
||||
|
||||
func _eitor_draw_additional(rect_view_node : MarginContainer) -> void:
|
||||
pass
|
||||
|
||||
func setup_property_inspector(inspector) -> void:
|
||||
inspector.add_slot_line_edit("get_name", "set_name", "Name")
|
||||
|
@ -58,6 +58,8 @@ func _draw():
|
||||
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)
|
||||
|
||||
if edited_resource:
|
||||
edited_resource.eitor_draw_additional(self)
|
||||
|
||||
func refresh() -> void:
|
||||
if !edited_resource:
|
||||
|
Loading…
Reference in New Issue
Block a user