File tree 1 file changed +3
-10
lines changed
addons/block_code/ui/blocks/utilities/background
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,11 @@ extends Control
3
3
4
4
const Constants = preload ("res://addons/block_code/ui/constants.gd" )
5
5
6
+ var outline_color : Color
7
+
6
8
@export var color : Color :
7
9
set = _set_color
8
10
9
- @export var outline_color : Color :
10
- set = _set_outline_color
11
-
12
11
@export var show_top : bool = true :
13
12
set = _set_show_top
14
13
@@ -23,11 +22,7 @@ const Constants = preload("res://addons/block_code/ui/constants.gd")
23
22
24
23
func _set_color (new_color ):
25
24
color = new_color
26
- queue_redraw ()
27
-
28
-
29
- func _set_outline_color (new_outline_color ):
30
- outline_color = new_outline_color
25
+ outline_color = color .darkened (0.2 )
31
26
queue_redraw ()
32
27
33
28
@@ -47,8 +42,6 @@ func _set_shift_bottom(new_shift_bottom):
47
42
48
43
49
44
func _draw ():
50
- outline_color = color .darkened (0.2 )
51
-
52
45
var fill_polygon : PackedVector2Array
53
46
fill_polygon .append (Vector2 (0.0 , 0.0 ))
54
47
if show_top :
You can’t perform that action at this time.
0 commit comments