1#ifndef YAZE_APP_EDITOR_SCREEN_EDITOR_H
2#define YAZE_APP_EDITOR_SCREEN_EDITOR_H
6#include "absl/status/status.h"
15#include "imgui/imgui.h"
42 absl::Status
Update()
override;
44 absl::Status
Undo()
override {
return absl::UnimplementedError(
"Undo"); }
45 absl::Status
Redo()
override {
return absl::UnimplementedError(
"Redo"); }
46 absl::Status
Cut()
override {
return absl::UnimplementedError(
"Cut"); }
47 absl::Status
Copy()
override {
return absl::UnimplementedError(
"Copy"); }
48 absl::Status
Paste()
override {
return absl::UnimplementedError(
"Paste"); }
49 absl::Status
Find()
override {
return absl::UnimplementedError(
"Find"); }
64 bool bin_mode =
false);
107 ImVec2(128 + 2, (192) + 4),
A class to hold a shared pointer to a Rom object.
Interface for editor classes.
The ScreenEditor class allows the user to edit a variety of screens in the game or create a custom me...
gui::Canvas tilemap_canvas_
std::vector< std::vector< std::array< std::string, 25 > > > dungeon_map_labels_
void DrawInventoryMenuEditor()
absl::Status LoadDungeonMapTile16(const std::vector< uint8_t > &gfx_data, bool bin_mode=false)
gui::Canvas screen_canvas_
bool dungeon_maps_loaded_
absl::Status Update() override
absl::Status Cut() override
gfx::Tilesheet tile16_sheet_
std::vector< uint8_t > gfx_bin_data_
absl::Status Redo() override
zelda3::screen::Inventory inventory_
gfx::InternalTile16 current_tile16_info
absl::Status Paste() override
void DrawTitleScreenEditor()
std::array< uint16_t, 4 > current_tile16_data_
void DrawDungeonMapsEditor()
gui::Canvas current_tile_canvas_
absl::Status SaveDungeonMaps()
gfx::SnesPalette palette_
void DrawOverworldMapEditor()
bool paste_button_pressed
EditingMode current_mode_
absl::Status Undo() override
void DrawDungeonMapsTabs()
absl::Status LoadDungeonMaps()
void DrawNamingScreenEditor()
absl::Status Copy() override
gui::Canvas tilesheet_canvas_
void DrawInventoryToolset()
std::vector< zelda3::screen::DungeonMap > dungeon_maps_
std::vector< uint8_t > all_gfx_
std::unordered_map< int, gfx::Bitmap > tile16_individual_
absl::Status Find() override
absl::Status SaveDungeonMapTile16()
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a tilesheet, which is a collection of tiles stored in a bitmap.
Represents a canvas for drawing and manipulating graphics.
void SetCanvasSize(ImVec2 canvas_size)
std::unordered_map< int, gfx::Bitmap > BitmapTable