mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 03:56:22 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			251 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			251 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| -- @docclass
 | |
| UIButton = extends(UIWidget, "UIButton")
 | |
| 
 | |
| function UIButton.create()
 | |
|   local button = UIButton.internalCreate()
 | |
|   button:setFocusable(false)
 | |
|   return button
 | |
| end
 | |
| 
 | |
| function UIButton:onMouseRelease(pos, button)
 | |
|   return self:isPressed()
 | |
| end
 | 
