Panel sprite button
A button that can be customized.
Authors and contributors to this experimental extension: D8H.
A button that can be used for menus and most labelled buttons of a game. The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.
There are ready-to-use buttons in the asset-store menu buttons pack.
Tip
Learn how to install new extensions by following a step-by-step guide.
Button (panel sprite)
A button that can be customized.
Object actions
De/activate interactions
De/activate interactions with the button.
See parameters
- Parameter 0: 👾 Object
- Parameter 1 (❓ Yes or No): Activate
Technical note: parameter 2 are internal parameters handled by GDevelop.
Label text
Change the label text.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Operator
- Parameter 2 (string): Value
Technical note: parameter 3 are internal parameters handled by GDevelop.
Object conditions
Interactions activated
Check if interactions are activated on the button.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Is clicked
Check if the button was just clicked.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Is focused
Check if the button is either hovered or pressed but not hovered.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Is hovered
Check if the cursor is hovered over the button.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Is idle
Check if the button is not used.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Is pressed
Check if the button is currently being pressed with mouse or touch.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Label text
Compare the label text.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Relational operator
- Parameter 2 (string): Value to compare
Technical note: parameter 3 are internal parameters handled by GDevelop.
Object expressions
Expression | Description | |
---|---|---|
Object.LabelText() |
Return the label text. |
This page is an auto-generated reference page about the Panel sprite button extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.