Skip to main content

Assigning Actions to Elements

You've got a cool layout... now what? Actions enable elements to do whatever you want when pressed, held, double tapped, and more.

Craig Sartor avatar
Written by Craig Sartor
Updated over 7 months ago

Overview

The actions menu is where all the... action... happens... ◔_◔

Anyways, GameGlass has a wide variety of prebuilt actions you can use to make your elements function in unique ways.


The Inline Menu

Whenever you select a component added from the insert menu in the Forge, you will see the Inline Menu. It contains six icons as described below the image (from left to right).


1. Opens the Action Menu. You can also jump directly to the actions menu by double-clicking any element type which can be assigned actions.

2. Replaces the button or toggle with another button or toggle of your choice that will use the same actions previously entered.

3. Modifies which layer this element resides in for overlapping elements. We allow movement between 10 separate layers.

4. Copy the element and all current attributes/actions. A perfect copy will be made sitting atop its parent.

5. Lock this element to prevent modifications including canvas movement.

6. Delete this element


The Actions Editor


Upon opening the button actions editor you will be able to choose when any action you add will trigger.

1. On tap is the typical and default choice. Actions in this tab will trigger when the button is tapped briefly.

2. On Double tap will only trigger when the button is tapped twice in short succession.

3. On Hold will trigger when the button has been pressed for a specified duration.

4. On Idle State will only trigger when a button is in its idle/default position.

5. On Tap State will only trigger while a button is in the tapped state.

Note: For toggles these are called On and Off states but function the same.


Inputs



Keybind: You can either select a keybind from the dropdown menu or press record and then tap the keys you wish to assign from your keyboard. Then choose to press/release the key or only press or only release.

Mouse Click: Select which mouse button from the dropdown menu (Left, Right, or Center) and then whether this will trigger a press/release, or only press, or only release.

Mouse Wheel: Enter the number of wheel clicks to perform, then select the direction of the scroll as either Up or Down.

Write Text: Anything you type in this field will be typed out character by character when pressing the button. This may be useful to write certain phrases in a chat box among other things.





Did this answer your question?