Пример #1
0
 private void InitializeClasses()
 {
     ScreenSpace.Scene           = new SceneScreenSpace(editorService.Viewport.Window, SceneResolution);
     ControlProcessor            = new ControlProcessor();
     controlAdder                = new ControlAdder();
     controlChanger              = new ControlChanger();
     uiControl                   = new UIControl();
     controlTransformer          = new ControlTransformer(editorService);
     controlAllignmentAndMargins = new ControlAllignmentAndMargins(this);
     controlMaterialChanger      = new ControlMaterialChanger(this);
     uiSceneGrid                 = new UISceneGrid(this);
 }
Пример #2
0
		private void InitializeClasses()
		{
			ScreenSpace.Scene = new SceneScreenSpace(editorService.Viewport.Window, SceneResolution);
			ControlProcessor = new ControlProcessor();
			controlAdder = new ControlAdder();
			controlChanger = new ControlChanger();
			uiControl = new UIControl();
			controlTransformer = new ControlTransformer(editorService);
			controlAllignmentAndMargins = new ControlAllignmentAndMargins(this);
			controlMaterialChanger = new ControlMaterialChanger(this);
			uiSceneGrid = new UISceneGrid(this);
		}
Пример #3
0
 public UIEditorViewModel(Service service)
 {
     this.service = service;
     Messenger.Default.Send("ClearScene", "ClearScene");
     uiEditorScene = new UIEditorScene();
     uiEditorScene.ControlProcessor = new ControlProcessor(this);
     uiControl = new UIControl();
     controlAdder = new ControlAdder();
     controlChanger = new ControlChanger();
     Adder = new ControlAdder();
     Scene = new Scene();
     InitializeDefaults();
     InitializeGrid();
     FillContentImageList();
     FillMaterialList();
     FillSceneNames();
     FillListOfAvailableFonts();
     SetMouseCommands("");
     SetMessengers();
     CreateCenteredControl("Button");
     UIName = "MyScene";
     CheckIfCanSaveScene();
     new Command(() => DeleteSelectedControl("")).Add(new KeyTrigger(Key.Delete));
 }