Custom Editors


Korduene Editors have been completely rewritten to support custom editors, EditorBase class is provided to allow you create your own editor, it still includes the Graph and Designer tabs, but you can create your own designer and add it to the Designer tab, which can be of any type, a game scene editor, an html editor, or anything you wish.

Below is an example of a minimalistic Editor:

Custom C++ Editor
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CppProject
{
    public class CppEditor : Korduene.Editors.EditorBase
    {
        public CppEditor()
        {
            DesignerEnabled = false;
            ToolboxEnabled = false;
        }
        
        public override void SaveEditor()
        {
            GraphTab.File = System.IO.Path.Combine(Korduene.KordueneCore.CurrentProject.Directories.Graphs, ContentName);
            GraphTab.SaveGraph();
            Saved = true;
        }
        public override void LoadEditor()
        {
            GraphTab.File = System.IO.Path.Combine(Korduene.KordueneCore.CurrentProject.Directories.Graphs, ContentName);
            GraphTab.LoadGraph();
        }
    }
}