From d2394eb1e99beb058c08cfe30f6533f97262fa0b Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 12 Oct 2023 00:22:02 +0200 Subject: [PATCH] Actually fix typo. --- .../resources/world_gen_base_resource.gd | 12 ++++++------ addons/world_generator/ui/RectView.gd | 2 +- addons/world_generator/ui/RectViewNode.gd | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/world_generator/resources/world_gen_base_resource.gd b/addons/world_generator/resources/world_gen_base_resource.gd index fffb1a7..5f9a391 100644 --- a/addons/world_generator/resources/world_gen_base_resource.gd +++ b/addons/world_generator/resources/world_gen_base_resource.gd @@ -198,16 +198,16 @@ func get_editor_class() -> String: func get_editor_additional_text() -> String: return "" -func eitor_draw_additional(control : Control) -> void: - _eitor_draw_additional(control) +func editor_draw_additional(control : Control) -> void: + _editor_draw_additional(control) -func _eitor_draw_additional(control : Control) -> void: +func _editor_draw_additional(control : Control) -> void: pass -func eitor_draw_additional_background(control : Control) -> void: - _eitor_draw_additional_background(control) +func editor_draw_additional_background(control : Control) -> void: + _editor_draw_additional_background(control) -func _eitor_draw_additional_background(control : Control) -> void: +func _editor_draw_additional_background(control : Control) -> void: pass func setup_property_inspector(inspector) -> void: diff --git a/addons/world_generator/ui/RectView.gd b/addons/world_generator/ui/RectView.gd index 1dcc56e..5e25439 100644 --- a/addons/world_generator/ui/RectView.gd +++ b/addons/world_generator/ui/RectView.gd @@ -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 - 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: clear() diff --git a/addons/world_generator/ui/RectViewNode.gd b/addons/world_generator/ui/RectViewNode.gd index bbfbe82..8aac4f9 100644 --- a/addons/world_generator/ui/RectViewNode.gd +++ b/addons/world_generator/ui/RectViewNode.gd @@ -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) if edited_resource: - edited_resource.eitor_draw_additional(self) + edited_resource.editor_draw_additional(self) func refresh() -> void: if !edited_resource: