mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Overhaul the top sections of the class reference (GUI classes)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Button" inherits="BaseButton" version="4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<brief_description>
|
||||
Standard themed Button.
|
||||
A themed button that can contain text and an icon.
|
||||
</brief_description>
|
||||
<description>
|
||||
Button is the standard themed button. It can contain text and an icon, and will display them according to the current [Theme].
|
||||
[Button] is the standard themed button. It can contain text and an icon, and it will display them according to the current [Theme].
|
||||
[b]Example of creating a button and assigning an action when pressed by code:[/b]
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
@@ -32,9 +32,8 @@
|
||||
}
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
Buttons (like all Control nodes) can also be created in the editor, but some situations may require creating them from code.
|
||||
See also [BaseButton] which contains common properties and methods associated with this node.
|
||||
[b]Note:[/b] Buttons do not interpret touch input and therefore don't support multitouch, since mouse emulation can only press one button at a given time. Use [TouchScreenButton] for buttons that trigger gameplay movement or actions, as [TouchScreenButton] supports multitouch.
|
||||
[b]Note:[/b] Buttons do not interpret touch input and therefore don't support multitouch, since mouse emulation can only press one button at a given time. Use [TouchScreenButton] for buttons that trigger gameplay movement or actions.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link title="2D Dodge The Creeps Demo">https://godotengine.org/asset-library/asset/515</link>
|
||||
|
||||
Reference in New Issue
Block a user