From 31c18c7851ff52b05a05918250a8446b27c56189 Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Fri, 26 Jun 2026 12:41:49 +0100 Subject: [PATCH] Style and locale fixes --- exp_legacy/module/config/gui/player_list_actions.lua | 4 ++-- exp_scenario/module/commands/clear_inventory.lua | 2 +- exp_scenario/module/gui/player_list.lua | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/exp_legacy/module/config/gui/player_list_actions.lua b/exp_legacy/module/config/gui/player_list_actions.lua index 15b03f33..f692b47f 100644 --- a/exp_legacy/module/config/gui/player_list_actions.lua +++ b/exp_legacy/module/config/gui/player_list_actions.lua @@ -67,7 +67,7 @@ local goto_player = new_button("utility/export", { "exp-gui_player-list.goto-pla :on_click(function(def, player, element) local selected_player = get_action_player(player) if not player.character or not selected_player.character then - player.print({ "expcore-commands.reject-player-alive" }, Colors.orange_red) + player.print({ "exp-commands-parse.player-alive" }, Colors.orange_red) else teleport(player, selected_player) end @@ -79,7 +79,7 @@ local bring_player = new_button("utility/import", { "exp-gui_player-list.bring-p :on_click(function(def, player, element) local selected_player = get_action_player(player) if not player.character or not selected_player.character then - player.print({ "expcore-commands.reject-player-alive" }, Colors.orange_red) + player.print({ "exp-commands-parse.player-alive" }, Colors.orange_red) else teleport(selected_player, player) end diff --git a/exp_scenario/module/commands/clear_inventory.lua b/exp_scenario/module/commands/clear_inventory.lua index 9a37fc84..ed17db7a 100644 --- a/exp_scenario/module/commands/clear_inventory.lua +++ b/exp_scenario/module/commands/clear_inventory.lua @@ -14,7 +14,7 @@ Commands.new("clear-inventory", { "exp-commands_clear-inventory.description" }) :register(function(player, other_player) local inventory = other_player.get_main_inventory() if not inventory then - return Commands.status.error{ "expcore-commands.reject-player-alive" } + return Commands.status.error{ "exp-commands-parse.player-alive" } end transfer_inventory{ diff --git a/exp_scenario/module/gui/player_list.lua b/exp_scenario/module/gui/player_list.lua index 52509ebc..3b5379b3 100644 --- a/exp_scenario/module/gui/player_list.lua +++ b/exp_scenario/module/gui/player_list.lua @@ -71,12 +71,12 @@ Elements.close_action_bar = Gui.define("player_list/close_action_bar") tooltip = { "exp-gui_player-list.close-action-bar" }, style = "slot_sized_button_red", } - :style(Gui.styles.sprite{ - size = 20, + :style{ + size = 30, padding = -1, top_margin = -1, right_margin = -1, - }) + } :on_click(function(_, player) Elements.container.set_selected_player(player, nil) Elements.player_table.refresh_player(player) @@ -92,12 +92,12 @@ Elements.reason_confirm = Gui.define("player_list/reason_confirm") tooltip = { "exp-gui_player-list.reason-confirm" }, style = "slot_sized_button_green", } - :style(Gui.styles.sprite{ + :style{ size = 30, padding = -1, left_margin = -2, right_margin = -1, - }) + } :on_click(function(_, player, element) local action_name = Elements.container.get_selected_action(player) local button_data = action_name and config.buttons[action_name] @@ -382,7 +382,7 @@ Elements.reason_bar = Gui.define("player_list/reason_bar") local entry_style = reason_field.style entry_style.padding = 0 entry_style.height = 28 - entry_style.minimal_width = 160 + entry_style.minimal_width = 158 Elements.reason_confirm(reason_bar) return reason_bar