Re-add destroying for unloading, other clean up:

* Cleaned some module terminate code
* Fixed "reload all" issues
This commit is contained in:
BeniS
2013-02-01 17:32:15 +13:00
parent 35e5dd8af8
commit 7f5dda5c8f
21 changed files with 31 additions and 77 deletions

View File

@@ -57,13 +57,7 @@ function terminate()
disconnect(g_game, { onGameStart = showGameButtons,
onGameEnd = hideGameButtons })
leftButtonsPanel = nil
rightButtonsPanel = nil
leftGameButtonsPanel = nil
rightGameButtonsPanel = nil
topMenu:destroy()
topMenu = nil
end
function addLeftButton(id, description, icon, callback, front)