Skip to content

Commit 86ff2a7

Browse files
committed
format
1 parent 793126e commit 86ff2a7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

material_maker/panels/graph_edit/lazy_link/lazy_link.gd

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,27 @@ enum Port {
1515
var csf : float
1616
var popup_menu_item_height : int
1717

18-
const MAX_POPUP_HEIGHT = 375.0
18+
const MAX_POPUP_HEIGHT = 375
1919

2020
const INACTIVE_COLOR := Color.DIM_GRAY
2121
const INACTIVE_LINK_COLOR := Color.WHITE
2222
const ACTIVE_COLOR := Color(0.643, 0.514, 1.0, 1.0)
2323
const ACTIVE_LINK_COLOR := Color(0.753, 0.667, 1.0, 1.0)
2424
const CONTEXT_COLOR := Color.STEEL_BLUE
25-
const CONTEXT_LINK_COLOR := Color(0.374, 0.609, 0.805)
25+
const CONTEXT_LINK_COLOR := Color(0.374, 0.609, 0.805, 1.0)
2626
const SLOT_SVG = "<svg width=\"16\"height=\"16\"><circle cx=\"8\"cy=\"8\"r=\"5\"fill=\"#FFF\"/></svg>"
2727

2828
var source : GraphNode
2929
var target : GraphNode
3030

31-
var has_context : bool = false
32-
var is_context_linking : bool = false
33-
3431
var frame: StyleBoxFlat
3532
var linked_frame: StyleBoxFlat
3633

3734
var from_point: Vector2
35+
var has_context : bool = false
3836
var is_lazy_linking: bool = false
3937
var is_context_link: bool = false
38+
var is_context_linking : bool = false
4039

4140

4241
func _ready() -> void:
@@ -47,10 +46,10 @@ func _ready() -> void:
4746
frame = StyleBoxFlat.new()
4847
frame.border_color = INACTIVE_COLOR
4948
frame.corner_detail = 4
49+
frame.draw_center = false
5050
frame.set_border_width_all(7)
5151
frame.set_corner_radius_all(4)
5252
frame.set_expand_margin_all(12.0)
53-
frame.draw_center = false
5453

5554
linked_frame = frame.duplicate()
5655
linked_frame.border_color = ACTIVE_COLOR
@@ -239,7 +238,7 @@ func create_context_menu(is_output: bool, source_output: int = -1) -> void:
239238
popup_menu_item_height))
240239

241240
popup.size = popup.get_contents_minimum_size() * csf
242-
popup.max_size.y = MAX_POPUP_HEIGHT * csf
241+
popup.max_size.y = MAX_POPUP_HEIGHT * int(csf)
243242
popup.show()
244243

245244

0 commit comments

Comments
 (0)