mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
World generator's resources now can also draw to the editor gui when actually edited.
This commit is contained in:
parent
bedb1ae4a2
commit
e9279f1ef7
@ -203,6 +203,12 @@ func eitor_draw_additional(control : Control) -> void:
|
||||
|
||||
func _eitor_draw_additional(control : Control) -> void:
|
||||
pass
|
||||
|
||||
func eitor_draw_additional_background(control : Control) -> void:
|
||||
_eitor_draw_additional_background(control)
|
||||
|
||||
func _eitor_draw_additional_background(control : Control) -> void:
|
||||
pass
|
||||
|
||||
func setup_property_inspector(inspector) -> void:
|
||||
inspector.add_slot_line_edit("get_name", "set_name", "Name")
|
||||
|
@ -80,6 +80,8 @@ func _draw():
|
||||
draw_line(Vector2(get_size().x - _rect_scale, get_size().y - rsh), Vector2(get_size().x - _rect_scale, get_size().y), c)
|
||||
draw_line(Vector2(get_size().x - rsh, get_size().y - _rect_scale), Vector2(get_size().x, get_size().y - _rect_scale), c)
|
||||
|
||||
edited_resource.eitor_draw_additional_background(self)
|
||||
|
||||
func refresh() -> void:
|
||||
clear()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user