ToolButton

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

Category: Core

Brief Description

Flat button helper class.

Theme Properties

StyleBoxdisabled
StyleBoxfocus
Fontfont
Colorfont_color
Colorfont_color_disabled
Colorfont_color_hover
Colorfont_color_pressed
StyleBoxhover
inthseparation
StyleBoxnormal
StyleBoxpressed

Description

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

  1. var btn = Button.new()
  2. btn.flat = true