Move the virtual layer into exp_scenario (#463)

The virtual layer was a legacy control module and a legacy gui built on
the legacy event system. The control module moves to
exp_scenario/module/control/vlayer.lua in the event_handler shape, with the
data typed and the allowed item table built locally rather than by
rewriting the config. The gui moves to exp_scenario/module/gui/vlayer.lua
in the shape of the other scenario guis: statistics as label and bar
defines refreshed from display data computed once, and the interface
controls as a define which owns its dropdowns.

Api changes while moving: interfaces are removed by entity rather than by
searching a position, the dead circuit wiring parameter is gone since
connect_neighbour no longer exists, and remove_item now takes only the
unallocated amount out of storage and counts that production back out of
the total, which the legacy module got wrong.

The locale moves to [exp-gui_vlayer] in en, zh-CN and zh-TW and the legacy
[vlayer] sections, modules and file loader entries are removed.

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
This commit is contained in:
BastiaanandCooldude2606 authored and GitHub committed 2026-09-26 22:46:08 +01:00
1 parent a2ce3ded81
commit 862fe49b60
14 files changed
+1310 -1484

No files matched your search

+33
View File
@@ -490,6 +490,39 @@ caption-create-footer=Create task
caption-edit-footer=Edit task
caption-view-footer=Task details
[exp-gui_vlayer]
tooltip-main=Virtual Layer
selection-name=vlayer
caption-stat-solar=[img=entity/solar-panel] Solar Panels
tooltip-stat-solar=Solar panels in use out of those stored
caption-stat-accumulator=[img=entity/accumulator] Accumulators
tooltip-stat-accumulator=Accumulators in use out of those stored
caption-stat-surface-area=[virtual-signal=signal-R] Remaining Surface
tooltip-stat-surface-area=Remaining surface area, insert landfill to increase it
caption-stat-sustained=[virtual-signal=signal-S] Sustained Production
tooltip-stat-sustained=Power production averaged over a day, out of what every stored solar panel could give
caption-stat-production=[virtual-signal=signal-P] Current Production
tooltip-stat-production=Power production right now, out of the production in full daylight
caption-stat-capacity=[virtual-signal=signal-E] Battery Charge
tooltip-stat-capacity=Stored energy out of the accumulator capacity
type-energy=Energy
type-circuit=Circuit
type-storage-input=Storage Input
type-storage-output=Storage Output
caption-refresh=Refresh List
caption-view=View Interface
caption-build=Build Interface
caption-remove=Remove Interface
message-located=The __1__ interface is at __2__
message-built=__1__ built a __2__ interface at __3__
message-removed=__1__ removed a __2__ interface at __3__
message-no-chest=No steel chest was selected
message-chest-not-empty=The steel chest is not empty
message-multiple=Cannot build a __1__ interface, more than one steel chest was selected
message-limit=Cannot build a __1__ interface, the limit has been reached
message-no-space=Cannot build an energy interface here, there is not enough space
message-research=You need to research [technology=__1__] to level __2__ to use the vlayer on a space platform
[exp-gui_warp-list]
caption-main=Warp List [img=info]
tooltip-main=Warp List
+33
View File
@@ -517,6 +517,39 @@ tooltip-goto-different-network=該傳送陣未連接, 你可使用電纜連接
tooltip-goto-cooldown=傳送冷卻中, 請等候冷卻
tooltip-goto-disabled=你不在傳送陣, 請移至任意傳送陣
[exp-gui_vlayer]
tooltip-main=Vlayer 介面
selection-name=vlayer
caption-stat-solar=[img=entity/solar-panel] 太陽能板
tooltip-stat-solar=使用中的太陽能板數量 / 儲存的太陽能板數量
caption-stat-accumulator=[img=entity/accumulator] 蓄電池
tooltip-stat-accumulator=使用中的蓄電池數量 / 儲存的蓄電池數量
caption-stat-surface-area=[virtual-signal=signal-R] 餘下土地
tooltip-stat-surface-area=餘下土地。 放入堆填來增加
caption-stat-sustained=[virtual-signal=signal-S] 持續產能
tooltip-stat-sustained=持續電力產能
caption-stat-production=[virtual-signal=signal-P] 現時產能
tooltip-stat-production=現時電力產能
caption-stat-capacity=[virtual-signal=signal-E] 電池電量
tooltip-stat-capacity=現時電池電量 / 電池最大容量
type-energy=電力
type-circuit=回路
type-storage-input=放入箱
type-storage-output=提取箱
caption-refresh=刷新列表
caption-view=查看介面
caption-build=建造介面
caption-remove=拆除介面
message-located=__1__ 介面在 __2__
message-built=__1__ 在 __3__ 建造了 __2__ 介面
message-removed=__1__ 在 __3__ 拆除了 __2__ 介面
message-no-chest=沒檢測到鋼箱
message-chest-not-empty=鋼箱不是空的
message-multiple=無法建造 __1__ 介面,檢測到多個鋼箱
message-limit=無法建造 __1__ 介面,超出最大限制
message-no-space=無法在此建造電力介面,空間不足
message-research=你要研究 [technology=__1__] 在 __2__ 級 才可使用太空平台 vlayer 功能。
[exp_afk-kick]
kick-message=因地圖中沒有活躍玩家,所以所有人都已被請離。
+33
View File
@@ -517,6 +517,39 @@ tooltip-goto-different-network=該傳送陣未連接, 你可使用電纜連接
tooltip-goto-cooldown=傳送冷卻中, 請等候冷卻
tooltip-goto-disabled=你不在傳送陣, 請移至任意傳送陣
[exp-gui_vlayer]
tooltip-main=Vlayer 介面
selection-name=vlayer
caption-stat-solar=[img=entity/solar-panel] 太陽能板
tooltip-stat-solar=使用中的太陽能板數量 / 儲存的太陽能板數量
caption-stat-accumulator=[img=entity/accumulator] 蓄電池
tooltip-stat-accumulator=使用中的蓄電池數量 / 儲存的蓄電池數量
caption-stat-surface-area=[virtual-signal=signal-R] 餘下土地
tooltip-stat-surface-area=餘下土地。 放入堆填來增加
caption-stat-sustained=[virtual-signal=signal-S] 持續產能
tooltip-stat-sustained=持續電力產能
caption-stat-production=[virtual-signal=signal-P] 現時產能
tooltip-stat-production=現時電力產能
caption-stat-capacity=[virtual-signal=signal-E] 電池電量
tooltip-stat-capacity=現時電池電量 / 電池最大容量
type-energy=電力
type-circuit=回路
type-storage-input=放入箱
type-storage-output=提取箱
caption-refresh=刷新列表
caption-view=查看介面
caption-build=建造介面
caption-remove=拆除介面
message-located=__1__ 介面在 __2__
message-built=__1__ 在 __3__ 建造了 __2__ 介面
message-removed=__1__ 在 __3__ 拆除了 __2__ 介面
message-no-chest=沒檢測到鋼箱
message-chest-not-empty=鋼箱不是空的
message-multiple=無法建造 __1__ 介面,檢測到多個鋼箱
message-limit=無法建造 __1__ 介面,超出最大限制
message-no-space=無法在此建造電力介面,空間不足
message-research=你要研究 [technology=__1__] 在 __2__ 級 才可使用太空平台 vlayer 功能。
[exp_afk-kick]
kick-message=因地圖中沒有活躍玩家,所以所有人都已被請離。