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:
Samuel 2013-01-09 23:54:57 +01:00
parent 1784bd9f26
commit 59594b4ac2
2 changed files with 3 additions and 2 deletions

View File

@ -781,8 +781,6 @@ function onClickIgnoreButton()
ignoreWindow = g_ui.displayUI('ignorewindow.otui') ignoreWindow = g_ui.displayUI('ignorewindow.otui')
local ignoreListPanel = ignoreWindow:getChildById('ignoreList') local ignoreListPanel = ignoreWindow:getChildById('ignoreList')
ignoreWindow.onDestroy = function() ignoreWindow = nil end 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') local removeButton = ignoreWindow:getChildById('buttonRemove')
removeButton:disable() removeButton:disable()

View File

@ -52,6 +52,9 @@ void BitmapFont::load(const OTMLNodePtr& fontNode)
m_glyphsSize[32].setWidth(spaceWidth); m_glyphsSize[32].setWidth(spaceWidth);
m_glyphsSize[160].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 // new line actually has a size that will be useful in multiline algorithm
m_glyphsSize[(uchar)'\n'] = Size(1, m_glyphHeight); m_glyphsSize[(uchar)'\n'] = Size(1, m_glyphHeight);