Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Lua UIMenu: changed from DisableNonMenuControls to DisableGameControls
  • Loading branch information
manups4e committed Aug 3, 2023
1 parent 1897135 commit cc38b90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua
Expand Up @@ -138,7 +138,7 @@ function UIMenu.New(title, subTitle, x, y, glare, txtDictionary, txtName, altern
_Visible = false,
Dirty = false,
ReDraw = true,
disableNonMenuControls = true,
disableGameControls = true,
InstructionalButtons = {
InstructionalButton.New(GetLabelText("HUD_INPUT2"), -1, 176, 176, -1),
InstructionalButton.New(GetLabelText("HUD_INPUT3"), -1, 177, 177, -1)
Expand Down Expand Up @@ -249,11 +249,11 @@ end

---DisableNonMenuControls
---@param bool boolean
function UIMenu:DisableNonMenuControls(bool)
function UIMenu:DisableGameControls(bool)
if bool then
self.disableNonMenuControls = bool
self.disableGameControls = bool
else
return self.disableNonMenuControls
return self.disableGameControls
end
end

Expand Down Expand Up @@ -1229,7 +1229,7 @@ function UIMenu:Draw()

HideHudComponentThisFrame(19)

Controls:ToggleAll(not self:DisableNonMenuControls())
Controls:ToggleAll(not self:DisableGameControls())

ScaleformUI.Scaleforms._ui:Render2D()

Expand Down

0 comments on commit cc38b90

Please sign in to comment.