Actually fix typo.

This commit is contained in:
Relintai 2023-10-12 00:22:02 +02:00
parent 3863b2f52d
commit d2394eb1e9
3 changed files with 8 additions and 8 deletions

View File

@ -198,16 +198,16 @@ func get_editor_class() -> String:
func get_editor_additional_text() -> String: func get_editor_additional_text() -> String:
return "" return ""
func eitor_draw_additional(control : Control) -> void: func editor_draw_additional(control : Control) -> void:
_eitor_draw_additional(control) _editor_draw_additional(control)
func _eitor_draw_additional(control : Control) -> void: func _editor_draw_additional(control : Control) -> void:
pass pass
func eitor_draw_additional_background(control : Control) -> void: func editor_draw_additional_background(control : Control) -> void:
_eitor_draw_additional_background(control) _editor_draw_additional_background(control)
func _eitor_draw_additional_background(control : Control) -> void: func _editor_draw_additional_background(control : Control) -> void:
pass pass
func setup_property_inspector(inspector) -> void: func setup_property_inspector(inspector) -> void:

View File

@ -80,7 +80,7 @@ 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 - _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) 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) edited_resource.editor_draw_additional_background(self)
func refresh() -> void: func refresh() -> void:
clear() clear()

View File

@ -59,7 +59,7 @@ func _draw():
draw_string(font, Vector2(_editor_rect_border_size, font.get_height() * 3), _editor_additional_text, _edited_resource_font_color, get_rect().size.x) 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: if edited_resource:
edited_resource.eitor_draw_additional(self) edited_resource.editor_draw_additional(self)
func refresh() -> void: func refresh() -> void:
if !edited_resource: if !edited_resource: