This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+32
View File
@@ -0,0 +1,32 @@
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "V8DataModel/MouseCommand.h"
namespace RBX {
extern const char* const sGrabTool;
class GrabTool : public Named<MouseCommand, sGrabTool>
{
private:
std::string cursor;
/////////////////////////////////////////////////////////
// MouseCommand
//
/*override*/ void onMouseIdle(const shared_ptr<InputObject>& inputObject);
/*override*/ void onMouseHover(const shared_ptr<InputObject>& inputObject);
/*override*/ shared_ptr<MouseCommand> onMouseDown(const shared_ptr<InputObject>& inputObject);
/*override*/ const std::string getCursorName() const {return cursor;}
/*override*/ bool drawConnectors() const {return true;} // default mouse command no draw connectors
public:
GrabTool(Workspace* workspace);
~GrabTool();
/*override*/ shared_ptr<MouseCommand> isSticky() const {return Creatable<MouseCommand>::create<GrabTool>(workspace);}
};
} // namespace RBX