public SimpleSelectionLogic() { mHighlight = new ElementRuntimeHighlight(); mHighlight.FadeInAndOut = true; var control = Control.FromHandle(FlatRedBallServices.WindowHandle); mContextMenuStrip = new ContextMenuStrip(); mContextMenuStrip.Items.Add("-"); control.ContextMenuStrip = mContextMenuStrip; }
static GluxManager() { mCurrentElementHighlight = new ElementRuntimeHighlight(); mReloadIgnores = 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(); }