From 284cb96fd21c56e325e6adfc9507f93d20c6bf5f Mon Sep 17 00:00:00 2001 From: Luan Santos Date: Wed, 8 Nov 2023 17:04:13 -0800 Subject: [PATCH] feat: zones brush/editor (#56) --- data/menubar.xml | 2 + source/CMakeLists.txt | 3 + source/brush.cpp | 2 + source/brush.h | 7 + source/common.cpp | 30 ++--- source/common.h | 2 +- source/common_windows.cpp | 12 +- source/common_windows.h | 3 +- source/editor.cpp | 25 +++- source/gui.h | 2 + source/gui_ids.h | 7 + source/iomap_otbm.cpp | 119 ++++++++++++++++- source/iomap_otbm.h | 8 +- source/main_menubar.cpp | 36 +++++- source/main_menubar.h | 4 + source/map.cpp | 85 +++++++++++- source/map.h | 11 ++ source/map_display.cpp | 6 +- source/map_drawer.cpp | 23 +++- source/monster_brush.cpp | 15 ++- source/monster_brush.h | 1 + source/npc_brush.cpp | 1 - source/numbertextctrl.cpp | 2 +- source/palette_common.cpp | 2 + source/palette_monster.cpp | 22 ++++ source/palette_monster.h | 3 + source/palette_window.cpp | 20 +++ source/palette_window.h | 3 + source/palette_zones.cpp | 227 +++++++++++++++++++++++++++++++++ source/palette_zones.h | 70 ++++++++++ source/preferences.cpp | 29 ++++- source/preferences.h | 1 + source/settings.cpp | 2 + source/settings.h | 2 + source/spawn_monster_brush.cpp | 22 +++- source/spawn_monster_brush.h | 7 + source/tile.cpp | 3 + source/tile.h | 16 +++ source/tileset.h | 1 + source/zone_brush.cpp | 56 ++++++++ source/zone_brush.h | 60 +++++++++ source/zones.cpp | 67 ++++++++++ source/zones.h | 64 ++++++++++ vcproj/Project/RME.vcxproj | 17 ++- 44 files changed, 1051 insertions(+), 49 deletions(-) create mode 100644 source/palette_zones.cpp create mode 100644 source/palette_zones.h create mode 100644 source/zone_brush.cpp create mode 100644 source/zone_brush.h create mode 100644 source/zones.cpp create mode 100644 source/zones.h diff --git a/data/menubar.xml b/data/menubar.xml index 2d1eb472..391960ed 100644 --- a/data/menubar.xml +++ b/data/menubar.xml @@ -80,6 +80,7 @@ + @@ -157,6 +158,7 @@ +