2023-04-20 01:26:54 +00:00
|
|
|
-- local style = require("pocket.ui.style")
|
2023-04-16 19:05:28 +00:00
|
|
|
|
|
|
|
local core = require("graphics.core")
|
|
|
|
|
|
|
|
local Div = require("graphics.elements.div")
|
|
|
|
local TextBox = require("graphics.elements.textbox")
|
|
|
|
|
2023-04-20 01:26:54 +00:00
|
|
|
-- local cpair = core.graphics.cpair
|
2023-04-16 19:05:28 +00:00
|
|
|
|
|
|
|
local TEXT_ALIGN = core.graphics.TEXT_ALIGN
|
|
|
|
|
|
|
|
-- new unit page view
|
|
|
|
---@param root graphics_element parent
|
|
|
|
local function new_view(root)
|
|
|
|
local main = Div{parent=root,x=1,y=1}
|
|
|
|
|
|
|
|
TextBox{parent=main,text="UNITS",x=1,y=1,height=1,alignment=TEXT_ALIGN.CENTER}
|
|
|
|
|
|
|
|
return main
|
|
|
|
end
|
|
|
|
|
|
|
|
return new_view
|