ToolButton

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

Category: Core

Brief Description

Flat button helper class.

Properties

bool flat O: true

Theme Properties

StyleBox disabled  
StyleBox focus  
Font font  
Color font_color Color( 0.88, 0.88, 0.88, 1 )
Color font_color_disabled Color( 0.9, 0.95, 1, 0.3 )
Color font_color_hover Color( 0.94, 0.94, 0.94, 1 )
Color font_color_pressed Color( 1, 1, 1, 1 )
StyleBox hover  
int hseparation 3
StyleBox normal  
StyleBox pressed  

Description

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

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