Refactor some of the Guis from the legacy plugin (#399)

* Fix bugs in core and add default args to Gui defs

* Refactor production Gui

* Refactor landfill blueprint button

* Fix more bugs in core

* Consistent naming of new guis

* Refactor module inserter gui

* Refactor surveillance gui

* Add shorthand for data from arguments

* Make element names consistent

* Add types

* Change how table rows work

* Refactor player stats gui

* Refactor quick actions gui

* Refactor research milestones gui

* Refactor player bonus gui

* Refactor science production gui

* Refactor autofill gui

* Cleanup use of aligned flow

* Rename "Gui.element" to "Gui.define"

* Rename Gui types

* Rename property_from_arg

* Add guide for making guis

* Add full reference document

* Add condensed reference

* Apply style guide to refactored guis

* Bug fixes
This commit is contained in:
Cooldude2606
2025-08-29 14:30:30 +01:00
committed by GitHub
parent e2a7ab7b8b
commit 7ab721b4b6
72 changed files with 6736 additions and 4105 deletions

View File

@@ -54,18 +54,6 @@ progress-caption=__1__%
progress-tooltip=This silo has launched __1__ rockets
launch-failed=Failed to launch rocket, please wait a few seconds and try again.
[science-info]
main-caption=Science Packs
main-tooltip=Science Info
eta-caption=ETA:
eta-tooltip=The estimated time left for the current research
eta-time=T- __1__
unit=__1__ spm
pos-tooltip=Total made: __1__
neg-tooltip=Total used: __1__
net-tooltip=Total net: __1__
no-packs=You have not made any science packs yet
[task-list]
main-caption=Task List [img=info]
main-tooltip=Task List
@@ -88,17 +76,6 @@ create-footer-header=Create task
edit-footer-header=Edit task
view-footer-header=Task details
[autofill]
main-tooltip=Autofill settings
toggle-section-caption=__1__ __2__
toggle-section-tooltip=Expand Section
toggle-section-collapse-tooltip=Collapse Section
toggle-entity-tooltip=Toggle the autofill of __1__
toggle-tooltip=Toggle the autofill of __1__ into __2__ slots
amount-tooltip=Amount of items to insert into the __1__ slots
invalid=Autofill set to maximum amount: __1__ __2__ for __3__
inserted=Inserted __1__ __2__ into __3__
[warp-list]
main-caption=Warp List [img=info]
main-tooltip=Warp List
@@ -215,27 +192,6 @@ arg-amount=Amount to set your bonus to, 0 will disable bonus.
set=Your bonus has been set to __1__.
get=Your bonus is __1__.
perm=You dont have enough permission to set more than __1__.
main-tooltip=Bonus
control-pts-a=Points available
control-pts-n=Points needed
control-pts-r=Points remaining
control-reset=Reset
control-apply=Apply
control-pts-exceed=Points allocated exceeded allowance
display-cmms=Mining
display-cmms-tooltip=Character manual mining speed
display-crs=Running
display-crs-tooltip=Character running speed
display-ccs=Crafting
display-ccs-tooltip=Character crafting speed
display-cisb=Inventory
display-cisb-tooltip=Character inventory slots bonus
display-chb=Health
display-chb-tooltip=Character health bonus
display-crdb=Reach
display-crdb-tooltip=Character reach distance bonus
display-personal-battery-recharge=Battery
display-personal-battery-recharge-tooltip=Player battery recharge
display-fmms=Mining
display-fmms-tooltip=Force manual mining speed
display-frs=Running
@@ -297,51 +253,3 @@ 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.
enter=Entered vlayer selection mode.
exit=Exited vlayer selection mode.
[module]
main-tooltip=Module GUI
apply=Apply
[landfill]
main-tooltip=Blueprint Landfill GUI
cursor-none=You need to hold the blueprint in cursor
[production]
main-tooltip=Production GUI
label-prod=Production
label-con=Consumption
label-bal=Balance
tooltip-per-second=Items per second
[surveillance]
main-tooltip=Surveillance GUI
status-enable=Enable
status-disable=Disable
func-set=Set
type-player=Player
type-static=Static
type-player-loop=Player loop
[research]
msg=[color=255, 255, 255] Research completed at __1__ - [technology=__2__][/color]
inf=[color=255, 255, 255] Research completed at __1__ - [technology=__2__] - __3__[/color]
res-name=[technology=__1__] __2__
name=Name
target=Target
attempt=Attempt
difference=Diff
main-tooltip=Research GUI
[tool]
main-tooltip=Tool
apply=Apply
artillery=Artillery
artillery-tooltip=Artillery Target Remote
waterfill=Waterfill
waterfill-tooltip=Change tile to water
train=Train
train-tooltip=Set All Trains to Automatic
research=ARES
research-tooltip=Automatically queue up research
spawn=Teleport spawn
spawn-tooltip=Teleport to spawn

View File

@@ -54,18 +54,6 @@ progress-caption=__1__ %
progress-tooltip=該火箭發射井發射了 __1__ 次
launch-failed=火箭發射失敗, 請過一會再試。
[science-info]
main-caption=研究瓶
main-tooltip=研究資訊
eta-caption=預計時間:
eta-tooltip=餘下研究所需時間
eta-time=T- __1__
unit=__1__ 瓶每分鐘
pos-tooltip=製造: __1__
neg-tooltip=使用: __1__
net-tooltip=淨: __1__
no-packs=你未製造任何研究瓶
[task-list]
main-caption=工作流程 [img=info]
main-tooltip=工作流程
@@ -88,17 +76,6 @@ create-footer-header=加入工作流程
edit-footer-header=修改工作流程
view-footer-header=工作流程細節
[autofill]
main-tooltip=自動填入設定
toggle-section-caption=__1__ __2__
toggle-section-tooltip=擴張欄
toggle-section-collapse-tooltip=收縮欄
toggle-entity-tooltip=自動填入設定 - __1__
toggle-tooltip=自動填入設定 - __2__ 的 __1__
amount-tooltip=自動填入 __1__ 的數量
invalid=自動填入最大值 __1__ __2__ 給 __3__
inserted=自動填入 __1__ __2__ 到 __3__
[warp-list]
main-caption=傳送陣清單 [img=info]
main-tooltip=傳送陣清單
@@ -215,27 +192,6 @@ arg-amount=Bonus 數量, 0 來停用。
set=你的 Bonus 已設為 __1__。
get=你的 Bonus 為 __1__。
perm=你沒有足夠權限設多過 __1__。
main-tooltip=Bonus 介面
control-pts-a=可用分數
control-pts-n=必要分數
control-pts-r=餘下分數
control-reset=重置
control-apply=應用
control-pts-exceed=分數超出可用上限
display-cmms=挖掘速度
display-cmms-tooltip=個人挖掘速度
display-crs=跑步速度
display-crs-tooltip=個人跑步速度
display-ccs=合成速度
display-ccs-tooltip=個人合成速度
display-cisb=儲存位
display-cisb-tooltip=個人儲存位
display-chb=生命
display-chb-tooltip=個人生命
display-crdb=到達距離
display-crdb-tooltip=個人到達距離
display-personal-battery-recharge=電池充電
display-personal-battery-recharge-tooltip=為玩家電池充電
display-fmms=挖掘速度
display-fmms-tooltip=勢力挖掘速度
display-frs=跑步速度
@@ -298,30 +254,6 @@ power-on-space-research=你要研究 [technology=__1__] 在 __2__ 級 才可使
enter=現在進入 vlayer 區域選擇
exit=已進入 vlayer 區域選擇
[module]
main-tooltip=模組介面
apply=套用
[landfill]
main-tooltip=藍圖填海介面
cursor-none=您需要將藍圖保持在遊標處
[production]
main-tooltip=製造介面
label-prod=製造
label-con=消耗
label-bal=淨值
tooltip-per-second=物品每秒
[surveillance]
main-tooltip=監控介面
status-enable=啟用
status-disable=停用
func-set=
type-player=用戶
type-static=靜態
type-player-loop=用戶循環
[toolbar]
main-caption=工具箱
main-tooltip=工具箱設定\n選上來設定喜好
@@ -329,28 +261,3 @@ reset=重設
toggle=啟用喜好
move-up=向上
move-down=向下
[research]
msg=[color=255, 255, 255] 研究完成在 __1__ - [technology=__2__][/color]
inf=[color=255, 255, 255] 研究完成在 __1__ - [technology=__2__] - __3__[/color]
res-name=[technology=__1__] __2__
name=名稱
target=目標
attempt=用時
difference=差距
main-tooltip=研究介面
[tool]
main-tooltip=工具
apply=應用
artillery=火炮遙控
artillery-tooltip=火炮遙控
waterfill=挖水
waterfill-tooltip=把地換為水。
train=火車
train-tooltip=把火車設置為自動模式
research=研究
research-tooltip=啟用自動研究
spawn=傳送出生
spawn-tooltip=傳送到出生點

View File

@@ -54,18 +54,6 @@ progress-caption=__1__ %
progress-tooltip=該火箭發射井發射了 __1__ 次
launch-failed=火箭發射失敗, 請過一會再試。
[science-info]
main-caption=研究瓶
main-tooltip=研究資訊
eta-caption=預計時間:
eta-tooltip=餘下研究所需時間
eta-time=T- __1__
unit=__1__ 瓶每分鐘
pos-tooltip=製造: __1__
neg-tooltip=使用: __1__
net-tooltip=淨: __1__
no-packs=你未製造任何研究瓶
[task-list]
main-caption=工作流程 [img=info]
main-tooltip=工作流程
@@ -88,17 +76,6 @@ create-footer-header=加入工作流程
edit-footer-header=修改工作流程
view-footer-header=工作流程細節
[autofill]
main-tooltip=自動填入設定
toggle-section-caption=__1__ __2__
toggle-section-tooltip=擴張欄
toggle-section-collapse-tooltip=收縮欄
toggle-entity-tooltip=自動填入設定 - __1__
toggle-tooltip=自動填入設定 - __2__ 的 __1__
amount-tooltip=自動填入 __1__ 的數量
invalid=自動填入最大值 __1__ __2__ 給 __3__
inserted=自動填入 __1__ __2__ 到 __3__
[warp-list]
main-caption=傳送陣清單 [img=info]
main-tooltip=傳送陣清單
@@ -215,27 +192,6 @@ arg-amount=Bonus 數量, 0 來停用。
set=你的 Bonus 已設為 __1__。
get=你的 Bonus 為 __1__。
perm=你沒有足夠權限設多過 __1__。
main-tooltip=Bonus 介面
control-pts-a=可用分數
control-pts-n=必要分數
control-pts-r=餘下分數
control-reset=重置
control-apply=應用
control-pts-exceed=分數超出可用上限
display-cmms=挖掘速度
display-cmms-tooltip=個人挖掘速度
display-crs=跑步速度
display-crs-tooltip=個人跑步速度
display-ccs=合成速度
display-ccs-tooltip=個人合成速度
display-cisb=儲存位
display-cisb-tooltip=個人儲存位
display-chb=生命
display-chb-tooltip=個人生命
display-crdb=到達距離
display-crdb-tooltip=個人到達距離
display-personal-battery-recharge=電池充電
display-personal-battery-recharge-tooltip=為玩家電池充電
display-fmms=挖掘速度
display-fmms-tooltip=勢力挖掘速度
display-frs=跑步速度
@@ -298,30 +254,6 @@ power-on-space-research=你要研究 [technology=__1__] 在 __2__ 級 才可使
enter=現在進入 vlayer 區域選擇
exit=已進入 vlayer 區域選擇
[module]
main-tooltip=模組介面
apply=套用
[landfill]
main-tooltip=藍圖填海介面
cursor-none=您需要將藍圖保持在遊標處
[production]
main-tooltip=製造介面
label-prod=製造
label-con=消耗
label-bal=淨值
tooltip-per-second=物品每秒
[surveillance]
main-tooltip=監控介面
status-enable=啟用
status-disable=停用
func-set=
type-player=用戶
type-static=靜態
type-player-loop=用戶循環
[toolbar]
main-caption=工具箱
main-tooltip=工具箱設定\n選上來設定喜好
@@ -329,27 +261,3 @@ reset=重設
toggle=啟用喜好
move-up=向上
move-down=向下
[research]
msg=[color=255, 255, 255] 研究完成在 __1__ - [technology=__2__][/color]
inf=[color=255, 255, 255] 研究完成在 __1__ - [technology=__2__] - __3__[/color]
res-name=[technology=__1__] __2__
name=名稱
target=目標
attempt=用時
difference=差距
main-tooltip=研究介面
[tool]
main-tooltip=工具
apply=應用
artillery=火炮遙控
artillery-tooltip=火炮遙控
waterfill=挖水
waterfill-tooltip=把地換為水。
train=火車
train-tooltip=把火車設置為自動模式
research=研究
research-tooltip=啟用自動研究
spawn=傳送出生
spawn-tooltip=傳送到出生點