Added lang def to assembly editor

This commit is contained in:
scawful
2022-07-09 22:46:01 -04:00
parent 9c0ae49a8d
commit e5ce274508
2 changed files with 7 additions and 1 deletions

View File

@@ -1,11 +1,17 @@
#include "assembly_editor.h"
#include "core/constants.h"
#include "gui/widgets.h"
namespace yaze {
namespace app {
namespace editor {
AssemblyEditor::AssemblyEditor() {
text_editor_.SetLanguageDefinition(gui::widgets::GetAssemblyLanguageDef());
text_editor_.SetPalette(TextEditor::GetDarkPalette());
}
void AssemblyEditor::Update() {
auto cpos = text_editor_.GetCursorPosition();
ImGui::Begin("ASM Editor", &file_is_loaded_, ImGuiWindowFlags_MenuBar);