ActionButton:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > GUI

ActionButton
ExtensionExtension

a simple button with a name and an action

Description

Sizes itself to fit the name. Nice, simple constructor saves fiddling around with a raw Button.

SimpleButton in ServerTools is basically the same thing but I wanted that library to have no dependencies on crucial.

Class Methods

.new

Arguments:

layout
title
function
minWidth

to overide the auto-sizing feature

minHeight

default is GUI.skin.buttonHeight

color
backcolor
font

Instance Methods

.action

Arguments:

f

.init

Arguments:

layout
title
function
minWidth
minHeight
color
backcolor
font

Examples