diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index 150a153e..147c386e 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -781,8 +781,6 @@ function onClickIgnoreButton() ignoreWindow = g_ui.displayUI('ignorewindow.otui') local ignoreListPanel = ignoreWindow:getChildById('ignoreList') ignoreWindow.onDestroy = function() ignoreWindow = nil end - g_keyboard.bindKeyPress('Down', function() ignoreListPanel:focusNextChild(KeyboardFocusReason) end, channelsWindow) - g_keyboard.bindKeyPress('Up', function() ignoreListPanel:focusPreviousChild(KeyboardFocusReason) end, channelsWindow) local removeButton = ignoreWindow:getChildById('buttonRemove') removeButton:disable() diff --git a/src/framework/graphics/bitmapfont.cpp b/src/framework/graphics/bitmapfont.cpp index f47c60e7..a75ce6ed 100644 --- a/src/framework/graphics/bitmapfont.cpp +++ b/src/framework/graphics/bitmapfont.cpp @@ -52,6 +52,9 @@ void BitmapFont::load(const OTMLNodePtr& fontNode) m_glyphsSize[32].setWidth(spaceWidth); m_glyphsSize[160].setWidth(spaceWidth); + // use 127 as spacer [Width: 1], Important for the current NPC highlighting system + m_glyphsSize[127].setWidth(1); + // new line actually has a size that will be useful in multiline algorithm m_glyphsSize[(uchar)'\n'] = Size(1, m_glyphHeight);