public static int GetOverlayImageOpacity(ManiacEditor.Controls.Editor.MainEditor Instance)
 {
     if (Instance != null && Instance.MenuBar != null)
     {
         return((int)Instance.MenuBar.OverlayImageOpacitySlider.Value);
     }
     return(255);
 }
 public static bool CanOverlayImage(ManiacEditor.Controls.Editor.MainEditor Instance)
 {
     if (Instance != null && Instance.MenuBar != null)
     {
         if (OverlayImage != null && Instance.MenuBar.OverlayImageEnabled.IsChecked)
         {
             return(true);
         }
     }
     return(false);
 }
        private static void StartApp()
        {
            Extensions.ConsoleExtensions.PrintWithLog("Launching the Map Editor...");
            Load();

            void Load()
            {
                var application = new ManiacEditor.App();
                var mainWindow  = new Controls.Editor.MainEditor();

                application.MainWindow   = mainWindow;
                application.ShutdownMode = ShutdownMode.OnMainWindowClose;
                application.Run(mainWindow);
            }
        }
 public void UpdateInstance(MainEditor editor)
 {
     Instance = editor;
     SharpPanel.UpdateInstance(editor);
 }
 public static void UpdateInstance(ManiacEditor.Controls.Editor.MainEditor _Instance)
 {
     Instance = _Instance;
 }
 private void PreInitalization()
 {
     Extensions.ConsoleExtensions.PrintWithLog("Setting Up the Map Editor...");
     Instance = this;
     InitalizeInstances();
 }
 public void UpdateInstance(MainEditor instance)
 {
     Instance = instance;
 }
Exemple #8
0
 public void UpdateInstance(MainEditor editor)
 {
     Instance = editor;
     InitilizeHUD();
 }
 public void UpdateInstance(MainEditor editor)
 {
     Instance = editor;
     (Instance as Window).LocationChanged += SharpPanel_LocationChanged;
     (Instance as Window).MouseMove       += SharpPanel_MouseMove;;
 }