UI improvements
This commit is contained in:
@@ -43,7 +43,11 @@ var _mouseDelta:Vector2 = Vector2.ZERO
|
||||
var _rightMouseHeld:bool = false
|
||||
|
||||
func _canOrbit() -> bool:
|
||||
return not UI.activeConversation
|
||||
if UI.activeConversation:
|
||||
return false
|
||||
if UI.FOCUS_STACK.top() != null:
|
||||
return false
|
||||
return true
|
||||
|
||||
func _input(event:InputEvent) -> void:
|
||||
if not _canOrbit():
|
||||
|
||||
@@ -65,7 +65,7 @@ func _applyFriction(delta:float) -> void:
|
||||
func _canMove() -> bool:
|
||||
if UI.activeConversation:
|
||||
return false
|
||||
if UI.GAME_MENU && UI.GAME_MENU.isOpen():
|
||||
if UI.FOCUS_STACK.top() != null:
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user