diff --git a/src/app/editor/assembly_editor.cc b/src/app/editor/assembly_editor.cc index 21967c4f..534c141f 100644 --- a/src/app/editor/assembly_editor.cc +++ b/src/app/editor/assembly_editor.cc @@ -32,6 +32,22 @@ void AssemblyEditor::Update() { ImGui::End(); } + + +void AssemblyEditor::InlineUpdate() { + ChangeActiveFile("assets/asm/template_song.asm"); + auto cpos = text_editor_.GetCursorPosition(); + SetEditorText(); + ImGui::Text("%6d/%-6d %6d lines | %s | %s | %s | %s", cpos.mLine + 1, + cpos.mColumn + 1, text_editor_.GetTotalLines(), + text_editor_.IsOverwrite() ? "Ovr" : "Ins", + text_editor_.CanUndo() ? "*" : " ", + text_editor_.GetLanguageDefinition().mName.c_str(), + current_file_.c_str()); + + text_editor_.Render("##asm_editor", ImVec2(0, 300)); +} + void AssemblyEditor::ChangeActiveFile(const std::string& filename) { current_file_ = filename; } diff --git a/src/app/editor/assembly_editor.h b/src/app/editor/assembly_editor.h index 81135b40..63195aa8 100644 --- a/src/app/editor/assembly_editor.h +++ b/src/app/editor/assembly_editor.h @@ -17,6 +17,7 @@ class AssemblyEditor { AssemblyEditor(); void Update(); + void InlineUpdate(); void ChangeActiveFile(const std::string &); private: