From e551af28cd9adcc3e63faa1ae061e703156568b3 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Fri, 6 Dec 2024 22:07:53 -0600 Subject: [PATCH] Fuckin' nevermind I guess --- scripts/xmle/form_handler.gd | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/scripts/xmle/form_handler.gd b/scripts/xmle/form_handler.gd index 10cca87..7103311 100644 --- a/scripts/xmle/form_handler.gd +++ b/scripts/xmle/form_handler.gd @@ -58,27 +58,22 @@ func _ready() -> void: set_region_view() ) link_pos_to_callable_e(region_pos, func(_val: int): - if ts_dont_change_internal or fuck_you_godot_signals: - fuck_you_godot_signals -= 1 - return + if ts_dont_change_internal: return set_property_on_current_frame("pos", get_vector(region_pos)) set_region_view() + set_frames_tree() ) link_pos_to_callable_e(region_size, func(_val: int): - if ts_dont_change_internal or fuck_you_godot_signals: - fuck_you_godot_signals -= 1 - return - print("test size", ts_dont_change_internal) + if ts_dont_change_internal: return set_property_on_current_frame("size", get_vector(region_size)) set_region_view() - update_current_frame_child() + set_frames_tree() ) link_pos_to_callable_e(sprite_offset, func(_val: int): - if ts_dont_change_internal or fuck_you_godot_signals: - fuck_you_godot_signals -= 1 - return + if ts_dont_change_internal: return set_property_on_current_frame("frame_pos", get_vector(sprite_offset)) set_region_view() + set_frames_tree() ) var rs_autocrop:Button = region_size.get_node("autocrop") @@ -217,9 +212,6 @@ func link_range_to_callable(obj:BoxContainer, callable:Callable, value) -> void: func set_vector(obj:BoxContainer, vector:Vector2) -> void: var x:Range = obj.get_node("value_w") var y:Range = obj.get_node("value_h") - fuck_you_godot_signals = 3 - x.set_value_no_signal(vector.x) - y.set_value_no_signal(vector.y) x.set_value_no_signal(vector.x) y.set_value_no_signal(vector.y)