moar ui examples

This commit is contained in:
kepler155c@gmail.com
2019-11-14 15:43:20 -07:00
parent 3241326a2f
commit 14057c2bf9
7 changed files with 105 additions and 4 deletions

View File

@@ -122,3 +122,34 @@ function UI.Wizard:eventHandler(event)
self:draw()
end
end
function UI.Wizard.example()
return UI.Wizard {
ey = -2,
pages = {
splash = UI.WizardPage {
index = 1,
intro = UI.TextArea {
inactive = true,
x = 3, ex = -3, y = 2, ey = -2,
value = 'sample text',
},
},
label = UI.WizardPage {
index = 2,
intro = UI.TextArea {
inactive = true,
x = 3, ex = -3, y = 2, ey = -2,
value = 'sample more text',
},
},
password = UI.WizardPage {
index = 3,
text = UI.TextEntry {
x = 12, ex = -3, y = 2,
shadowText = 'tet',
},
},
},
}
end