mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 06:41:38 +00:00
Make mouse constraint circle scriptable. New Lua functions:
- setMouseConstraintCircle() - setMouseConstraint()
This commit is contained in:
parent
071ca187e6
commit
af463e63b2
4 changed files with 21 additions and 4 deletions
|
@ -1037,7 +1037,7 @@ public:
|
|||
void removeRenderObject(RenderObject *r, RemoveRenderObjectFlag flag = DESTROY_RENDER_OBJECT);
|
||||
|
||||
void setMouseConstraint(bool on);
|
||||
void setMouseConstraintCircle(float mouseCircle);
|
||||
void setMouseConstraintCircle(const Vector& pos, float mouseCircle);
|
||||
|
||||
void setReentryInputGrab(int on);
|
||||
|
||||
|
@ -1350,6 +1350,7 @@ protected:
|
|||
std::string appName;
|
||||
bool mouseConstraint;
|
||||
float mouseCircle;
|
||||
Vector mouseConstraintCenter;
|
||||
|
||||
bool doMouseConstraint();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue