ToolButton

Inherits: Button < BaseButton < Control < CanvasItem < Node < Object

Category: Core

Brief Description

Flat button helper class.

Theme Properties

StyleBox disabled
StyleBox focus
Font font
Color font_color
Color font_color_disabled
Color font_color_hover
Color font_color_pressed
StyleBox hover
int hseparation
StyleBox normal
StyleBox pressed

Description

This is a helper class to generate a flat Button (see Button.set_flat), creating a ToolButton is equivalent to:

var btn = Button.new()
btn.set_flat(true)