FIX - allow movement outside phone text fields (#14)

This commit is contained in:
Leon.Schmidt
2026-08-20 15:47:39 +02:00
committed by GitHub
parent daa67cfb1e
commit 5b5e9fe914
8 changed files with 135 additions and 28 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
SkyPhoneFocus = {}
local blocked_phone_controls = { 19, 24, 140, 141, 142, 257, 263, 264 }
local blocked_phone_controls = { 24, 140, 141, 142, 257, 263, 264 }
local blocked_phone_look_controls = { 1, 2, 3, 4, 5, 6 }
local focused_control_groups = { 0, 1, 2 }
@@ -39,10 +39,10 @@ function SkyPhoneFocus.Resolve(state)
or state.payphone_focus
or state.sim_picker_open
or (state.camera_active and state.camera_nui_focused)
local cursor = focused and not (game_input and state.cursor_disabled)
local cursor = focused
return {
block_game = cursor,
block_look = game_input and not state.cursor_disabled,
block_game = cursor and (not game_input or state.text_input_focused),
block_look = game_input,
cursor = cursor,
focused = focused,
game_input = game_input,