コード例 #1
0
        public override void StartUp()
        {
            //Highlights
            mHighlight       = new ElementRuntimeHighlight();
            mHighlight.Color = Color.Yellow;

            //UI
            entityControlControls = new EntityControlControls(mCurrentSelectedElementRuntime, mRuntimeOptions);
            GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm("Entity Control", 200, entityControlControls, this);

            //Events
            this.Push            += new EventHandler(OnPush);
            this.ElementLoaded   += new EventHandler(OnElementLoaded);
            this.Drag            += new EventHandler(OnDrag);
            this.Click           += new EventHandler(OnClick);
            this.MouseMove       += new EventHandler(OnMouseMove);
            this.Update          += new EventHandler(OnUpdate);
            this.ElementHiglight += new EventHandler(OnElementHighlight);

            //Layers
            mLayers = new List <Layer>();
            setUpLayerComboBox();

            //Handles
            mScalingHandles  = new ScalingHandles();
            mRotationHandles = new RotationHandles();

            //Action
            mCurrentAction = ActionType.None;

            FillVariableList();
        }
コード例 #2
0
        public SimpleSelectionLogic()
        {
            mHighlight = new ElementRuntimeHighlight();
            mHighlight.FadeInAndOut = true;

            var control = Control.FromHandle(FlatRedBallServices.WindowHandle);

            mContextMenuStrip = new ContextMenuStrip();
            mContextMenuStrip.Items.Add("-");

            control.ContextMenuStrip = mContextMenuStrip;
        }
コード例 #3
0
 public void Initialize()
 {
     mSelectionHighlight       = new ElementRuntimeHighlight();
     mSelectionHighlight.Color = Color.Red;
 }
コード例 #4
0
 public void Initialize()
 {
     mHighlight = new ElementRuntimeHighlight();
     mHighlight.FadeInAndOut = true;
 }