Tradify::Button
Inherits Tradify::Component < Reference < Object
Constants
DEFAULT_COLOR = LibRay::WHITE
DISABLED_COLOR = LibRay::Color.new(r: 70, g: 70, b: 70, a: 255)
FONT_SIZE = 20
HOVERED_COLOR = LibRay::GREEN
PADDING = 15
SPACING = 3
Constructors
new(game : Game, x, y, text : String, click : Proc(Bool) = -> do
false
end, padding : Int32 = PADDING)
Instance methods
click
color
disable
disabled?
draw(px, py)
enable
enabled?
hovered?
over?(px, py, mouse)
padding
remeasure
text
text=(text : String)
update(px, py)