add fn comments for doxygen, rename OAMTile to OamTile

This commit is contained in:
scawful
2024-04-13 23:10:34 -05:00
parent 99f6842857
commit 89cc0703f1
15 changed files with 103 additions and 20 deletions

View File

@@ -25,6 +25,7 @@ static constexpr absl::string_view kPaletteGroupNames[] = {
"ow_aux", "global_sprites", "dungeon_main", "ow_mini_map",
"ow_mini_map", "3d_object", "3d_object"};
namespace palette_internal {
struct PaletteChange {
std::string group_name;
size_t palette_index;
@@ -74,6 +75,7 @@ class PaletteEditorHistory {
std::deque<PaletteChange> recentChanges;
static const size_t maxHistorySize = 50; // or any other number you deem fit
};
} // namespace palette_internal
class PaletteEditor : public SharedROM {
public:
@@ -103,7 +105,7 @@ class PaletteEditor : public SharedROM {
absl::Status status_;
PaletteEditorHistory history_;
palette_internal::PaletteEditorHistory history_;
ImVec4 saved_palette_[256] = {};
gfx::SnesColor current_color_;

View File

@@ -24,7 +24,10 @@ namespace yaze {
namespace app {
namespace editor {
class Tile16Editor : public GfxContext, public SharedROM {
/**
* @brief Popup window to edit Tile16 data
*/
class Tile16Editor : public context::GfxContext, public SharedROM {
public:
absl::Status Update();
absl::Status DrawMenu();