mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 07:33:12 +09:00
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:
1 parent
a2ce3ded81
commit
862fe49b60
14 files changed
+1310
-1484
No files matched your search
@@ -184,42 +184,3 @@ display-fwrsb=Robot Storage
|
||||
display-fwrsb-tooltip=Force worker robots storage bonus
|
||||
display-ffrlm=Robot Lifetime
|
||||
display-ffrlm-tooltip=Force following robots lifetime modifier
|
||||
|
||||
[vlayer]
|
||||
main-tooltip=vlayer
|
||||
description-pbr=Recharge Player Battery upto a portion with vlayer
|
||||
description-vi=Vlayer Info
|
||||
pbr-not-running=vlayer need to be running
|
||||
display-item-solar=[img=entity/solar-panel] Solar Panel
|
||||
display-item-accumulator=[img=entity/accumulator] Accumulator
|
||||
display-current-production=[virtual-signal=signal-P] Current Production
|
||||
display-sustained-production=[virtual-signal=signal-S] Sustained Production
|
||||
display-max-capacity=[virtual-signal=signal-C] Battery Capacity
|
||||
display-current-capacity=[virtual-signal=signal-E] Battery Charge
|
||||
display-remaining-surface-area=[virtual-signal=signal-R] Remaining Surface
|
||||
display-item-solar-tooltip=The amount of Solar Panel
|
||||
display-item-accumulator-tooltip=The amount of Accumulator
|
||||
display-current-production-tooltip=Current Power Production
|
||||
display-sustained-production-tooltip=Sustained Power Production
|
||||
display-max-capacity-tooltip=Battery Max Capacity
|
||||
display-current-capacity-tooltip=Battery Current Charge
|
||||
display-remaining-surface-area-tooltip=Remaining Surface. Insert Landfill to increase
|
||||
steel-chest-detect=No steel chest detected
|
||||
steel-chest-empty=Chest is not emptied
|
||||
control-refresh=Refresh List
|
||||
control-see=See Interface
|
||||
control-build=Build Interface
|
||||
control-remove=Remove Interface
|
||||
result-build=built
|
||||
result-remove=removed
|
||||
result-interface-location=__1__ interface was located at __2__
|
||||
interface-result=__1__ __2__ __4__ interface at __3__
|
||||
result-unable=Unable to build __1__ interface, because of __2__
|
||||
result-multiple=Multiple steel chest detected
|
||||
result-limit=Max limit exceeded
|
||||
result-space=Not enough space
|
||||
control-type-energy=Energy
|
||||
control-type-circuit=Circuit
|
||||
control-type-storage-input=Storage Input
|
||||
control-type-storage-output=Storage Output
|
||||
power-on-space-research=You need to research [technology=__1__] at __2__ level for the space platform vlayer feature.
|
||||
@@ -185,45 +185,6 @@ display-fwrsb-tooltip=勢力機械人儲存
|
||||
display-ffrlm=機械人生命
|
||||
display-ffrlm-tooltip=勢力戰鬥機械人生命時間
|
||||
|
||||
[vlayer]
|
||||
main-tooltip=vlayer
|
||||
description-pbr=使用 Vlayer 為玩家電池充電
|
||||
description-vi=Vlayer 資訊
|
||||
pbr-not-running=vlayer 沒有運行
|
||||
display-item-solar=[img=entity/solar-panel] 太陽能板
|
||||
display-item-accumulator=[img=entity/accumulator] 蓄電池
|
||||
display-current-production=[virtual-signal=signal-P] 現時產能
|
||||
display-sustained-production=[virtual-signal=signal-S] 持續產能
|
||||
display-max-capacity=[virtual-signal=signal-C] 電池容量
|
||||
display-current-capacity=[virtual-signal=signal-E] 電池電量
|
||||
display-remaining-surface-area=[virtual-signal=signal-R] 餘下土地
|
||||
display-item-solar-tooltip=太陽能板數量
|
||||
display-item-accumulator-tooltip=蓄電池數量
|
||||
display-current-production-tooltip=現時電力產能
|
||||
display-sustained-production-tooltip=持續電力產能
|
||||
display-max-capacity-tooltip=電池最大容量
|
||||
display-current-capacity-tooltip=現時電池電量
|
||||
display-remaining-surface-area-tooltip=餘下土地。 放入堆填來增加
|
||||
steel-chest-detect=沒檢測到鋼箱
|
||||
steel-chest-empty=鋼箱不是空的
|
||||
control-refresh=刷新列表
|
||||
control-see=查看介面
|
||||
control-build=建造介面
|
||||
control-remove=拆除介面
|
||||
result-build=建造了
|
||||
result-remove=拆除了
|
||||
result-interface-location=__1__ 介面在 __2__
|
||||
interface-result=__1__ 在 __2__ __3__ __4__ 介面
|
||||
result-unable=無法建造 __1__ 介面,因 __2__
|
||||
result-multiple=檢測到多個鋼箱
|
||||
result-limit=超出最大限制
|
||||
result-space=空間不足
|
||||
control-type-energy=電力
|
||||
control-type-circuit=回路
|
||||
control-type-storage-input=放入箱
|
||||
control-type-storage-output=提取箱
|
||||
power-on-space-research=你要研究 [technology=__1__] 在 __2__ 級 才可使用太空平台 vlayer 功能。
|
||||
|
||||
[toolbar]
|
||||
main-caption=工具箱
|
||||
main-tooltip=工具箱設定\n選上來設定喜好
|
||||
|
||||
@@ -185,45 +185,6 @@ display-fwrsb-tooltip=勢力機械人儲存
|
||||
display-ffrlm=機械人生命
|
||||
display-ffrlm-tooltip=勢力戰鬥機械人生命時間
|
||||
|
||||
[vlayer]
|
||||
main-tooltip=vlayer
|
||||
description-pbr=使用 Vlayer 為玩家電池充電
|
||||
description-vi=Vlayer 資訊
|
||||
pbr-not-running=vlayer 沒有運行
|
||||
display-item-solar=[img=entity/solar-panel] 太陽能板
|
||||
display-item-accumulator=[img=entity/accumulator] 蓄電池
|
||||
display-current-production=[virtual-signal=signal-P] 現時產能
|
||||
display-sustained-production=[virtual-signal=signal-S] 持續產能
|
||||
display-max-capacity=[virtual-signal=signal-C] 電池容量
|
||||
display-current-capacity=[virtual-signal=signal-E] 電池電量
|
||||
display-remaining-surface-area=[virtual-signal=signal-R] 餘下土地
|
||||
display-item-solar-tooltip=太陽能板數量
|
||||
display-item-accumulator-tooltip=蓄電池數量
|
||||
display-current-production-tooltip=現時電力產能
|
||||
display-sustained-production-tooltip=持續電力產能
|
||||
display-max-capacity-tooltip=電池最大容量
|
||||
display-current-capacity-tooltip=現時電池電量
|
||||
display-remaining-surface-area-tooltip=餘下土地。 放入堆填來增加
|
||||
steel-chest-detect=沒檢測到鋼箱
|
||||
steel-chest-empty=鋼箱不是空的
|
||||
control-refresh=刷新列表
|
||||
control-see=查看介面
|
||||
control-build=建造介面
|
||||
control-remove=拆除介面
|
||||
result-build=建造了
|
||||
result-remove=拆除了
|
||||
result-interface-location=__1__ 介面在 __2__
|
||||
interface-result=__1__ 在 __2__ __3__ __4__ 介面
|
||||
result-unable=無法建造 __1__ 介面,因 __2__
|
||||
result-multiple=檢測到多個鋼箱
|
||||
result-limit=超出最大限制
|
||||
result-space=空間不足
|
||||
control-type-energy=電力
|
||||
control-type-circuit=回路
|
||||
control-type-storage-input=放入箱
|
||||
control-type-storage-output=提取箱
|
||||
power-on-space-research=你要研究 [technology=__1__] 在 __2__ 級 才可使用太空平台 vlayer 功能。
|
||||
|
||||
[toolbar]
|
||||
main-caption=工具箱
|
||||
main-tooltip=工具箱設定\n選上來設定喜好
|
||||
|
||||
Reference in new issue
Block a user