| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							|  |  |  | <class name="TouchScreenButton" inherits="Node2D" category="Core" version="3.0.alpha.custom_build"> | 
					
						
							|  |  |  | 	<brief_description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 		Button for touch screen devices. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 		Button for touch screen devices. You can set it to be visible on all screens, or only on touch devices. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							|  |  |  | 	<demos> | 
					
						
							|  |  |  | 	</demos> | 
					
						
							|  |  |  | 	<methods> | 
					
						
							|  |  |  | 		<method name="get_action" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="String"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Returns the button's action. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_bitmask" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="BitMap"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Returns the button's bitmask. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_shape" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="Shape2D"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Returns the button's shape. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_texture" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="Texture"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Returns the button's texture for the normal state. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_texture_pressed" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="Texture"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Returns the button's texture for the pressed state. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_visibility_mode" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="int" enum="TouchScreenButton.VisibilityMode"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Sets the button's visibility mode. See [code]VISIBILITY_*[/code] constants. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="is_passby_press_enabled" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="bool"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							|  |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="is_pressed" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="bool"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Returns [code]true[/code] if this button is currently pressed. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="is_shape_centered" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="bool"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							|  |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="is_shape_visible" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="bool"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							|  |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_action"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="action" type="String"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Sets the button's action. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_bitmask"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="bitmask" type="BitMap"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Sets the button's [BitMap] bitmask. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_passby_press"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="enabled" type="bool"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				If [code]true[/code] passby presses are enabled for this button. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_shape"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="shape" type="Shape2D"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Sets the button's shape. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_shape_centered"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="bool" type="bool"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				If [code]true[/code] the button's shape is centered. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_shape_visible"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="bool" type="bool"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				If [code]true[/code] the button's shape is visible. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_texture"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="texture" type="Texture"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Sets the button's [Texture] for the normal state. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_texture_pressed"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="texture_pressed" type="Texture"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Sets the button's [Texture] for the pressed state. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_visibility_mode"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="mode" type="int" enum="TouchScreenButton.VisibilityMode"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Sets the button's visibility mode. See the [code]VISIBILITY_*[/code] constants. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							|  |  |  | 	<members> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="action" type="String" setter="set_action" getter="get_action"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			The button's action. Actions can be handled with [InputEventAction]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="bitmask" type="BitMap" setter="set_bitmask" getter="get_bitmask"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			The button's bitmask. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="normal" type="Texture" setter="set_texture" getter="get_texture"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			The button's texture for the normal state. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="passby_press" type="bool" setter="set_passby_press" getter="is_passby_press_enabled"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			If [code]true[/code] passby presses are enabled. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="pressed" type="Texture" setter="set_texture_pressed" getter="get_texture_pressed"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			The button's texture for the pressed state. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="shape" type="Shape2D" setter="set_shape" getter="get_shape"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			The button's shape. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="shape_centered" type="bool" setter="set_shape_centered" getter="is_shape_centered"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			If [code]true[/code] the button's shape is centered. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="shape_visible" type="bool" setter="set_shape_visible" getter="is_shape_visible"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			If [code]true[/code] the button's shape is visible. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="visibility_mode" type="int" setter="set_visibility_mode" getter="get_visibility_mode" enum="TouchScreenButton.VisibilityMode"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			The button's visibility mode. See [code]VISIBILITY_*[/code] constants. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							|  |  |  | 	</members> | 
					
						
							|  |  |  | 	<signals> | 
					
						
							|  |  |  | 		<signal name="pressed"> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Emitted when the button is pressed (down). | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</signal> | 
					
						
							|  |  |  | 		<signal name="released"> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 				Emitted when the button is released (up). | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</signal> | 
					
						
							|  |  |  | 	</signals> | 
					
						
							|  |  |  | 	<constants> | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		<constant name="VISIBILITY_ALWAYS" value="0"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			Always visible. | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="VISIBILITY_TOUCHSCREEN_ONLY" value="1"> | 
					
						
							| 
									
										
										
										
											2017-10-10 23:31:04 +02:00
										 |  |  | 			Visible on touch screens only. | 
					
						
							| 
									
										
										
										
											2017-09-16 01:46:14 +02:00
										 |  |  | 		</constant> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</constants> | 
					
						
							|  |  |  | </class> |