Fix Ignore Module / NPC highlighting
Edu removed the spacer character. Don't know if it was intentional or not, I will just add it here again.
This commit is contained in:
parent
1784bd9f26
commit
59594b4ac2
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue