mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
91a377df86
The map now will track player's position/rotation when pinned, and will not update if position/rotation didn't change since last frame.
27 lines
527 B
C++
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
|
|
|