mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
Move SuspendDrawing method up
This commit is contained in:
parent
38f83d19c9
commit
1eb6c10286
12
files/ui.lua
12
files/ui.lua
@ -30,6 +30,12 @@ function UI:_ResetID()
|
||||
self.CurrentID = nil
|
||||
end
|
||||
|
||||
---Stops the UI from drawing for the next few frames.
|
||||
---@param frames integer
|
||||
function UI:SuspendDrawing(frames)
|
||||
self.suspendFrames = math.max(self.suspendFrames or 0, frames)
|
||||
end
|
||||
|
||||
function UI:_DrawToolbar()
|
||||
local gui = self.gui
|
||||
GuiZSet(gui, 0)
|
||||
@ -115,12 +121,6 @@ function UI:_DrawMessages(messages)
|
||||
end
|
||||
end
|
||||
|
||||
---Stops the UI from drawing for the next few frames.
|
||||
---@param frames integer
|
||||
function UI:SuspendDrawing(frames)
|
||||
self.suspendFrames = math.max(self.suspendFrames or 0, frames)
|
||||
end
|
||||
|
||||
function UI:Draw()
|
||||
self.gui = self.gui or GuiCreate()
|
||||
local gui = self.gui
|
||||
|
Loading…
Reference in New Issue
Block a user