SimpleClickCommands

Inherits: PopochiuCommands

Description

Defines the commands and fallback methods for the 2-click Context-sensitive GUI.

In this GUI, players interact with objects in the game based on the clicked mouse button. Usually, the left click is used to INTERACT with objects, while the RIGHT click is used to EXAMINE objects. This behavior is based on the one used in Beneath A Steel Sky and Broken Sword.


Methods

Return Type Method
void click_clickable()
void click_inventory_item()
void fallback()
void right_click_clickable()
void right_click_inventory_item()

Method Descriptions

click_clickable

func click_clickable() -> void

Called when players click (LMB) a PopochiuClickable.


click_inventory_item

func click_inventory_item() -> void

Called when players click (left mouse button) a PopochiuInventoryItem.


fallback

func fallback() -> void

Called by Popochiu when a command doesn't have an associated method.


right_click_clickable

func right_click_clickable() -> void

Called when players right click (RMB) a PopochiuClickable.


right_click_inventory_item

func right_click_inventory_item() -> void

Called when players right click (right mouse button) a PopochiuInventoryItem.