mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Correct partial table types
`_display_data` is a cache keyed by force name, not a single record. The auto complete accumulator starts empty, so its fields are optional. Game commands have no usage beyond their own help text. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -277,8 +277,8 @@ local function apply_planners_in_area(player, area, machine_name, planner_with_p
|
||||
-- Bounding box table to be reused in the loop below
|
||||
--- @type BoundingBox
|
||||
local param_area = {
|
||||
left_top = {},
|
||||
right_bottom = {}
|
||||
left_top = { x = 0, y = 0 },
|
||||
right_bottom = { x = 0, y = 0 },
|
||||
}
|
||||
|
||||
-- Update area param table to be reused in the loop below
|
||||
|
||||
@@ -128,6 +128,7 @@ Elements.milestone_table = Gui.define("research_milestones/milestone_table")
|
||||
|
||||
do local _row_data = {}
|
||||
--- @type ExpGui_ResearchMilestones.elements.milestone_table.row_data
|
||||
--- @diagnostic disable-next-line: missing-fields
|
||||
local empty_row_data = { color = font_color.positive }
|
||||
|
||||
--- Get the row data for a force and research
|
||||
|
||||
@@ -416,7 +416,7 @@ function Elements.eta_label.refresh(eta_label)
|
||||
eta_label.tooltip = display_data.tooltip
|
||||
end
|
||||
|
||||
do local _display_data = {} --- @type Elements.eta_label.display_data
|
||||
do local _display_data = {} --- @type table<string, Elements.eta_label.display_data>
|
||||
--- Refresh the eta label for all online players
|
||||
function Elements.eta_label.refresh_online()
|
||||
-- Refresh the row data for online forces
|
||||
|
||||
Reference in New Issue
Block a user