-- Pythera: fileira de botoes classica do Tibia 8.x (Skills/Battle/VIP/Stop/Menu/Help/Logout)
-- docada na coluna direita, no lugar dos botoes de icone do mehah.

classicButtonsController = Controller:new()
classicButtonsController:setUI('classicbuttons', modules.game_interface.getMainRightPanel())

local function hideMehahButtons()
    local mainRightPanel = modules.game_interface.getMainRightPanel()
    if not mainRightPanel then
        return
    end
    -- esconde o painel de botoes moderno do mehah (Store + fileira de icones)
    local mehah = mainRightPanel:getChildById('mainoptionspanel')
    if mehah then
        mehah:hide()
        mehah:setHeight(0)
    end
    if modules.game_mainpanel and modules.game_mainpanel.reloadMainPanelSizes then
        modules.game_mainpanel.reloadMainPanelSizes()
    end
end

function classicButtonsController:onInit()
    hideMehahButtons()
end

function classicButtonsController:onGameStart()
    hideMehahButtons()
end

function classicButtonsController:onTerminate()
end
