mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 21:07:42 +00:00
More mouse events for pause screen
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "CGuiHeadWidget.hpp"
|
||||
#include "CGuiWidgetIdDB.hpp"
|
||||
#include "IObj.hpp"
|
||||
#include "boo/IWindow.hpp"
|
||||
#include <array>
|
||||
|
||||
namespace urde {
|
||||
@@ -48,6 +49,7 @@ private:
|
||||
std::function<void(CGuiWidget*, CGuiWidget*)> m_mouseOverChangeCb;
|
||||
std::function<void(CGuiWidget*, bool)> m_mouseDownCb;
|
||||
std::function<void(CGuiWidget*, bool)> m_mouseUpCb;
|
||||
std::function<void(CGuiWidget*, const boo::SScrollDelta&, int, int)> m_mouseScrollCb;
|
||||
|
||||
public:
|
||||
CGuiFrame(CAssetId id, CGuiSys& sys, int a, int b, int c, CSimplePool* sp);
|
||||
@@ -83,6 +85,9 @@ public:
|
||||
void SetMouseUpCallback(std::function<void(CGuiWidget*, bool)>&& cb) {
|
||||
m_mouseUpCb = std::move(cb);
|
||||
}
|
||||
void SetMouseScrollCallback(std::function<void(CGuiWidget*, const boo::SScrollDelta&, int, int)>&& cb) {
|
||||
m_mouseScrollCb = std::move(cb);
|
||||
}
|
||||
|
||||
void Update(float dt);
|
||||
void Draw(const CGuiWidgetDrawParms& parms) const;
|
||||
|
||||
Reference in New Issue
Block a user