mirror of
				https://github.com/edubart/otclient.git
				synced 2025-11-04 04:36:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			298 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			298 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
-- @docclass
 | 
						|
UICheckBox = extends(UIWidget, "UICheckBox")
 | 
						|
 | 
						|
function UICheckBox.create()
 | 
						|
  local checkbox = UICheckBox.internalCreate()
 | 
						|
  checkbox:setFocusable(false)
 | 
						|
  checkbox:setTextAlign(AlignLeft)
 | 
						|
  return checkbox
 | 
						|
end
 | 
						|
 | 
						|
function UICheckBox:onClick()
 | 
						|
  self:setChecked(not self:isChecked())
 | 
						|
end
 |