This commit is contained in:
kepler155c@gmail.com
2019-11-18 14:32:10 -07:00
parent a3a8c64be8
commit ffa412c59d
8 changed files with 245 additions and 252 deletions

View File

@@ -61,17 +61,14 @@ end
function UI.SlideOut.example()
-- for the transistion to work properly, the parent must have a canvas
return UI.ActiveLayer {
y = 1, -- TODO: if this is set to anything greater than 1, then
-- the layer is not rendered in the correct location
-- a general issue in canvas layers
backgroundColor = colors.cyan,
y = 2,
button = UI.Button {
x = 2, y = 5,
text = 'show',
},
slideOut = UI.SlideOut {
backgroundColor = colors.yellow,
y = -4, height = 4,
backgroundColor = _G.colors.yellow,
y = -4, height = 4, x = 3, ex = -3,
button = UI.Button {
x = 2, y = 2,
text = 'hide',