Commit Graph
45 Commits
Author SHA1 Message Date
bbassieandClaude Opus 4.8 4bd5394268 Align names and call patterns to best practice
Apply the conventions from the rocket info gui review to the player list,
and remove the now migrated legacy module.

- Move row building onto the table def as calculate_row_data, and refresh
  via refresh_player which computes the row data once per player
- Store the selection on the container with private/public accessor
  methods instead of poking element data directly
- Store the selected player as a LuaPlayer rather than a string and update
  the actions config to match
- Use :style{} on the player table and make the action and reason bars
  their own element definitions
- Delete the migrated legacy gui and its file loader entry

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 20:10:20 +00:00
bbassieandClaude Opus 4.8 b1c0f2535b Migrate player list gui to scenario
Move modules/gui/player-list into exp_scenario/gui/player_list using the
new exp_gui element API, matching the other scenario guis.

- Store the selected player and action on the container's player data
  instead of a datastore, folding the datastore on_update reactivity
  into explicit setter functions
- Switch the actions config to injected accessor functions and the
  exp-gui_player-list locale namespace
- Add the locale section, register in control.lua, and disable the
  legacy module in the file loader

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 12:07:03 +00:00
Cooldude2606andGitHub 73e53a656d Merge pull request #418 from Cooldude2606/gui/readme
Refactor readme gui
2026-05-19 22:21:34 +01:00
Cooldude2606 620161938f Refactor readme gui 2026-05-13 23:31:33 +01:00
1a561f9d1d extra_logging spaces and fix to player_died (#417)
* extra_logging spaces and fix to player_died

* Update extra_logging.lua

* Update extra_logging.lua

* Update extra_logging.lua

* Remove redundant checks

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2026-05-13 20:47:02 +01:00
6cbc4e5cfb fix inventory clear (#416)
* Update clear_items function to accept player name

* Update inventory_clear.lua

* Update exp_scenario/module/control/inventory_clear.lua

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2026-03-27 13:48:53 +00:00
Cooldude2606andGitHub 550cf09967 Refactor task list (#414) 2025-12-15 14:52:27 +00:00
Cooldude2606andGitHub 9bd699ebf1 Refactor legacy addons into Clusterio format (#413)
* Refactor custom start

* Refactor afk kick

* Fix use of assert get player

* Refactor chat popup

* Refactor chat auto reply

* Refactor help bubbles

* Refactor damage popups

* Refactor death markers

* Refactor deconstruction log

* Remove FAGC logging

* Refactor discord alerts

* Refactor insert pickup

* Refactor inventory clear

* Refactor extra logging

* Refactor nuke protection

* Refactor pollution grading

* Refactor protection jail

* Refactor report jail

* Refactor mine depletion

* Refactor degrading tiles

* Refactor station auto name

* Refactor spawn area

* Refactor fast deconstruction

* Bug Fixes
2025-12-02 18:34:24 +00:00
phidiasandGitHub a45f53bc48 GUI Research Milestone Hide Hidden (#412) 2025-12-02 18:33:38 +00:00
Cooldude2606 360247d292 Fix surface bonus application 2025-09-21 19:45:42 +01:00
Cooldude2606 478de7e42d Fix no player character during bonus reset 2025-09-16 21:08:12 +01:00
Cooldude2606andGitHub f1f4117e0f Fix blueprint revive and missing script raise event (#401)
Fixes: #397
2025-09-05 12:45:55 +01:00
Cooldude2606 06d98458d4 Fix module table row data not being cleared
Fixes: #411
2025-09-04 14:01:44 +01:00
Cooldude2606 5bd6183bb3 Fix desync of online_player_dropdown._player_names
Fixes: #410
2025-09-04 11:38:05 +01:00
Cooldude2606andGitHub 27a2feaae9 Refactor Selection Util (#409)
* Add Selection to ExpUtil

* Convert modules to use new lib

* Bug Fixes
2025-09-04 10:54:55 +01:00
Cooldude2606 85c7cce740 Fix uninitialised data in research milestones
Fixes: #407
2025-09-01 19:29:17 +01:00
Cooldude2606 688a6dda18 Fix uninitialised data in player bonus
Fixes: #406
2025-08-30 20:18:37 +01:00
Cooldude2606andGitHub 7ab721b4b6 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
2025-08-29 14:30:30 +01:00
Cooldude2606 c5b9138e4e Fix type names for Commands 2025-08-06 16:46:57 +01:00
phidiasandGitHub 8b1166a135 Fix wagons being put into automatic mode (#393) 2025-05-15 14:22:27 +01:00
phidiasandGitHub 5cc99d86d5 Update Tool GUI Locale (#394)
* Update tool.lua

* Update tool.lua

* Update zh-CN.cfg

* Update zh-TW.cfg
2025-05-15 14:21:57 +01:00
c984907aec Dual Mode for Waterfill Command (#391)
* Update waterfill.lua

* Update waterfill.lua

* Update waterfill.lua

* Clean up water fill logic

* Update waterfill.lua

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2025-04-26 23:35:25 +01:00
aee15341bd Update GUI Research Tracker (#390)
* Update research.lua

* Update research.lua

* Update research.lua

* Format config and move pollution ageing

* Update research.lua

* Update research.lua

* Update research.lua

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2025-04-26 23:34:35 +01:00
64b9d0db40 Add asserts to auto research queue (#385)
* Update research.lua

* Use asserts rather than ignore errors

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2025-04-16 20:29:35 +01:00
Cooldude2606andGitHub aedc3cff6b Fix lint errors on new luals version (#384) 2025-04-06 17:05:40 +01:00
Cooldude2606 7504043b05 Remove admin_only from get-roles 2025-03-07 14:37:23 +00:00
f84b0adee7 Fix role check in /kill (#375)
* Update kill.lua

* Update kill.lua

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2025-02-06 13:55:27 +00:00
phidiasandGitHub a041fe0a38 Allow Waterfill with Recipe (#364)
* Update waterfill.lua

* Update en.cfg

* Update zh-CN.cfg

* Update zh-TW.cfg

* Update zh-CN.cfg

* Update zh-TW.cfg

* Update waterfill.lua

* Update waterfill.lua

* Update waterfill.lua

* Update tool.lua

* Update waterfill.lua
2025-02-03 21:43:40 +00:00
phidiasandGitHub 7adf4a4477 Add Kill Effect (#366)
* Update kill.lua

* Update kill.lua

* Update kill.lua
2025-02-03 21:36:40 +00:00
phidiasandGitHub 44d025edd6 Fix "repair:6:3439203 'health': real number expected got inf." (#372) 2025-02-03 21:25:03 +00:00
phidiasandGitHub 420e3cdfca Fix non english locale issue (#368)
* Update cheat.lua

* Update zh-CN.cfg

* Update zh-TW.cfg
2025-02-02 22:43:16 +00:00
Cooldude2606 bd6781b3a0 Start converting GUI modules 2025-01-30 00:07:07 +00:00
phidiasandGitHub c1b24f664b Update waterfill locale (#360)
* Update en.cfg

* Update zh-CN.cfg

* Update zh-TW.cfg
2025-01-19 23:49:50 +00:00
Cooldude2606 1042897d0f Fix comparator for all role types 2025-01-03 23:32:34 +00:00
Cooldude2606 7f14fd359b Fix comparator for lower_role type 2025-01-03 18:10:01 +00:00
phidiasandGitHub 6c6a8e03ff Adjust Auto Research Queued Number (#345) 2025-01-02 20:28:58 +00:00
phidiasandGitHub e02e50a17b Remove rocket requirement for auto research (#342) 2024-12-30 19:36:45 +00:00
8c19d67450 Add Tool Gui (#20)
* Update _file_loader.lua

* Create tool.lua

* Update trains.lua

* Update research.lua

* Fix use of created_entity in events

* Update trains.lua

* Update tool.lua

* Update research.lua

* Update research.lua

* Update tool.lua

* Update research.lua

* Update trains.lua

* Fix waterfill locale

* Fix bug with selection tools and remote view

* Fix tool GUI

* Update tool.lua

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2024-12-28 17:29:51 +00:00
65cadc4040 Update Research Milestones (#17)
* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Fix use of created_entity in events

* Fix to use correct module pattern

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2024-12-24 16:17:07 +00:00
2e9744326e ZH Locale for Commands (#25)
* Create zh-CN.cfg

* Create zh-TW.cfg

* Fix use of created_entity in events

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2024-12-24 15:46:26 +00:00
phidiasandCooldude2606 4118acf91a Research (#2) 2024-11-19 22:37:52 +00:00
Cooldude2606 9aee1c425f Fix start, join, formatting, and locale issues 2024-11-19 22:37:49 +00:00
Cooldude2606 48f55b0547 Resolve all Luals warnings 2024-11-19 22:37:15 +00:00
Cooldude2606 4b6872c14c Migrate all commands to new lib 2024-11-19 22:36:52 +00:00
Cooldude2606 e78234898e Setup exp_scenario for commands 2024-11-19 22:35:44 +00:00