/// <summary> /// Create the on-chart ellipse /// </summary> /// <param name="chart">Chart for ellipse</param> /// <param name="left_bottom">The left-bottom corner point</param> /// <param name="size">The size of ellipse</param> /// <param name="color">The color of ellipse</param> public ChartEllipse(Chart chart, DPoint left_bottom, DSize size, Color color) : base(chart) { Flags = ChartObject.Rectangle | ChartObject.MouseMovable; LeftBottom = left_bottom; Size = size; Color = color; }
/// <summary> /// Create simple square point on chart /// </summary> /// <param name="chart">Chart for point</param> /// <param name="center">The center position of this point, in real coordinates</param> /// <param name="color">The color of this point</param> /// <param name="size">The size of this point, in screen coordinates</param> public ChartPoint(Chart chart, DPoint center, Color color, DSize size) : base(chart) { ScreenSizeMode = true; Size = size; Center = center; Color = color; }
private void ToggleSize(HUDTextButton sender, HUDButtonEventArgs e) { _size = SCCMLevelData.SIZES[(SCCMLevelData.SIZES.IndexOf(_size) + 1) % SCCMLevelData.SIZES.Length]; if (_size == SCCMLevelData.SIZES[0]) { _view = FlatAlign9.CC; } RefreshControls(); }
public LevelEditorConfigPanel(SCCMLevelData data) : base() { _data = data; _id = _data.OnlineID; _name = _data.Name; _size = _data.Size; _view = _data.View; _geometry = _data.Geometry; _music = data.Music; }
/// <summary> /// Create the on-chart ellipse /// </summary> /// <param name="chart">Chart for ellipse</param> /// <param name="left_bottom">The left-bottom corner point</param> /// <param name="size">The size of ellipse</param> public ChartEllipse(Chart chart, DPoint left_bottom, DSize size) : this(chart, left_bottom, size, Color.Black) { }
/// <summary> /// Create the on-chart rectangle /// </summary> /// <param name="chart">Chart for rectangle</param> /// <param name="left_bottom">The left-bottom corner point</param> /// <param name="size">The size of rectangle</param> public ChartRectangle(Chart chart, DPoint left_bottom, DSize size) : this(chart, left_bottom, size, Color.Black) { }