UI improvements
This commit is contained in:
1 parent
8ffde98fdd
commit
0cf1f92eaa
16 files changed
+263
-114
No files matched your search
@@ -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