updated type hints for remaining graphics_element generic types
This commit is contained in:
@@ -42,7 +42,7 @@ local hzd_fg_bg = cpair(colors.white, colors.gray)
|
||||
local dis_colors = cpair(colors.white, colors.lightGray)
|
||||
|
||||
-- new unit control page view
|
||||
---@param root graphics_element parent
|
||||
---@param root Container parent
|
||||
local function new_view(root)
|
||||
local db = iocontrol.get_db()
|
||||
|
||||
@@ -63,7 +63,7 @@ local function new_view(root)
|
||||
local btn_fg_bg = cpair(colors.green, colors.black)
|
||||
local btn_active = cpair(colors.white, colors.black)
|
||||
|
||||
local page_div = nil ---@type nil|graphics_element
|
||||
local page_div = nil ---@type Div|nil
|
||||
|
||||
-- set sidebar to display unit-specific fields based on a specified unit
|
||||
local function set_sidebar()
|
||||
@@ -83,7 +83,7 @@ local function new_view(root)
|
||||
local function load()
|
||||
page_div = Div{parent=main,y=2,width=main.get_width()}
|
||||
|
||||
local panes = {}
|
||||
local panes = {} ---@type Div[]
|
||||
|
||||
local active_unit = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user