editor housekeeping

This commit is contained in:
scawful
2022-07-09 18:54:30 -04:00
parent b469cde90c
commit 908eb147a1
3 changed files with 5 additions and 25 deletions

View File

@@ -24,8 +24,9 @@ class AssemblyEditor {
void DrawEditMenu();
void SetEditorText();
std::string current_file_;
bool file_is_loaded_ = false;
std::string current_file_;
TextEditor text_editor_;
};

View File

@@ -35,10 +35,6 @@ void OverworldEditor::Update() {
all_gfx_loaded_ = true;
}
if (show_changelist_) {
DrawChangelist();
}
DrawToolset();
ImGui::Separator();
if (ImGui::BeginTable("#owEditTable", 2, ow_edit_flags, ImVec2(0, 0))) {
@@ -80,14 +76,6 @@ void OverworldEditor::DrawToolset() {
ImGui::TableNextColumn();
ImGui::Button(ICON_MD_REDO);
ImGui::TableNextColumn();
if (ImGui::Button(ICON_MD_MANAGE_HISTORY)) {
if (!show_changelist_)
show_changelist_ = true;
else
show_changelist_ = false;
}
ImGui::TableNextColumn();
ImGui::Text(ICON_MD_MORE_VERT);
@@ -129,6 +117,9 @@ void OverworldEditor::DrawToolset() {
overworld_.Load(rom_, allGfx16Ptr);
}
ImGui::TableNextColumn();
ImGui::Text(ICON_MD_MORE_VERT);
ImGui::TableNextColumn();
ImGui::Text("Palette:");
for (int i = 0; i < 8; i++) {
@@ -428,15 +419,6 @@ void OverworldEditor::DrawTile8Selector() {
draw_list->PopClipRect();
}
void OverworldEditor::DrawChangelist() {
if (!ImGui::Begin("Changelist")) {
ImGui::End();
}
ImGui::Text("Test");
ImGui::End();
}
void OverworldEditor::LoadGraphics() {
for (int i = 0; i < kNumSheetsToLoad; i++) {
all_texture_sheet_[i] = rom_.DrawGraphicsSheet(i);

View File

@@ -28,8 +28,6 @@ class OverworldEditor {
void DrawTile16Selector();
void DrawTile8Selector();
void DrawChangelist();
void LoadBlockset();
void LoadGraphics();
@@ -61,7 +59,6 @@ class OverworldEditor {
bool isLoaded = false;
bool doneLoaded = false;
bool opt_enable_grid = true;
bool show_changelist_ = false;
bool all_gfx_loaded_ = false;
bool map_blockset_loaded_ = false;