Beispiel #1
0
 private static void Print_Main2(string line, int x, int y, I3Color color)
 {
     if (P_FontSize == -1)
     {
         DX.DrawString(x, y, line, DDUtils.GetColor(color));
     }
     else
     {
         DDFontUtils.DrawString(x, y, line, Font, false, color);
     }
 }
Beispiel #2
0
        public void DrawWall()
        {
            DDCurtain.DrawCurtain();

            if (this.WallColor != null)
            {
                DX.DrawBox(0, 0, DDConsts.Screen_W, DDConsts.Screen_H, DDUtils.GetColor(this.WallColor.Value), 1);
            }

            if (this.WallPicture != null)
            {
                DrawWallPicture();
                DDCurtain.DrawCurtain(this.WallCurtain);
            }
        }
Beispiel #3
0
        private static void Print_Main(string line, int x, int y)
        {
            if (Extra.BorderWidth != 0)
            {
                for (int xc = -Extra.BorderWidth; xc <= Extra.BorderWidth; xc++)
                {
                    for (int yc = -Extra.BorderWidth; yc <= Extra.BorderWidth; yc++)
                    {
                        DX.DrawString(x + xc, y + yc, line, DDUtils.GetColor(Extra.BorderColor));
                    }
                }
            }

            DX.DrawString(x, y, line, DDUtils.GetColor(Extra.Color));
        }
Beispiel #4
0
        public static void DrawString(int x, int y, string str, DDFont font, bool tategakiFlag, I3Color color, I3Color edgeColor)
        {
            if (edgeColor.R != -1)
            {
                const int EDGE_WIDTH = 2;
                const int EDGE_STEP  = EDGE_WIDTH;

                for (int xc = -EDGE_WIDTH; xc <= EDGE_WIDTH; xc += EDGE_STEP)
                {
                    for (int yc = -EDGE_WIDTH; yc <= EDGE_WIDTH; yc += EDGE_STEP)
                    {
                        DX.DrawStringToHandle(x + xc, y + yc, str, DDUtils.GetColor(edgeColor), font.GetHandle(), DDUtils.GetColor(new I3Color(0, 0, 0)), tategakiFlag ? 1 : 0);
                    }
                }
            }
            DX.DrawStringToHandle(x, y, str, DDUtils.GetColor(color), font.GetHandle(), DDUtils.GetColor(new I3Color(0, 0, 0)), tategakiFlag ? 1 : 0);
        }
Beispiel #5
0
 private static void Print_Main2(string line, int x, int y, I3Color color)
 {
     DX.DrawString(x, y, line, DDUtils.GetColor(color));
 }
Beispiel #6
0
 public static void DrawString(int x, int y, string str, DDFont font, bool tategakiFlag, I3Color color, I3Color edgeColor)
 {
     DX.DrawStringToHandle(x, y, str, DDUtils.GetColor(color), font.GetHandle(), DDUtils.GetColor(edgeColor), tategakiFlag ? 1 : 0);
 }