From 1fa41500bd55ebde224b657e2e67c3fc0596e311 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 11 Nov 2026 23:47:43 +0900 Subject: [PATCH] . --- exp_scenario/module/gui/vlayer.lua | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/exp_scenario/module/gui/vlayer.lua b/exp_scenario/module/gui/vlayer.lua index ecb4ff46..593e990a 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -184,24 +184,6 @@ function Elements.stats_table.calculate_display_data(s_index) } end ---- Dropdown listing the surfaces available in vlayer ---- @class ExpGui_Vlayer.elements.surface_dropdown: ExpElement ---- @overload fun(parent: LuaGuiElement, controls: LuaGuiElement): LuaGuiElement -Elements.surface_dropdown = Gui.define("vlayer/surface_dropdown") - :draw{ - type = "drop-down", - } - :style{ - width = gui_width / 2, - } - :element_data{ - controls = Gui.from_argument(1), - } - :on_selection_state_changed(function(def, _, surface_dropdown) - --- @cast def ExpGui_Vlayer.elements.type_dropdown - Elements.controls.refresh_interfaces(def.data[surface_dropdown].controls) - end) --[[@as any]] - --- Refresh every bar of a table --- @param stats_table LuaGuiElement --- @param display_data table @@ -222,6 +204,24 @@ function Elements.stats_table.refresh_online() end end +--- Dropdown listing the surfaces available in vlayer +--- @class ExpGui_Vlayer.elements.surface_dropdown: ExpElement +--- @overload fun(parent: LuaGuiElement, controls: LuaGuiElement): LuaGuiElement +Elements.surface_dropdown = Gui.define("vlayer/surface_dropdown") + :draw{ + type = "drop-down", + } + :style{ + width = gui_width / 2, + } + :element_data{ + controls = Gui.from_argument(1), + } + :on_selection_state_changed(function(def, _, surface_dropdown) + --- @cast def ExpGui_Vlayer.elements.type_dropdown + Elements.controls.refresh_interfaces(def.data[surface_dropdown].controls) + end) --[[@as any]] + --- Refresh the listed interfaces --- @param surface_dropdown LuaGuiElement --- @param surfaces LuaSurface[]