private GetLargeStringUIText ( string s, Point p, float sz, Color c, GTA.Font f, bool cnt ) : List |
||
s | string | The input string |
p | Point | The draw point |
sz | float | The font size |
c | Color | The text color |
f | GTA.Font | The font to draw |
cnt | bool | Whether or not to center the text |
Результат | List |
private List<UIText> GetLargeStringUIText(string s, Point p, float sz, Color c, Font f, bool cnt)
{
var x = 0F;
var text = new List<UIText>();
foreach (var chunk in Split(s, 99)) {
var size = GTAFuncs.GetTextWidth(s, f, sz);
text.Add(new UIText(chunk, new Point(p.X + Convert.ToInt32(x), p.Y), sz, c, f, cnt));
x += UI.WIDTH*size;
}
return text;
}