private static void Print_Main2(string line, int x, int y, I3Color color, double centeringRate) { // centeringRate: // 0.0 == 右寄せ (最初の文字の左側面が x になる) // 0.5 == 中央寄せ // 1.0 == 左寄せ (最後の文字の右側面が x になる) x -= SCommon.ToInt(DDFontUtils.GetDrawStringWidth(line, _font) * centeringRate); DDFontUtils.DrawString(x, y, line, _font, false, color); }
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); } }