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

@@ -281,3 +281,97 @@ area-too-large=Selected area is too large, must be less than __1__ tiles, select
too-few-explosives=Requires __1__ __ITEM__cliff-explosives__ or its ingredients, you have __2__.
part-complete=__1__ tiles were filled with water, but entities are blocking __2__ tiles.
complete=__1__ tiles were filled with water.
[exp-gui_autofill]
tooltip-main=Autofill
caption-main=Autofill
caption-section-header=__1__ __2__
tooltip-toggle-section=Toggle section
tooltip-toggle-section-expand=Expand section
tooltip-toggle-section-collapse=Collapse section
tooltip-toggle-entity=Toggle the autofill of __1__
tooltip-toggle-item=Toggle the autofill of __1__ into __2__ slots
tooltip-amount=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__
[exp-gui_landfill-blueprint]
tooltip-main=Landfill Blueprint
error-no-blueprint=You need to hold the blueprint in cursor
[exp-gui_module-inserter]
tooltip-main=Module Inserter
caption-main=Modules
tooltip-apply=Apply
[exp-gui_player-bonus]
tooltip-main=Player Bonus
caption-main=Bonus
tooltip-reset=Reset sliders
tooltip-apply=Apply bonus
caption-character_mining_speed_modifier=Mining
tooltip-character_mining_speed_modifier=Character manual mining speed
caption-character_running_speed_modifier=Running
tooltip-character_running_speed_modifier=Character running speed
caption-character_crafting_speed_modifier=Crafting
tooltip-character_crafting_speed_modifier=Character crafting speed
caption-character_inventory_slots_bonus=Inventory
tooltip-character_inventory_slots_bonus=Character inventory slots bonus
caption-character_health_bonus=Health
tooltip-character_health_bonus=Character health bonus
caption-character_reach_distance_bonus=Reach
tooltip-character_reach_distance_bonus=Character reach distance bonus
caption-personal_battery_recharge=Battery
tooltip-personal_battery_recharge=Armor battery recharge
[exp-gui_player-stats]
tooltip-main=Player Stats
caption-main=Player Stats
[exp-gui_production-stats]
tooltip-main=Production Stats
tooltip-per-second=Items per second
caption-net=Net
[exp-gui_quick-actions]
tooltip-main=Quick Actions
caption-artillery=Artillery
tooltip-artillery=Select artillery targets
caption-research=Auto Research
tooltip-research=Toggle auto research queue
caption-spawn=Teleport Spawn
tooltip-spawn-tooltip=Teleport to spawn
caption-trains=Set Auto Train
tooltip-trains=Set all trains to automatic
caption-waterfill=Waterfill
tooltip-waterfill=Change tiles to water
[exp-gui_research-milestones]
tooltip-main=Research Milestones
caption-main=Milestones
caption-name=Name
caption-target=Target
caption-achieved=Achieved
caption-difference=Difference
caption-research-name=[technology=__1__] __2__
notice-inf=[color=255, 255, 255] Research completed at __1__ - [technology=__2__] - __3__[/color]
notice=[color=255, 255, 255] Research completed at __1__ - [technology=__2__][/color]
[exp-gui_science-production]
tooltip-main=Science Production
caption-main=Science
caption-spm=__1__ spm
caption-eta=ETA:
caption-eta-time=T- __1__
tooltip-eta=The estimated time left for the current research
caption-no-production=You have not made any science packs yet
tooltip-made=Total made: __1__
tooltip-used=Total used: __1__
tooltip-net=Total net: __1__
[exp-gui_surveillance]
tooltip-main=Surveillance
caption-set-location=Set
type-player=Player
type-static=Static
type-loop=Loop