File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
addons/block_code/ui/blocks Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ layout_mode = 2
4141mouse_filter = 1
4242script = ExtResource ("2_yrw8l" )
4343color = Color (1 , 1 , 1 , 1 )
44- top_variant = 1
44+ is_round_top = true
4545
4646[node name ="DragDropArea" parent ="VBoxContainer/TopMarginContainer" instance =ExtResource ("3_swkpp" )]
4747layout_mode = 2
Original file line number Diff line number Diff line change @@ -27,11 +27,8 @@ var parent_block: Block
2727@export var shift_bottom : float = 0.0 :
2828 set = _set_shift_bottom
2929
30- enum { BODY , HEADER }
31-
32- ## Style of the top knob
33- @export var top_variant := BODY :
34- set = _set_top_variant
30+ @export var is_round_top : bool = false :
31+ set = _set_is_round_top
3532
3633@export var is_pointy : bool = false :
3734 set = _set_is_pointy
@@ -68,8 +65,8 @@ func _set_shift_bottom(new_shift_bottom):
6865 queue_redraw ()
6966
7067
71- func _set_top_variant ( new_variant ):
72- top_variant = clamp ( new_variant , BODY , HEADER )
68+ func _set_is_round_top ( new_is_round_top ):
69+ is_round_top = new_is_round_top
7370 queue_redraw ()
7471
7572
@@ -95,7 +92,7 @@ func _draw():
9592 fill_polygon .append (Vector2 (0.0 , 0.0 ))
9693
9794 if show_top :
98- if top_variant == HEADER :
95+ if is_round_top :
9996 top_knob .append_array (
10097 [
10198 Vector2 (5 , - 4.012612 ),
You can’t perform that action at this time.
0 commit comments