mirror of
				https://github.com/Dadido3/noita-mapcap.git
				synced 2025-10-31 03:09:35 +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
 | 
						self.CurrentID = nil
 | 
				
			||||||
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:_DrawToolbar()
 | 
					function UI:_DrawToolbar()
 | 
				
			||||||
	local gui = self.gui
 | 
						local gui = self.gui
 | 
				
			||||||
	GuiZSet(gui, 0)
 | 
						GuiZSet(gui, 0)
 | 
				
			||||||
@ -115,12 +121,6 @@ function UI:_DrawMessages(messages)
 | 
				
			|||||||
	end
 | 
						end
 | 
				
			||||||
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()
 | 
					function UI:Draw()
 | 
				
			||||||
	self.gui = self.gui or GuiCreate()
 | 
						self.gui = self.gui or GuiCreate()
 | 
				
			||||||
	local gui = self.gui
 | 
						local gui = self.gui
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user