modules changes

* speedup widget destruction checks
* rework outfit module using grid layout and the new design
* fixes in console, terminal, textmessage modules
This commit is contained in:
Eduardo Bart
2012-03-22 18:47:52 -03:00
parent 159eb98df2
commit 33458a3e39
41 changed files with 335 additions and 234 deletions

View File

@@ -50,7 +50,7 @@ end
function CombatControls.init()
combatControlsButton = TopMenu.addGameButton('combatControlsButton', 'Combat Controls', 'combatcontrols.png', CombatControls.toggle)
combatControlsButton:setOn(true)
combatControlsWindow = loadUI('combatcontrols.otui')
combatControlsWindow = loadUI('combatcontrols.otui', GameInterface.getRightPanel())
fightOffensiveBox = combatControlsWindow:getChildById('fightOffensiveBox')
fightBalancedBox = combatControlsWindow:getChildById('fightBalancedBox')
@@ -101,7 +101,6 @@ function CombatControls.terminate()
end
function CombatControls.online()
g_game.gameRightPanel:addChild(combatControlsWindow)
combatControlsWindow:setVisible(combatControlsButton:isOn())
local fightMode = g_game.getFightMode()
@@ -121,7 +120,6 @@ function CombatControls.online()
end
function CombatControls.offline()
g_game.gameRightPanel:removeChild(combatControlsWindow)
end
function CombatControls.toggle()

View File

@@ -4,9 +4,9 @@ Module
author: OTClient team
website: https://github.com/edubart/otclient
onLoad: |
@onLoad: |
dofile 'combatcontrols'
CombatControls.init()
onUnload: |
@onUnload: |
CombatControls.terminate()