Fix names from last commit

This commit is contained in:
UnknownShadow200 2018-01-16 06:14:59 +11:00
parent 5ae49bf768
commit 983a5433ab
3 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ namespace ClassicalSharp {
}
void DrawPart(FastBitmap dst, ref DrawTextArgs args, int x, int y, bool shadowCol) {
FastColour col = GetCol('f');
FastColour col = Cols['f'];
if (shadowCol)
col = BlackTextShadows ? FastColour.Black : FastColour.Scale(col, 0.25f);
FastColour lastCol = col;

View File

@ -163,7 +163,7 @@ namespace ClassicalSharp {
parts.Clear();
if (EmptyText(value)) {
} else if (value.IndexOf('&') == -1) {
parts.Add(new TextPart(value, GetCol('f')));
parts.Add(new TextPart(value, Cols['f']));
} else {
SplitText(value);
}

View File

@ -61,10 +61,10 @@ namespace ClassicalSharp.Entities {
using (Bitmap bmp = IDrawer2D.CreatePow2Bitmap(size))
{
drawer.SetBitmap(bmp);
args.Text = "&\xFF" + Utils.StripColours(args.Text);
IDrawer2D.Cols['\xFF'] = new FastColour(80, 80, 80);
args.Text = "&\0" + Utils.StripColours(args.Text);
IDrawer2D.Cols[0] = new FastColour(80, 80, 80);
game.Drawer2D.DrawText(ref args, 3, 3);
IDrawer2D.Cols['\xFF'] = default(FastColour);
IDrawer2D.Cols[0] = default(FastColour);
args.Text = DisplayName;
game.Drawer2D.DrawText(ref args, 0, 0);