Make colours look better.

This commit is contained in:
UnknownShadow200 2016-05-26 13:12:17 +10:00
parent ec773449a9
commit 5ea268f7db
4 changed files with 6 additions and 6 deletions

View file

@ -24,9 +24,9 @@ namespace ClassicalSharp {
GetTextParts( args.Text );
float textX = x;
Paint backBrush = GetOrCreateBrush( FastColour.Black );
for( int i = 0; i < parts.Count; i++ ) {
TextPart part = parts[i];
Paint backBrush = GetOrCreateBrush( part.BackCol );
TextPart part = parts[i];
Paint foreBrush = GetOrCreateBrush( part.ForeCol );
if( args.UseShadow )
c.DrawText( part.Text, textX + Offset, y + Offset, backBrush );

View file

@ -31,9 +31,9 @@ namespace ClassicalSharp {
GetTextParts( args.Text );
float textX = x;
Brush backBrush = GetOrCreateBrush( FastColour.Black );
for( int i = 0; i < parts.Count; i++ ) {
TextPart part = parts[i];
Brush backBrush = GetOrCreateBrush( part.BackCol );
Brush foreBrush = GetOrCreateBrush( part.ForeCol );
if( args.UseShadow )
g.DrawString( part.Text, args.Font, backBrush, textX + Offset, y + Offset, format );

View file

@ -154,11 +154,11 @@ namespace ClassicalSharp {
}
for( int i = 0; i <= 9; i++ ) {
Colours['0' + i] = FastColour.GetHexEncodedCol( i, 170, 85 );
Colours['0' + i] = FastColour.GetHexEncodedCol( i, 191, 64 );
BackColours['0' + i] = FastColour.GetHexEncodedCol( i, 42, 21 );
}
for( int i = 10; i <= 15; i++) {
Colours['a' + i - 10] = FastColour.GetHexEncodedCol( i, 170, 85 );
Colours['a' + i - 10] = FastColour.GetHexEncodedCol( i, 191, 64 );
Colours['A' + i - 10] = Colours['a' + i - 10];
BackColours['a' + i - 10] = FastColour.GetHexEncodedCol( i, 42, 21 );
BackColours['A' + i - 10] = BackColours['a' + i - 10];

View file

@ -41,7 +41,7 @@ namespace ClassicalSharp.Gui {
readonly Font font;
FastColour caretCol;
static FastColour backColour = new FastColour( 30, 30, 30, 220 );
static FastColour backColour = new FastColour( 45, 45, 45, 220 );
public override void Render( double delta ) {
api.Texturing = false;
int y = Y, x = X;