mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
Fix names from last commit
This commit is contained in:
parent
5ae49bf768
commit
983a5433ab
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user