Button (Component): Difference between revisions

From correspond
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Component]]
[[Category:Component]]
[[Category:Interactive]]
[[Category:Interactive]]
The Button Component allows you to make a player run a command when pressed.
A Button is an [[:Category:Interactive|Interactive]] [[:Category:Component|Component]] that runs a command when pressed.
 
It is currently the only [[:Category:Interactive|Interactive]] [[:Category:Component|Component]] that renders its contents.


It is exclusive to [[Screen (Type)|Screens]].
It is exclusive to [[Screen (Type)|Screens]].


Attributes:
Attributes:
* anchor
* x
* x
* y
* y

Latest revision as of 06:57, 24 June 2026

A Button is an Interactive Component that runs a command when pressed.

It is currently the only Interactive Component that renders its contents.

It is exclusive to Screens.

Attributes:

  • anchor
  • x
  • y
  • w (Width)
  • h (Height)
  • action