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
+44
View File
@@ -0,0 +1,44 @@
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "Tool/PartDragTool.h"
#include "Tool/ICancelableTool.h"
#include <boost/shared_ptr.hpp>
namespace RBX {
extern const char* const sPartDropTool;
class PartDropTool
: public Named<PartDragTool, sPartDropTool>
, public ICancelableTool
{
private:
typedef Named<PartDragTool, sPartDropTool> Super;
public:
/////////////////////////////////////////////////////////
// MouseCommand
//
/*override*/ void onMouseDelta(const shared_ptr<InputObject>& inputObject);
/*override*/ shared_ptr<MouseCommand> onMouseDown(const shared_ptr<InputObject>& inputObject);
///*override*/ MouseCommand* onMouseUp(const shared_ptr<InputObject>& inputObject);
/*override*/ shared_ptr<MouseCommand> onKeyDown(const shared_ptr<InputObject>& inputObject);
/*override*/const std::string getCursorName() const {return MouseCommand::isAdvArrowToolEnabled() ? "advClosed-hand" : "DropCursor";}
/////////////////////////////////////////////////////////
// ICancelableTool
//
/*override*/ shared_ptr<MouseCommand> onCancelOperation();
PartDropTool( PartInstance* mousePart,
const Vector3& hitPointWorld,
Workspace* workspace,
shared_ptr<Instance> selectIfNoDrag);
~PartDropTool();
private:
Vector3 hitLocal;
};
} // namespace RBX