Mario: slightly better editor UI

This commit is contained in:
2021-05-28 19:51:02 +02:00
parent af3588501a
commit 9d9068091b
9 changed files with 503 additions and 88 deletions
+8
View File
@@ -41,11 +41,18 @@ public:
virtual uint64_t getVisitorType() override {
return _type;
}
uint64_t getToolType() {
return tool_box_type;
}
static bool moveMapLeft( uint64_t flags );
static bool moveMapRight( uint64_t flags );
static bool moveToolsLeft( uint64_t flags );
static bool moveToolsRight( uint64_t flags );
static bool moveModsLeft( uint64_t flags );
static bool moveModsRight( uint64_t flags );
static bool moveCharactersLeft( uint64_t flags );
static bool moveCharactersRight( uint64_t flags );
private:
uint64_t select_flags = 0;
@@ -54,6 +61,7 @@ private:
SDLPP::Vec2D< int > edit_box_location = { -1, -1 };
SDLPP::Vec2D< int > tool_box_location = { -1, -1 };
uint64_t _type;
uint64_t tool_box_type = 0;
};
class ToolVisitor : public SDLPP::Visitor {