1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00
OpenMW/apps/openmw/mwgui/window_pinnable_base.hpp
Roman Melnik 91a377df86 Fix behaviour of the MapWindow
The map now will track player's position/rotation when
pinned, and will not update if position/rotation didn't
change since last frame.
2012-04-01 23:51:49 +03:00

27 lines
527 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, WindowManager& parWindowManager);
void setVisible(bool b);
private:
void onWindowButtonPressed(MyGUI::Window* sender, const std::string& eventName);
protected:
bool mPinned;
bool mVisible;
};
}
#endif