UI inspector

This commit is contained in:
kepler155c@gmail.com
2019-11-12 21:13:17 -07:00
parent 674c6af509
commit 25405f15c8
6 changed files with 282 additions and 0 deletions

View File

@@ -134,3 +134,35 @@ function UI.TextEntry:eventHandler(event)
return false
end
function UI.TextEntry.example()
return UI.Window {
text = UI.TextEntry {
x = 2, y = 2,
width = 12,
limit = 36,
shadowText = 'normal',
},
upper = UI.TextEntry {
x = 2, y = 3,
width = 12,
limit = 36,
shadowText = 'upper',
transform = 'uppercase',
},
lower = UI.TextEntry {
x = 2, y = 4,
width = 12,
limit = 36,
shadowText = 'lower',
transform = 'lowercase',
},
number = UI.TextEntry {
x = 2, y = 5,
width = 12,
limit = 36,
transform = 'number',
shadowText = 'number',
},
}
end