Renamed Label to TextBlock, added Shoes text dsl methods; needs mroe refinements, made tooltip styleable.

This commit is contained in:
2021-01-05 17:31:31 -06:00
parent 0268a8a5fb
commit 886680ab31
8 changed files with 255 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ module CyberarmEngine
options[:toggled] = options[:checked]
@toggle_button = ToggleButton.new(options)
@label = Label.new(text, options)
@label = TextBlock.new(text, options)
@label.subscribe(:holding_left_mouse_button) do |sender, x, y|
@toggle_button.left_mouse_button(sender, x, y)