Skip to content

Commit

Permalink
Lua: UIMenu removed check for click on ProcessControl.. click is only…
Browse files Browse the repository at this point in the history
… on ProcessMouse
  • Loading branch information
manups4e committed Sep 13, 2023
1 parent 86b5d92 commit 49ea166
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -937,16 +937,13 @@ function UIMenu:ProcessControl()
end
end

--[[ TO BE TESTED
if self.Controls.Select.Enabled and (IsDisabledControlJustPressed(0, 201) or IsDisabledControlJustPressed(1, 201) or IsDisabledControlJustPressed(2, 201)) or
((IsDisabledControlJustPressed(0, 24) or IsDisabledControlJustPressed(1, 24) or IsDisabledControlJustPressed(2, 24)) and self.Settings.MouseControlsEnabled) then
if self.Controls.Select.Enabled and (IsDisabledControlJustPressed(0, 201) or IsDisabledControlJustPressed(1, 201) or IsDisabledControlJustPressed(2, 201)) then
Citizen.CreateThread(function()
self:SelectItem()
Citizen.Wait(125)
return
end)
end
]]

if (IsDisabledControlJustReleased(0, 172) or IsDisabledControlJustReleased(1, 172) or IsDisabledControlJustReleased(2, 172) or IsDisabledControlJustReleased(0, 241) or IsDisabledControlJustReleased(1, 241) or IsDisabledControlJustReleased(2, 241) or IsDisabledControlJustReleased(2, 241)) or
(IsDisabledControlJustReleased(0, 173) or IsDisabledControlJustReleased(1, 173) or IsDisabledControlJustReleased(2, 173) or IsDisabledControlJustReleased(0, 242) or IsDisabledControlJustReleased(1, 242) or IsDisabledControlJustReleased(2, 242)) or
Expand Down

0 comments on commit 49ea166

Please sign in to comment.