Mario Editor: Tool selection alpha
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../sdlpp/sdlpp_renderobject.hpp"
|
||||
#include "objectids.hpp"
|
||||
#include "edit_box.hpp"
|
||||
#include "tool_box.hpp"
|
||||
|
||||
#define SELECTED_LEFT_MAP 0x00000001
|
||||
#define SELECTED_RIGHT_MAP 0x00000002
|
||||
@@ -23,6 +24,10 @@ void MouseVisitor::visit( const SDLPP::RenderObject &obj ) {
|
||||
edit_box = true;
|
||||
edit_box_location = dynamic_cast<const EditBox&>(obj).getIndexes();
|
||||
break;
|
||||
case EDITOR_TOOL_ID:
|
||||
tool_box = true;
|
||||
tool_box_location = dynamic_cast<const ToolBox&>(obj).getIndexes();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user