mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-07-26 10:36:22 +09:00
* 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> * 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> * Address player list review feedback - Rename the player table element data class to element_data - Remove the redundant offline selection clear; on_player_left_game already clears any selection pointing at a player who disconnects - Move the action bar and reason bar visibility into their own refresh methods so refresh_player just delegates to them Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Style and locale fixes --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
32 lines
1.0 KiB
Lua
32 lines
1.0 KiB
Lua
--- This contains a list of all files that will be loaded and the order they are loaded in;
|
|
-- to stop a file from loading add "--" in front of it, remove the "--" to have the file be loaded;
|
|
-- config files should be loaded after all modules are loaded;
|
|
-- core files should be required by modules and not be present in this list;
|
|
-- @config File-Loader
|
|
return {
|
|
"expcore.player_data", -- must be loaded first to register event handlers
|
|
|
|
-- Control
|
|
"modules.control.vlayer",
|
|
|
|
--- Data
|
|
"modules.data.statistics",
|
|
"modules.data.player-colours",
|
|
"modules.data.greetings",
|
|
"modules.data.quickbar",
|
|
"modules.data.alt-view",
|
|
"modules.data.tag",
|
|
"modules.data.language",
|
|
--"modules.data.toolbar",
|
|
|
|
--- GUI
|
|
"modules.gui.warp-list",
|
|
"modules.gui.vlayer",
|
|
"modules.gui._role_updates",
|
|
|
|
"modules.graftorio.require", -- graftorio
|
|
--- Config Files
|
|
"config.expcore.permission_groups", -- loads some predefined permission groups
|
|
"config.expcore.roles", -- loads some predefined roles
|
|
}
|