mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 06:40:09 +00:00
43d6392921
This ensure pinned window are not displayed in main menu, dialogue and container mode.
28 lines
577 B
C++
28 lines
577 B
C++
#ifndef MWGUI_WINDOW_PINNABLE_BASE_H
|
|
#define MWGUI_WINDOW_PINNABLE_BASE_H
|
|
|
|
#include "window_base.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
class WindowManager;
|
|
|
|
class WindowPinnableBase: public WindowBase
|
|
{
|
|
public:
|
|
WindowPinnableBase(const std::string& parLayout, MWBase::WindowManager& parWindowManager);
|
|
bool pinned() { return mPinned; }
|
|
|
|
private:
|
|
void onWindowButtonPressed(MyGUI::Window* sender, const std::string& eventName);
|
|
|
|
protected:
|
|
virtual void onPinToggled() = 0;
|
|
|
|
bool mPinned;
|
|
bool mVisible;
|
|
};
|
|
}
|
|
|
|
#endif
|