Revert "Spell List: Small tweaks"

This reverts commit 261dd40b96.
This commit is contained in:
Samuel
2012-10-07 04:12:49 +02:00
parent 261dd40b96
commit a83be17bfe
2 changed files with 8 additions and 14 deletions

View File

@@ -136,8 +136,7 @@ function init()
g_keyboard.bindKeyPress('Down', function() spellList:focusNextChild(KeyboardFocusReason) end, spelllistWindow)
g_keyboard.bindKeyPress('Up', function() spellList:focusPreviousChild(KeyboardFocusReason) end, spelllistWindow)
for i = 1, #spellDisplayOrder do
local spell = spellDisplayOrder[i]
for index, spell in ipairs(spellDisplayOrder) do
local info = SpellInfo[spell]
local tmpLabel = g_ui.createWidget('SpellListLabel', spellList)
tmpLabel:setId(spell)
@@ -165,11 +164,6 @@ function terminate()
disconnect(g_game, { onGameStart = setupOptions,
onGameEnd = resetWindow })
disconnect(spellList, { onChildFocusChange = function(self, focusedChild)
if focusedChild == nil then return end
updateSpellInformation(focusedChild)
end })
spelllistButton:destroy()
spelllistButton = nil
spelllistWindow:destroy()