Repostion command list gui text
This commit is contained in:
parent
c1e05b5425
commit
293ca07904
2 changed files with 1 additions and 5 deletions
|
@ -80,8 +80,6 @@ end
|
||||||
dmf:hook("ConstantElementChat", "_handle_active_chat_input", function(func, self, input_service, ui_renderer, ...)
|
dmf:hook("ConstantElementChat", "_handle_active_chat_input", function(func, self, input_service, ui_renderer, ...)
|
||||||
initialize_drawing_function()
|
initialize_drawing_function()
|
||||||
|
|
||||||
local command_executed = false
|
|
||||||
|
|
||||||
_chat_message = get_chat_message(self)
|
_chat_message = get_chat_message(self)
|
||||||
_chat_opened = true
|
_chat_opened = true
|
||||||
|
|
||||||
|
@ -128,8 +126,6 @@ dmf:hook("ConstantElementChat", "_handle_active_chat_input", function(func, self
|
||||||
|
|
||||||
set_chat_message(self, "")
|
set_chat_message(self, "")
|
||||||
|
|
||||||
command_executed = true
|
|
||||||
|
|
||||||
elseif string.sub(_chat_message, 1, 1) == "/" then
|
elseif string.sub(_chat_message, 1, 1) == "/" then
|
||||||
dmf:notify(dmf:localize("chat_command_not_recognized") .. ": " .. _chat_message)
|
dmf:notify(dmf:localize("chat_command_not_recognized") .. ": " .. _chat_message)
|
||||||
set_chat_message(self, "")
|
set_chat_message(self, "")
|
||||||
|
|
|
@ -10,7 +10,7 @@ local FONT_SIZE = 22
|
||||||
local MAX_COMMANDS_VISIBLE = 5
|
local MAX_COMMANDS_VISIBLE = 5
|
||||||
|
|
||||||
local STRING_HEIGHT = 25
|
local STRING_HEIGHT = 25
|
||||||
local STRING_Y_OFFSET = 7
|
local STRING_Y_OFFSET = 2
|
||||||
local STRING_X_MARGIN = 10
|
local STRING_X_MARGIN = 10
|
||||||
|
|
||||||
local OFFSET_X = 10
|
local OFFSET_X = 10
|
||||||
|
|
Loading…
Add table
Reference in a new issue