5#include <unordered_map>
8#include "absl/status/status.h"
9#include "absl/strings/str_format.h"
25#include "imgui/imgui.h"
26#include "imgui_memory_editor.h"
35using ImGui::BeginChild;
36using ImGui::BeginTabBar;
37using ImGui::BeginTabItem;
38using ImGui::BeginTable;
39using ImGui::BeginTooltip;
43using ImGui::EndTabBar;
44using ImGui::EndTabItem;
46using ImGui::EndTooltip;
47using ImGui::IsItemHovered;
49using ImGui::PopStyleColor;
50using ImGui::PushStyleColor;
52using ImGui::Selectable;
53using ImGui::Separator;
54using ImGui::TableHeadersRow;
55using ImGui::TableNextColumn;
56using ImGui::TableNextRow;
57using ImGui::TableSetupColumn;
82 static bool use_work_area =
true;
83 static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration |
84 ImGuiWindowFlags_NoMove |
85 ImGuiWindowFlags_NoSavedSettings;
86 const ImGuiViewport *viewport = ImGui::GetMainViewport();
87 ImGui::SetNextWindowPos(use_work_area ? viewport->WorkPos : viewport->Pos);
88 ImGui::SetNextWindowSize(use_work_area ? viewport->WorkSize : viewport->Size);
99 static bool show_gfx_group =
false;
100 static bool show_properties =
false;
179 std::vector<uint8_t> png_data;
181 if (png_data.size() > 0) {
185 "Failed to convert overworld map surface to PNG");
195 [&]() { Checkbox(
"Properties", &show_properties); });
203 ImGuiWindowFlags_MenuBar);
208 if (show_gfx_group) {
214 if (show_properties) {
215 ImGui::Begin(
"Properties", &show_properties);
221 if (!ImGui::IsAnyItemActive()) {
222 if (ImGui::IsKeyDown(ImGuiKey_1)) {
224 }
else if (ImGui::IsKeyDown(ImGuiKey_2)) {
226 }
else if (ImGui::IsKeyDown(ImGuiKey_3)) {
228 }
else if (ImGui::IsKeyDown(ImGuiKey_4)) {
230 }
else if (ImGui::IsKeyDown(ImGuiKey_5)) {
232 }
else if (ImGui::IsKeyDown(ImGuiKey_6)) {
234 }
else if (ImGui::IsKeyDown(ImGuiKey_7)) {
236 }
else if (ImGui::IsKeyDown(ImGuiKey_8)) {
243 "##WorldId",
"##GfxId",
"##PalId",
"##SprGfxId",
244 "##5thCol",
"##6thCol",
"##7thCol",
"##8thCol"};
249 ImGui::TableSetupColumn(name);
252 ImGui::SetNextItemWidth(120.f);
259 ->mutable_area_graphics(),
270 ->mutable_area_palette(),
303 ImGui::SetNextItemWidth(100.f);
310 HOVER_HINT(
"Enable Mosaic effect for the current map");
319 ImGui::TableSetupColumn(name);
322 ImGui::SetNextItemWidth(120.f);
325 static const std::array<std::string, 8> kCustomMapSettingsColumnNames = {
326 "TileGfx0",
"TileGfx1",
"TileGfx2",
"TileGfx3",
327 "TileGfx4",
"TileGfx5",
"TileGfx6",
"TileGfx7"};
328 for (
int i = 0; i < 8; ++i) {
333 ->mutable_custom_tileset(i),
345 ->mutable_area_palette(),
378 ImGui::SetNextItemWidth(100.f);
385 HOVER_HINT(
"Enable Mosaic effect for the current map");
394 for (
int i = 0; i < 0x40; i++) {
427 int mouse_x = mouse_position.x;
428 int mouse_y = mouse_position.y;
434 auto &selected_world =
437 :
overworld_.mutable_map_tiles()->special_world;
439 int index_x = superX * 32 + tile16_x;
440 int index_y = superY * 32 + tile16_y;
446 const ImVec2 &click_position,
const std::vector<uint8_t> &tile_data) {
454 ImVec2 start_position;
485 if (ImGui::IsMouseClicked(ImGuiMouseButton_Left) ||
486 ImGui::IsMouseDragging(ImGuiMouseButton_Left)) {
487 auto &selected_world =
491 :
overworld_.mutable_map_tiles()->special_world;
502 if (start_x > end_x) std::swap(start_x, end_x);
503 if (start_y > end_y) std::swap(start_y, end_y);
505 constexpr int local_map_size = 512;
507 constexpr int tiles_per_local_map = local_map_size /
kTile16Size;
509 for (
int y = start_y, i = 0; y <= end_y; y +=
kTile16Size) {
510 for (
int x = start_x; x <= end_x; x +=
kTile16Size, ++i) {
512 int local_map_x = x / local_map_size;
513 int local_map_y = y / local_map_size;
520 int index_x = local_map_x * tiles_per_local_map + tile16_x;
521 int index_y = local_map_y * tiles_per_local_map + tile16_y;
522 int tile16_id =
overworld_.GetTileFromPosition(
524 selected_world[index_x][index_y] = tile16_id;
543 static std::vector<int> tile16_ids;
546 if (tile16_ids.size() != 0) {
552 tile16_ids.push_back(
overworld_.GetTileFromPosition(each));
562 const auto mouse_position = ImGui::GetIO().MousePos;
563 const int large_map_size = 1024;
583 const int highlight_parent =
584 overworld_.overworld_map(current_highlighted_map)->parent();
585 const int parent_map_x = highlight_parent % 8;
586 const int parent_map_y = highlight_parent / 8;
591 const int current_map_x = current_highlighted_map % 8;
592 const int current_map_y = current_highlighted_map / 8;
599 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
606 return absl::OkStatus();
610 if (ImGui::IsMouseDragging(ImGuiMouseButton_Middle)) {
616 if (ImGui::IsMouseReleased(ImGuiMouseButton_Middle) &&
664 if (ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows) &&
665 ImGui::IsMouseDragging(ImGuiMouseButton_Middle)) {
666 ImGui::SetScrollX(ImGui::GetScrollX() + ImGui::GetIO().MouseWheelH * 16.0f);
667 ImGui::SetScrollY(ImGui::GetScrollY() + ImGui::GetIO().MouseWheel * 16.0f);
685 int grid_x =
static_cast<int>(tile_pos.x / 32);
686 int grid_y =
static_cast<int>(tile_pos.y / 32);
687 int id = grid_x + grid_y * 8;
703 return absl::OkStatus();
712 int offset = 0x40 * (key + 1);
717 auto texture = value.texture();
719 (ImTextureID)(intptr_t)texture,
757 return absl::OkStatus();
762 ImGuiTabBarFlags_FittingPolicyScroll)) {
763 if (BeginTabItem(
"Tile16")) {
767 if (BeginTabItem(
"Tile8")) {
775 if (BeginTabItem(
"Area Graphics")) {
781 return absl::OkStatus();
790 auto color = ImVec4(255, 255, 0, 100);
792 color = ImVec4(255, 255, 255, 200);
802 ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
807 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
820 auto deleted_entrance_id =
overworld_.deleted_entrances().back();
822 auto &entrance =
overworld_.entrances()[deleted_entrance_id];
824 entrance.entrance_id_ = deleted_entrance_id;
827 entrance.deleted =
false;
831 const auto is_hovering =
834 if (!is_hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
835 ImGui::OpenPopup(
"Entrance Inserter");
843 overworld_.mutable_deleted_entrances()->emplace_back(
852 for (
auto &each : *
overworld_.mutable_exits()) {
856 ImVec4(255, 255, 255, 150));
864 ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
869 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
874 ImGui::OpenPopup(
"Exit editor");
890 if (!hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
891 ImGui::OpenPopup(
"Exit Inserter");
903 for (
auto &item : *
overworld_.mutable_all_items()) {
907 ow_map_canvas_.DrawRect(item.x_, item.y_, 16, 16, ImVec4(255, 0, 0, 150));
917 if (hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
923 std::string item_name =
"";
927 item_name = absl::StrFormat(
"0x%02X", item.id_);
940 if (!hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
941 ImGui::OpenPopup(
"Item Inserter");
954 if (!sprite.deleted()) {
955 int map_x = sprite.map_x();
956 int map_y = sprite.map_y();
958 ImVec4(255, 0, 255, 150));
965 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
977 ow_map_canvas_.DrawText(absl::StrFormat(
"%s", sprite.name()), map_x,
989 if (!hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
990 ImGui::OpenPopup(
"Sprite Inserter");
1020 return absl::OkStatus();
1024 util::logf(
"Loading overworld.");
1029 util::logf(
"Loading overworld graphics.");
1035 util::logf(
"Loading overworld tileset.");
1038 0x80, 0x2000, 0x08,
overworld_.tile16_blockset_data(),
1043 auto tile16_data =
overworld_.tile16_blockset_data();
1045 util::logf(
"Loading overworld tile16 graphics.");
1066 util::logf(
"Loading overworld maps.");
1070 auto palette =
overworld_.current_area_palette();
1075 }
catch (
const std::bad_alloc &e) {
1076 std::cout <<
"Error: " << e.what() << std::endl;
1085 return absl::OkStatus();
1090 const int depth = 0x10;
1091 for (
int i = 0; i < 3; i++)
1092 for (
auto const &sprite : *
overworld_.mutable_sprites(i)) {
1093 int width = sprite.width();
1094 int height = sprite.height();
1095 if (width == 0 || height == 0) {
1102 *sprite.preview_graphics());
1106 return absl::OkStatus();
1110 overworld_.mutable_overworld_map(map_index)->LoadAreaGraphics();
1119 overworld_.mutable_overworld_map(map_index)->bitmap_data());
1120 maps_bmp_[map_index].set_modified(
true);
1125 std::vector<std::future<void>> futures;
1128 auto refresh_map_async = [
this](
int map_index) {
1137 for (
int i = 1; i < 4; i++) {
1138 int sibling_index =
overworld_.overworld_map(source_map_id)->parent() + i;
1139 if (i >= 2) sibling_index += 6;
1141 std::async(std::launch::async, refresh_map_async, sibling_index));
1142 indices[i] = sibling_index;
1145 indices[0] = source_map_id;
1147 std::async(std::launch::async, refresh_map_async, source_map_id));
1149 for (
auto &each : futures) {
1153 int n = is_large ? 4 : 1;
1155 for (
int i = 0; i < n; ++i) {
1163 const auto current_map_palette =
overworld_.current_area_palette();
1167 for (
int i = 1; i < 4; i++) {
1169 if (i >= 2) sibling_index += 6;
1171 overworld_.mutable_overworld_map(sibling_index)->LoadPalette());
1173 maps_bmp_[sibling_index].ApplyPalette(current_map_palette));
1178 return absl::OkStatus();
1183 if (current_ow_map.is_large_map()) {
1185 for (
int i = 1; i < 4; i++) {
1186 int sibling_index = current_ow_map.parent() + i;
1190 auto &map = *
overworld_.mutable_overworld_map(sibling_index);
1191 map.set_area_graphics(current_ow_map.area_graphics());
1192 map.set_area_palette(current_ow_map.area_palette());
1197 map.set_message_id(current_ow_map.message_id());
1205 return absl::OkStatus();
1216 const auto tile16_data =
overworld_.tile16_blockset_data();
1219 std::vector<std::future<absl::Status>> futures;
1221 futures.push_back(std::async(
1223 [&](
int index) -> absl::Status {
1224 std::vector<uint8_t> tile_data(16 * 16, 0x00);
1225 for (
int ty = 0; ty < 16; ty++) {
1226 for (
int tx = 0; tx < 16; tx++) {
1227 int position = tx + (ty * 0x10);
1229 tile16_data[(index % 8 * 16) + (index / 8 * 16 * 0x80) +
1231 tile_data[position] = value;
1236 return absl::OkStatus();
1241 for (
auto &future : futures) {
1251 return absl::OkStatus();
1255 static bool init_properties =
false;
1257 if (!init_properties) {
1258 for (
int i = 0; i < 0x40; i++) {
1259 std::string area_graphics_str = absl::StrFormat(
1260 "%02hX",
overworld_.overworld_map(i)->area_graphics());
1262 ->push_back(area_graphics_str);
1264 area_graphics_str = absl::StrFormat(
1265 "%02hX",
overworld_.overworld_map(i + 0x40)->area_graphics());
1267 ->push_back(area_graphics_str);
1269 std::string area_palette_str =
1270 absl::StrFormat(
"%02hX",
overworld_.overworld_map(i)->area_palette());
1272 ->push_back(area_palette_str);
1274 area_palette_str = absl::StrFormat(
1275 "%02hX",
overworld_.overworld_map(i + 0x40)->area_palette());
1277 ->push_back(area_palette_str);
1278 std::string sprite_gfx_str = absl::StrFormat(
1279 "%02hX",
overworld_.overworld_map(i)->sprite_graphics(1));
1281 ->push_back(sprite_gfx_str);
1283 sprite_gfx_str = absl::StrFormat(
1284 "%02hX",
overworld_.overworld_map(i)->sprite_graphics(2));
1286 ->push_back(sprite_gfx_str);
1288 sprite_gfx_str = absl::StrFormat(
1289 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_graphics(1));
1291 ->push_back(sprite_gfx_str);
1293 sprite_gfx_str = absl::StrFormat(
1294 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_graphics(2));
1296 ->push_back(sprite_gfx_str);
1298 std::string sprite_palette_str = absl::StrFormat(
1299 "%02hX",
overworld_.overworld_map(i)->sprite_palette(1));
1301 ->push_back(sprite_palette_str);
1303 sprite_palette_str = absl::StrFormat(
1304 "%02hX",
overworld_.overworld_map(i)->sprite_palette(2));
1306 ->push_back(sprite_palette_str);
1308 sprite_palette_str = absl::StrFormat(
1309 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_palette(1));
1311 ->push_back(sprite_palette_str);
1313 sprite_palette_str = absl::StrFormat(
1314 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_palette(2));
1316 ->push_back(sprite_palette_str);
1318 init_properties =
true;
1321 Text(
"Area Gfx LW/DW");
1329 Text(
"Sprite Gfx LW/DW");
1343 Text(
"Area Pal LW/DW");
1350 static bool show_gfx_group =
false;
1351 Checkbox(
"Show Gfx Group Editor", &show_gfx_group);
1352 if (show_gfx_group) {
1360 if (BeginTable(
"UsageStatsTable", 3,
kOWEditFlags, ImVec2(0, 0))) {
1361 TableSetupColumn(
"Entrances");
1362 TableSetupColumn(
"Grid", ImGuiTableColumnFlags_WidthStretch,
1363 ImGui::GetContentRegionAvail().x);
1364 TableSetupColumn(
"Usage", ImGuiTableColumnFlags_WidthFixed, 256);
1369 if (BeginChild(
"UnusedSpritesetScroll", ImVec2(0, 0),
true,
1370 ImGuiWindowFlags_HorizontalScrollbar)) {
1371 for (
int i = 0; i < 0x81; i++) {
1372 auto entrance_name =
rom_.resource_label()->CreateOrGetLabel(
1375 std::string str = absl::StrFormat(
"%#x - %s", i, entrance_name);
1378 ? ImGuiSelectableFlags_Disabled
1384 if (IsItemHovered()) {
1386 Text(
"Entrance ID: %d", i);
1387 Text(
"Map ID: %d",
overworld_.entrances().at(i).map_id_);
1388 Text(
"Entrance ID: %d",
overworld_.entrances().at(i).entrance_id_);
1389 Text(
"X: %d",
overworld_.entrances().at(i).x_);
1390 Text(
"Y: %d",
overworld_.entrances().at(i).y_);
1392 overworld_.entrances().at(i).deleted ?
"Yes" :
"No");
1407 return absl::OkStatus();
1412 int total_squares = 128;
1413 int squares_wide = 8;
1414 int squares_tall = (total_squares + squares_wide - 1) /
1418 for (
int row = 0; row < squares_tall; ++row) {
1421 for (
int col = 0; col < squares_wide; ++col) {
1422 if (row * squares_wide + col >= total_squares) {
1430 PushStyleColor(ImGuiCol_Button,
1431 ImVec4(1.0f, 0.5f, 0.0f,
1436 if (Button(
"##square", ImVec2(20, 20))) {
1448 if (IsItemHovered()) {
1461 int relative_x = (int)
ow_map_canvas_.drawn_tile_position().x % 512;
1462 int relative_y = (int)
ow_map_canvas_.drawn_tile_position().y % 512;
1463 Text(
"Current Tile16 Drawn Position (Relative): %d, %d", relative_x,
1467 Text(
"Light World Map Tiles: %d",
1468 (
int)
overworld_.mutable_map_tiles()->light_world.size());
1469 Text(
"Dark World Map Tiles: %d",
1470 (
int)
overworld_.mutable_map_tiles()->dark_world.size());
1471 Text(
"Special World Map Tiles: %d",
1472 (
int)
overworld_.mutable_map_tiles()->special_world.size());
1474 static bool view_lw_map_tiles =
false;
1475 static MemoryEditor mem_edit;
1477 if (Button(
"View Light World Map Tiles")) {
1478 view_lw_map_tiles = !view_lw_map_tiles;
1481 if (view_lw_map_tiles) {
1482 mem_edit.DrawContents(
1495 [
this]() { DrawOverworldCanvas(); });
1497 [
this]() { status_ = DrawTileSelector(); });
1499 if (rom_.is_loaded()) {
1500 status_ = UpdateUsageStats();
1504 [
this]() { DrawToolset(); });
1506 if (rom_.is_loaded()) {
1507 status_ = tile16_editor_.Update();
1510 gui::zeml::Bind(&*layout_node_.GetNode(
"OwGfxGroupEditor"), [
this]() {
1511 if (rom_.is_loaded()) {
1512 status_ = gfx_group_editor_.Update();
static GraphicsSheetManager & GetInstance()
void UpdateBitmap(gfx::Bitmap *bitmap)
Used to update a bitmap on the screen.
void RenderBitmap(gfx::Bitmap *bitmap)
Used to render a bitmap to the screen.
gui::zeml::Node layout_node_
zelda3::OverworldItem current_item_
bool overworld_canvas_fullscreen_
bool map_blockset_loaded_
absl::Status UpdateUsageStats()
zelda3::OverworldEntranceTileTypes entrance_tiletypes_
zelda3::OverworldEntrance current_entrance_
zelda3::Sprite current_sprite_
absl::Status CheckForCurrentMap()
Check for changes to the overworld map. Calls RefreshOverworldMap and RefreshTile16Blockset on the cu...
void DrawOverworldEdits()
gfx::Bitmap current_gfx_bmp_
bool middle_mouse_dragging_
Tile16Editor tile16_editor_
gui::Canvas ow_map_canvas_
void DrawOverworldExits(ImVec2 zero, ImVec2 scrolling)
absl::Status Undo() override
void DrawOverworldItems()
zelda3::GameEntity * dragged_entity_
std::array< gfx::Bitmap, zelda3::kNumOverworldMaps > maps_bmp_
void RefreshOverworldMap()
void CheckForOverworldEdits()
Check for changes to the overworld map.
zelda3::OverworldExit current_exit_
void RefreshMapProperties()
void RenderUpdatedMapBitmap(const ImVec2 &click_position, const std::vector< uint8_t > &tile_data)
gui::Canvas current_gfx_canvas_
void DrawCustomOverworldMapSettings()
absl::Status DrawTileSelector()
absl::Status Redo() override
void DrawFullscreenCanvas()
void DrawOverworldProperties()
absl::Status RefreshMapPalette()
void DrawOverworldMapSettings()
void DrawOverworldCanvas()
gui::Canvas blockset_canvas_
absl::Status RefreshTile16Blockset()
void CheckForSelectRectangle()
Draw and create the tile16 IDs that are currently selected.
void RefreshChildMap(int i)
std::vector< gfx::Bitmap > sprite_previews_
absl::Status DrawAreaGraphics()
GfxGroupEditor gfx_group_editor_
absl::Status Update() final
void DrawOverworldSprites()
EditingMode previous_mode
gui::Table toolset_table_
gui::Canvas graphics_bin_canvas_
gfx::BitmapTable current_graphics_set_
zelda3::Overworld overworld_
absl::Status LoadGraphics()
Load the Bitmap objects for each OverworldMap.
std::array< gfx::Bitmap, zelda3::kNumTile16Individual > tile16_individual_
absl::Status LoadSpriteGraphics()
void DrawOverworldEntrances(ImVec2 canvas_p, ImVec2 scrolling, bool holes=false)
zelda3::GameEntity * current_entity_
gui::Canvas properties_canvas_
gfx::SnesPalette palette_
gfx::Bitmap tile16_blockset_bmp_
absl::Status DrawTile16Selector()
static Renderer & GetInstance()
Represents a bitmap image.
void WriteToPixel(int position, uint8_t value)
void set_modified(bool modified)
#define ICON_MD_GRID_VIEW
#define ICON_MD_MORE_VERT
#define ICON_MD_OPEN_IN_FULL
#define ICON_MD_TABLE_CHART
#define ICON_MD_DOOR_BACK
#define ICON_MD_MUSIC_NOTE
#define ICON_MD_DOOR_FRONT
#define ICON_MD_ADD_LOCATION
#define ICON_MD_PEST_CONTROL_RODENT
#define ICON_MD_CONTENT_COPY
#define ICON_MD_PAN_TOOL_ALT
#define PRINT_IF_ERROR(expression)
#define RETURN_IF_ERROR(expression)
#define ASSIGN_OR_RETURN(type_variable_name, expression)
#define HOVER_HINT(string)
void CopyImageToClipboard(const std::vector< uint8_t > &data)
Editors are the view controllers for the application.
void DrawExitInserterPopup()
constexpr absl::string_view kOWMapTable
constexpr ImGuiTableFlags kOWMapFlags
constexpr unsigned int kOverworldMapSize
bool DrawSpriteEditorPopup(zelda3::Sprite &sprite)
void DrawItemInsertPopup()
bool DrawEntranceInserterPopup()
void DrawSpriteInserterPopup()
constexpr absl::string_view kWorldList
constexpr absl::string_view kGamePartComboString
void HandleEntityDragging(zelda3::GameEntity *entity, ImVec2 canvas_p0, ImVec2 scrolling, bool &is_dragging_entity, zelda3::GameEntity *&dragged_entity, zelda3::GameEntity *¤t_entity, bool free_movement)
bool DrawOverworldEntrancePopup(zelda3::OverworldEntrance &entrance)
bool IsMouseHoveringOverEntity(const zelda3::GameEntity &entity, ImVec2 canvas_p0, ImVec2 scrolling)
absl::Status DisplayPalette(gfx::SnesPalette &palette, bool loaded)
bool DrawItemEditorPopup(zelda3::OverworldItem &item)
constexpr int kTile16Size
constexpr ImGuiTableFlags kOWEditFlags
constexpr float kInputFieldSize
constexpr absl::string_view kTileSelectorTab
constexpr std::array< const char *, 8 > kMapSettingsColumnNames
bool DrawExitEditorPopup(zelda3::OverworldExit &exit)
void Render(Node &node)
Render a zeml tree.
std::string LoadFile(const std::string &filename)
void Bind(Node *node, std::function< void()> callback)
Bind a callback to a node.
Node Parse(const std::string &yazon_input, const std::map< std::string, void * > &data_bindings)
Parse a zeml string.
void BeginChildBothScrollbars(int id)
bool InputHexWord(const char *label, uint16_t *data, float input_width, bool no_step)
void AddTableColumn(Table &table, const std::string &label, GuiElement element)
void DrawTable(Table ¶ms)
void EndWindowWithDisplaySettings()
void BeginWindowWithDisplaySettings(const char *id, bool *active, const ImVec2 &size, ImGuiWindowFlags flags)
bool InputHexByte(const char *label, uint8_t *data, float input_width, bool no_step)
void BeginChildWithScrollbar(const char *str_id)
std::string HexByte(uint8_t byte, HexStringParams params)
absl::StatusOr< OverworldEntranceTileTypes > LoadEntranceTileTypes(Rom &rom)
constexpr std::string_view kEntranceNames[]
constexpr int kNumTile16Individual
constexpr int kNumOverworldMaps
const std::vector< std::string > kSecretItemNames
Main namespace for the application.