コード例 #1
0
ファイル: MainPlugin.cs プロジェクト: Riva3000/FlatRedBall
        public override void StartUp()
        {
            boundsLogic = new CameraControlsPlugin.BoundsLogic();


            GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm(
                "Camera", -1, new CameraControl(), this);

            this.ElementLoaded += HandleElementLoaded;
        }
コード例 #2
0
        public override void StartUp()
        {
            boundsLogic = new CameraControlsPlugin.BoundsLogic();

            guidesViewModel = new CameraViewModel();
            guidesViewModel.PropertyChanged += HandleGuidesPropertyChanged;

            guidesViewModel.CellSize = 20;

            cameraControl = new CameraControl(guidesViewModel);

            GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm(
                "Camera", -1, cameraControl, this);

            this.ElementLoaded += HandleElementLoaded;

            this.Update         += HandleUpdate;
            this.ElementRemoved += HandleElementRemoved;
        }