Skip to reading
The GUI Designer

Understand the five mouse events

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
Source table from Understand the five mouse events, page 26
EventUse it for
HoverA pointer-enter response. Keep it short and avoid rewards that can repeat whenever the pointer re-enters.
ClickThe ordinary left-click action.
Double ClickA separate double-left-click response.
Right ClickAn alternate command or context action.
Double Right ClickA separate double-right-click response.

Two similar-looking kinds of choice#

The list includes built-in behaviors such as show-gui, hide-gui, toggle-gui and set-verb, as well as the shared action catalog such as Show GUI, Set Variable and Change GUI Element Property.

Source table from Understand the five mouse events, page 26
Chosen kindWhere its parameters go
Built-in show-guiPut the GUI ID, such as workshop_menu, in Click Target.
Catalog Show GUIUse the GUI parameter in the action editor.
Built-in set-verbUse the Click Verb selector. Choose Look or Use from the defined verbs.
Catalog actionEdit that action's displayed parameters, just as in an action list.

For the HUD, give look_button a set-verb Click behavior with Look as Click Verb, and do the same for use_button with Use. During play, choosing a verb prepares the next world interaction; it does not automatically use an arbitrary scene object.

A double-click normally includes an earlier single click. Do not place unrelated irreversible rewards on both events and assume only one will run. On touchscreens, keep important commands available through ordinary taps.

The Legacy Click Action field remains for older/custom action strings. Prefer the explicit Events setup for new controls, and check for old behavior when converting an existing interface.

Page 26 of 57Permalink
Go to page