ToolButton

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

类别: 核心

简要说明

平面按钮帮助程序类。

主题属性

StyleBox

残疾人

StyleBox

集中

Font

字体

Color

font_color

颜色(0.88、0.88、0.88、1)

Color

font_color_disabled

颜色(0.9、0.95、1、0.3)

Color

font_color_hover

颜色(0.94、0.94、0.94、1)

Color

font_color_pressed

颜色(1,1,1,1)

StyleBox

悬停

int

H分离

3

StyleBox

正常的

StyleBox

按下

描述

这是用于生成平面的帮助器类 Button (见 Button.flat )创建 ToolButton 相当于:

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