UX improvements for Button:active handling, added Style stub, Default element width/height is now window width/height instead of 0,0; may need tweaking.

This commit is contained in:
2019-03-25 20:07:43 -05:00
parent 8223dd7a01
commit a8b8d5aba1
11 changed files with 82 additions and 35 deletions

View File

@@ -21,11 +21,17 @@ module CyberarmEngine
setup
end
# throws :blur event to focused element and sets GuiState focused element
# Does NOT throw :focus event at element or set element as focused
def focus=(element)
@focus.publish(:blur) if @focus and element
@focus.publish(:blur) if @focus and element && @focus != element
@focus = element
end
def focused
@focus
end
def update
super