public NodeEffectCircle(GameUI myGameUI, int myDepth, VectorInt myPos) : base(myGameUI, myDepth) { CurrentAbsolute = myPos; Path = new Linear(new VectorInt(10, 10), new VectorInt(32, 32), new VectorDouble(1, 1), false); pen = new Pen(Color.Goldenrod, 1.5f); }
/// <summary> /// Simple Constructor. Display a random message /// Linear Path (diagonal), Arial 12, Yellow, Shaddow. /// </summary> /// <param name="myGameUI">GameUI</param> /// <param name="myDepth">Depth Z-order</param> /// <param name="Text">Display Message</param> /// <param name="Start">StartPosition</param> public NodeEffectText(GameUI myGameUI, int myDepth, string[] Text, VectorInt Start) : base(myGameUI, myDepth) { CurrentAbsolute = Start; font = myGameUI.ResourceFactory[ResourceID.GameMiscFontDefault].DataAsFont; brush = myGameUI.ResourceFactory[ResourceID.GameMiscFontDefaultBrush].DataAsBrush; brushShaddow = myGameUI.ResourceFactory[ResourceID.GameMiscFontDefaultBrushShaddow].DataAsBrush; Path = new Linear(CurrentAbsolute, new VectorInt(20, 20), new VectorDouble(1, 1), false); text = RandomHelper.Select<string>(Text); IsVisible = true; UpdateSize(); }
/// <summary> /// Simple Constructor. Display a random message /// Linear Path (diagonal), Arial 12, Yellow, Shaddow. /// </summary> /// <param name="myGameUI">GameUI</param> /// <param name="myDepth">Depth Z-order</param> /// <param name="Text">Display Message</param> /// <param name="Start">StartPosition</param> public NodeEffectText(GameUI myGameUI, int myDepth, string[] Text, VectorInt Start) : base(myGameUI, myDepth) { CurrentAbsolute = Start; font = new Font("Arial", 12, FontStyle.Bold); brush = new SolidBrush(Color.Yellow); brushShaddow = new SolidBrush(Color.FromArgb(80, 80, 80)); Path = new Linear(CurrentAbsolute, new VectorInt(20, 20), new VectorDouble(1, 1), false); text = RandomHelper.Select<string>(Text); IsVisible = true; UpdateSize(); }