refactor: Simplify card shortcuts and enhance card control in editor
- Removed individual card shortcuts for dungeon and graphics categories to prevent hash table overflow, consolidating functionality into a Card Browser. - Introduced a context-sensitive card control feature that dynamically displays relevant cards based on the active editor. - Updated PaletteEditor to clarify its use of internal tabs instead of separate cards. - Registered multiple cards in MessageEditor and OverworldEditor, improving visibility and management of editor functionalities.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "app/editor/editor.h"
|
||||
#include "app/editor/message/message_data.h"
|
||||
#include "app/editor/message/message_preview.h"
|
||||
#include "app/gui/editor_card_manager.h"
|
||||
#include "app/gfx/bitmap.h"
|
||||
#include "app/gui/canvas.h"
|
||||
#include "app/gui/style.h"
|
||||
@@ -84,6 +85,12 @@ class MessageEditor : public Editor {
|
||||
gui::TextBox message_text_box_;
|
||||
Rom* rom_;
|
||||
Rom expanded_message_bin_;
|
||||
|
||||
// Card visibility states
|
||||
bool show_message_list_ = false;
|
||||
bool show_message_editor_ = false;
|
||||
bool show_font_atlas_ = false;
|
||||
bool show_dictionary_ = false;
|
||||
};
|
||||
|
||||
} // namespace editor
|
||||
|
||||
Reference in New Issue
Block a user