1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

Draw room names with text outline

This makes it easier to see if you have a translucent room name
background.
This commit is contained in:
Info Teddy 2020-01-24 20:56:05 -08:00 committed by Ethan Lee
parent df83c2d494
commit 2f85c2a8dc
2 changed files with 4 additions and 4 deletions

View File

@ -3457,7 +3457,7 @@ void editorrender( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, ent
}
dwgfx.footerrect.y = 230+ed.roomnamehide;
SDL_BlitSurface(dwgfx.footerbuffer, NULL, dwgfx.backBuffer, &dwgfx.footerrect);
dwgfx.Print(5,231+ed.roomnamehide,ed.level[ed.levx+(ed.maxwidth*ed.levy)].roomname, 196, 196, 255 - help.glow, true);
dwgfx.bprint(5,231+ed.roomnamehide,ed.level[ed.levx+(ed.maxwidth*ed.levy)].roomname, 196, 196, 255 - help.glow, true);
dwgfx.bprint(4, 222, "SPACE ^ SHIFT ^", 196, 196, 255 - help.glow, false);
dwgfx.bprint(268,222, "("+help.String(ed.levx+1)+","+help.String(ed.levy+1)+")",196, 196, 255 - help.glow, false);
}

View File

@ -1576,9 +1576,9 @@ void gamerender(Graphics& dwgfx, mapclass& map, Game& game, entityclass& obj, Ut
if (map.finalmode)
{
map.glitchname = map.getglitchname(game.roomx, game.roomy);
dwgfx.Print(5, 231, map.glitchname, 196, 196, 255 - help.glow, true);
dwgfx.bprint(5, 231, map.glitchname, 196, 196, 255 - help.glow, true);
}else{
dwgfx.Print(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
dwgfx.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
}
}
@ -2837,7 +2837,7 @@ void towerrender(Graphics& dwgfx, Game& game, mapclass& map, entityclass& obj, U
}
dwgfx.footerrect.y = 230;
SDL_BlitSurface(dwgfx.footerbuffer, NULL, dwgfx.backBuffer, &dwgfx.footerrect);
dwgfx.Print(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
dwgfx.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
//dwgfx.rprint(5, 231,help.String(game.coins), 255 - help.glow/2, 255 - help.glow/2, 196, true);
//dwgfx.drawhuetile(311, 230, 48, 1);