From 293ca07904e1ea3ca81fb9a2069e7fc67caf77fa Mon Sep 17 00:00:00 2001 From: Aussiemon Date: Sun, 19 Mar 2023 01:42:46 -0600 Subject: [PATCH] Repostion command list gui text --- dmf/scripts/mods/dmf/modules/ui/chat/chat_actions.lua | 4 ---- dmf/scripts/mods/dmf/modules/ui/chat/commands_list_gui.lua | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dmf/scripts/mods/dmf/modules/ui/chat/chat_actions.lua b/dmf/scripts/mods/dmf/modules/ui/chat/chat_actions.lua index eaa7fbc..1778c19 100644 --- a/dmf/scripts/mods/dmf/modules/ui/chat/chat_actions.lua +++ b/dmf/scripts/mods/dmf/modules/ui/chat/chat_actions.lua @@ -80,8 +80,6 @@ end dmf:hook("ConstantElementChat", "_handle_active_chat_input", function(func, self, input_service, ui_renderer, ...) initialize_drawing_function() - local command_executed = false - _chat_message = get_chat_message(self) _chat_opened = true @@ -128,8 +126,6 @@ dmf:hook("ConstantElementChat", "_handle_active_chat_input", function(func, self set_chat_message(self, "") - command_executed = true - elseif string.sub(_chat_message, 1, 1) == "/" then dmf:notify(dmf:localize("chat_command_not_recognized") .. ": " .. _chat_message) set_chat_message(self, "") diff --git a/dmf/scripts/mods/dmf/modules/ui/chat/commands_list_gui.lua b/dmf/scripts/mods/dmf/modules/ui/chat/commands_list_gui.lua index 997ce6c..a06f987 100644 --- a/dmf/scripts/mods/dmf/modules/ui/chat/commands_list_gui.lua +++ b/dmf/scripts/mods/dmf/modules/ui/chat/commands_list_gui.lua @@ -10,7 +10,7 @@ local FONT_SIZE = 22 local MAX_COMMANDS_VISIBLE = 5 local STRING_HEIGHT = 25 -local STRING_Y_OFFSET = 7 +local STRING_Y_OFFSET = 2 local STRING_X_MARGIN = 10 local OFFSET_X = 10