@@ -15,28 +15,27 @@ enum Port {
1515var csf : float
1616var popup_menu_item_height : int
1717
18- const MAX_POPUP_HEIGHT = 375.0
18+ const MAX_POPUP_HEIGHT = 375
1919
2020const INACTIVE_COLOR := Color .DIM_GRAY
2121const INACTIVE_LINK_COLOR := Color .WHITE
2222const ACTIVE_COLOR := Color (0.643 , 0.514 , 1.0 , 1.0 )
2323const ACTIVE_LINK_COLOR := Color (0.753 , 0.667 , 1.0 , 1.0 )
2424const 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 )
2626const SLOT_SVG = "<svg width=\" 16\" height=\" 16\" ><circle cx=\" 8\" cy=\" 8\" r=\" 5\" fill=\" #FFF\" /></svg>"
2727
2828var source : GraphNode
2929var target : GraphNode
3030
31- var has_context : bool = false
32- var is_context_linking : bool = false
33-
3431var frame : StyleBoxFlat
3532var linked_frame : StyleBoxFlat
3633
3734var from_point : Vector2
35+ var has_context : bool = false
3836var is_lazy_linking : bool = false
3937var is_context_link : bool = false
38+ var is_context_linking : bool = false
4039
4140
4241func _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