コード例 #1
0
ファイル: TextDrawTest.cs プロジェクト: Xalphox/SampSharp
        public static void Testa(BasePlayer player)
        {
            var d = new TextDraw(new Vector2(100, 100), "Diploma", TextDrawFont.Diploma);
            var p = new TextDraw(new Vector2(100, 140), "Pricedown", TextDrawFont.Pricedown);
            var n = new TextDraw(new Vector2(100, 180), "Normal", TextDrawFont.Normal);

            p.Show(player);
            d.Show(player);
            n.Show(player);
        }
コード例 #2
0
 /// <summary>
 ///     Initializes a new instance of the ClickTextDrawEventArgs class.
 /// </summary>
 /// <param name="player">The player.</param>
 /// <param name="textDraw">The text draw.</param>
 public ClickTextDrawEventArgs(BasePlayer player, TextDraw textDraw)
 {
     Player = player;
     TextDraw = textDraw;
 }