-
Notifications
You must be signed in to change notification settings - Fork 15
Quick Overview
DanRathbun edited this page Jul 19, 2015
·
3 revisions
w = SKUI::Window.new
b = SKUI::Button.new( 'Hello' ) { puts 'World! :)' }
b.position( 10, 5 )
w.add_control( b )
w.show
Controls can be added, removed and modified at any time, even when the window is open. Type the previous example into the Ruby Console and play with the position of the button after the window is opened. That way you can quickly sketch out your UI.
Tip: Use negative values for Control.position to anchor the control to the right or bottom of it's container.
Example source: example.rb

It is possible to specify a custom theme, written in CSS. The theme can be changed at any time, even when the window is open.
Example: window.theme = SKUI::Window::THEME_GRAPHITE
