Button - LiruJ/GuiCookie GitHub Wiki

Overview

The Button controller is the base class for elements that should act as a button.

Components

protected, OnCreated()

This is used to handle mouse functionality with the button, and will throw an exception if not found.

Signals

LeftClicked

A Signal that is invoked when the button is left clicked, forwarded from the button's MouseHandler component.

RightClicked

A Signal that is invoked when the button is right clicked, forwarded from the button's MouseHandler component.

Functions

ConnectLeftClick(Action)

public, void

Connects the given action to the LeftClicked signal.

ConnectRightClick(Action)

public, void

Connects the given action to the RightClicked signal.

⚠️ **GitHub.com Fallback** ⚠️