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

@@ -87,3 +87,19 @@ function UI.Tabs:eventHandler(event)
tab:draw()
end
end
function UI.Tabs.example()
return UI.Tabs {
[1] = UI.Tab {
tabTitle = 'tab1',
entry = UI.TextEntry { y = 3, shadowText = 'text' },
},
[2] = UI.Tab {
tabTitle = 'tab2',
button = UI.Button { y = 3 },
},
[3] = UI.Tab {
tabTitle = 'tab3',
}
}
end