File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,13 +97,13 @@ func _ready() -> void:
9797 if type != Type .NONE :
9898 widget .reset_size ()
9999 reset_button .tooltip_text = Translator .translate ("Reset to default" )
100- reset_button .position = Vector2 ( size . x - 24 , 4 )
100+ reset_button .set_anchors_and_offsets_preset ( Control . PRESET_CENTER_RIGHT )
101101 reset_button .pressed .connect (_on_reset_button_pressed )
102102 update_widgets ()
103103
104104func _on_resized () -> void :
105105 widget .position = Vector2 (size .x - panel_width , 3 )
106- reset_button .position = Vector2 ( size . x - 24 , 4 )
106+ reset_button .set_anchors_and_offsets_preset ( Control . PRESET_CENTER_RIGHT )
107107 queue_redraw ()
108108
109109func _on_reset_button_pressed () -> void :
Original file line number Diff line number Diff line change 66[node name ="SettingFrame" type ="Control" ]
77custom_minimum_size = Vector2 (0 , 28 )
88layout_mode = 3
9- anchors_preset = 10
109anchor_right = 1.0
10+ offset_bottom = 24.0
1111grow_horizontal = 2
1212focus_mode = 1
1313mouse_filter = 1
1414script = ExtResource ("1_p1ngn" )
1515
1616[node name ="ResetButton" type ="Button" parent ="." ]
17- layout_mode = 0
18- offset_left = 1000.0
19- offset_top = 3.0
20- offset_right = 1024.0
21- offset_bottom = 27.0
17+ layout_mode = 1
18+ anchors_preset = -1
19+ anchor_left = 1.0
20+ anchor_right = 1.0
21+ offset_left = -24.0
22+ offset_bottom = 24.0
23+ grow_horizontal = 0
2224size_flags_horizontal = 10
2325size_flags_vertical = 4
2426focus_mode = 0
You can’t perform that action at this time.
0 commit comments