mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:42:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			742 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			742 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| Defines a GUI Button widget.
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| `@GUI::Button`
 | |
| 
 | |
| ## Examples
 | |
| 
 | |
| ```gml
 | |
| @GUI::Button {
 | |
|     name: "normal_button"
 | |
|     text: "Button"
 | |
| }
 | |
| 
 | |
| @GUI::Button {
 | |
|     name: "disabled_normal_button"
 | |
|     text: "Disabled"
 | |
|     enabled: "false"
 | |
| }
 | |
| ```
 | |
| 
 | |
| ## Registered Properties
 | |
| 
 | |
| | Property     | Type   | Possible values | Description                  |
 | |
| |--------------|--------|-----------------|------------------------------|
 | |
| | button_style | enum   | Normal, Coolbar | Sets the style of the button |
 | |
| | text         | string | Any string      | Sets the label text          |
 | |
| | checked      | bool   | true or false   |                              |
 | |
| | checkable    | bool   | true or false   |                              |
 | 
