fix label disabled colors

This commit is contained in:
Eduardo Bart
2012-01-02 23:52:26 -02:00
parent 8ad16fec18
commit f750920a36
7 changed files with 26 additions and 37 deletions

View File

@@ -118,15 +118,6 @@ local function update()
end
-- public functions
function Outfit.test()
local button = createWidget('Button', rootWidget)
button:setText('Set Outfit')
button:moveTo({x = 0, y = 100})
button:setWidth('100')
button:setHeight('30')
button.onClick = function() Game.openOutfitWindow() end
end
function Outfit.create(creature, outfitList)
Outfit.destroy()
window = displayUI('outfit.otui', { parent = rootWidget })
@@ -207,8 +198,5 @@ function Outfit.previousType()
end
-- hooked events
connect(Game, { onOpenOutfitWindow = Outfit.create,
onLogout = Outfit.destroy })
connect(Game, { onLogin = Outfit.test })