Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
722 B
Raw Blame
#ifndef MWGUI_INVENTORYTABSSOVERLAY_H
#define MWGUI_INVENTORYTABSSOVERLAY_H

#include "windowbase.hpp"

namespace MyGUI
{
    class Button;
}

namespace Gui
{
    class HBox;
}

namespace MWGui
{
    class InventoryTabsOverlay : public WindowBase
    {
    public:
        InventoryTabsOverlay();

        int getHeight();
        void setTab(size_t index);
        /// Isowind: a tab only for a page open (character creation opens them one by one)
        void setTabAvailable(size_t index, bool available);
        void onControllerMenusChanged() override;

    private:
        std::vector<MyGUI::Button*> mTabs;
        Gui::HBox* mTabBox = nullptr;

        void onTabClicked(MyGUI::Widget* sender);
    };
}

#endif