Avoid name collision between highlight variable and function
This commit is contained in:
@@ -25,7 +25,7 @@ export(Array) var target_when_selected_action_is_in = []
|
||||
|
||||
var outline: ItemOutline
|
||||
|
||||
var highlight: bool
|
||||
var isHighlighted: bool
|
||||
var lastHighlightState: bool
|
||||
|
||||
var active: bool
|
||||
@@ -57,16 +57,16 @@ func _process(_delta) -> void:
|
||||
if(is_interactive == false):
|
||||
return
|
||||
|
||||
if highlight != lastHighlightState:
|
||||
if highlight:
|
||||
if isHighlighted != lastHighlightState:
|
||||
if isHighlighted:
|
||||
outline.show()
|
||||
else:
|
||||
outline.hide()
|
||||
lastHighlightState = highlight
|
||||
lastHighlightState = isHighlighted
|
||||
pass
|
||||
|
||||
func highlight(value: bool):
|
||||
highlight = value
|
||||
isHighlighted = value
|
||||
|
||||
func set_tooltip(action: String, text: String):
|
||||
set(action + "_text", text)
|
||||
|
||||
Reference in New Issue
Block a user