コード例 #1
0
ファイル: StrategyDrawer.cs プロジェクト: wanwei/sc2
        public void DrawTitle(int x, string text, Color color)
        {
            Shape_Label label = new Shape_Label();

            label.X     = x;
            label.Y     = -20;
            label.Text  = text;
            label.Color = color;
            label.Font  = new Font("宋体", 10f, FontStyle.Regular);
            drawer.DrawShape(label);
        }
コード例 #2
0
 public void Refresh()
 {
     drawer.ClearPriceShapes();
     drawer.ClearShapes();
     if (title != null)
     {
         drawer.DrawShape(title);
     }
     for (int i = 0; i < priceShapes.Count; i++)
     {
         DrawShape(priceShapes[i]);
     }
 }