Enhance Overworld Editor and Map Properties System
- Updated the DrawOverworldEntrancePopup to include new options for deleting entrances and improved UI labels for better clarity. - Integrated new UI constants for consistent styling across the editor. - Refactored MapPropertiesSystem to support additional toolset functionalities, including editing tools and view controls. - Improved overlay handling in OverworldMap, consolidating vanilla and custom overlay loading logic. - Enhanced user interaction with new buttons and streamlined layout for better usability in the editor.
This commit is contained in:
46
src/app/editor/overworld/ui_constants.h
Normal file
46
src/app/editor/overworld/ui_constants.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef YAZE_APP_EDITOR_OVERWORLD_UI_CONSTANTS_H
|
||||
#define YAZE_APP_EDITOR_OVERWORLD_UI_CONSTANTS_H
|
||||
|
||||
namespace yaze {
|
||||
namespace editor {
|
||||
|
||||
// Game State Labels
|
||||
inline constexpr const char* kGameStateNames[] = {
|
||||
"Rain & Rescue Zelda",
|
||||
"Pendants",
|
||||
"Crystals"
|
||||
};
|
||||
|
||||
// World Labels
|
||||
inline constexpr const char* kWorldNames[] = {
|
||||
"Light World",
|
||||
"Dark World",
|
||||
"Special World"
|
||||
};
|
||||
|
||||
// Area Size Names
|
||||
inline constexpr const char* kAreaSizeNames[] = {
|
||||
"Small (1x1)",
|
||||
"Large (2x2)",
|
||||
"Wide (2x1)",
|
||||
"Tall (1x2)"
|
||||
};
|
||||
|
||||
// UI Styling Constants
|
||||
inline constexpr float kInputFieldSize = 30.f;
|
||||
inline constexpr float kCompactButtonWidth = 60.f;
|
||||
inline constexpr float kIconButtonWidth = 30.f;
|
||||
inline constexpr float kSmallButtonWidth = 80.f;
|
||||
inline constexpr float kMediumButtonWidth = 90.f;
|
||||
inline constexpr float kLargeButtonWidth = 100.f;
|
||||
|
||||
// Spacing and Padding
|
||||
inline constexpr float kCompactItemSpacing = 4.f;
|
||||
inline constexpr float kCompactFramePadding = 2.f;
|
||||
|
||||
// Map Size Constants - using the one from overworld_editor.h
|
||||
|
||||
} // namespace editor
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_EDITOR_OVERWORLD_UI_CONSTANTS_H
|
||||
Reference in New Issue
Block a user