Added lang def to assembly editor
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
#include "assembly_editor.h"
|
#include "assembly_editor.h"
|
||||||
|
|
||||||
#include "core/constants.h"
|
#include "core/constants.h"
|
||||||
|
#include "gui/widgets.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
namespace editor {
|
namespace editor {
|
||||||
|
|
||||||
|
AssemblyEditor::AssemblyEditor() {
|
||||||
|
text_editor_.SetLanguageDefinition(gui::widgets::GetAssemblyLanguageDef());
|
||||||
|
text_editor_.SetPalette(TextEditor::GetDarkPalette());
|
||||||
|
}
|
||||||
|
|
||||||
void AssemblyEditor::Update() {
|
void AssemblyEditor::Update() {
|
||||||
auto cpos = text_editor_.GetCursorPosition();
|
auto cpos = text_editor_.GetCursorPosition();
|
||||||
ImGui::Begin("ASM Editor", &file_is_loaded_, ImGuiWindowFlags_MenuBar);
|
ImGui::Begin("ASM Editor", &file_is_loaded_, ImGuiWindowFlags_MenuBar);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace editor {
|
|||||||
|
|
||||||
class AssemblyEditor {
|
class AssemblyEditor {
|
||||||
public:
|
public:
|
||||||
AssemblyEditor() = default;
|
AssemblyEditor();
|
||||||
|
|
||||||
void Update();
|
void Update();
|
||||||
void ChangeActiveFile(const std::string &);
|
void ChangeActiveFile(const std::string &);
|
||||||
|
|||||||
Reference in New Issue
Block a user