specific graphics element types rather than graphics_element
This commit is contained in:
@@ -58,8 +58,8 @@ local tool_ctl = {
|
||||
viewing_config = false,
|
||||
importing_legacy = false,
|
||||
|
||||
view_cfg = nil, ---@type graphics_element
|
||||
settings_apply = nil, ---@type graphics_element
|
||||
view_cfg = nil, ---@type PushButton
|
||||
settings_apply = nil, ---@type PushButton
|
||||
|
||||
set_networked = nil, ---@type function
|
||||
bundled_emcool = nil, ---@type function
|
||||
@@ -68,8 +68,8 @@ local tool_ctl = {
|
||||
load_legacy = nil, ---@type function
|
||||
|
||||
show_auth_key = nil, ---@type function
|
||||
show_key_btn = nil, ---@type graphics_element
|
||||
auth_key_textbox = nil, ---@type graphics_element
|
||||
show_key_btn = nil, ---@type PushButton
|
||||
auth_key_textbox = nil, ---@type TextBox
|
||||
auth_key_value = ""
|
||||
}
|
||||
|
||||
|
||||
@@ -83,10 +83,10 @@ function iocontrol.init_core(pkt_comms, nav, cfg)
|
||||
|
||||
get_tone_states = function () comms.diag__get_alarm_tones() end,
|
||||
|
||||
ready_warn = nil, ---@type graphics_element
|
||||
tone_buttons = {}, ---@type graphics_element[]
|
||||
alarm_buttons = {}, ---@type graphics_element[]
|
||||
tone_indicators = {} ---@type graphics_element[] indicators to update from supervisor tone states
|
||||
ready_warn = nil, ---@type TextBox
|
||||
tone_buttons = {}, ---@type SwitchButton[]
|
||||
alarm_buttons = {}, ---@type CheckBox[]
|
||||
tone_indicators = {} ---@type IndicatorLight[] indicators to update from supervisor tone states
|
||||
}
|
||||
|
||||
-- API access
|
||||
|
||||
@@ -109,8 +109,8 @@ pocket.APP_ID = APP_ID
|
||||
---@param smem pkt_shared_memory
|
||||
function pocket.init_nav(smem)
|
||||
local self = {
|
||||
pane = nil, ---@type graphics_element
|
||||
sidebar = nil, ---@type graphics_element
|
||||
pane = nil, ---@type MultiPane|nil
|
||||
sidebar = nil, ---@type Sidebar|nil
|
||||
apps = {}, ---@type pocket_app[]
|
||||
containers = {}, ---@type graphics_element[]
|
||||
help_map = {}, ---@type { [string]: function }
|
||||
@@ -125,11 +125,11 @@ function pocket.init_nav(smem)
|
||||
local nav = {}
|
||||
|
||||
-- set the root pane element to switch between apps with
|
||||
---@param root_pane graphics_element
|
||||
---@param root_pane MultiPane
|
||||
function nav.set_pane(root_pane) self.pane = root_pane end
|
||||
|
||||
-- link sidebar element
|
||||
---@param sidebar graphics_element
|
||||
---@param sidebar Sidebar
|
||||
function nav.set_sidebar(sidebar) self.sidebar = sidebar end
|
||||
|
||||
-- register an app
|
||||
|
||||
Reference in New Issue
Block a user