mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 23:42:21 +03: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:
@@ -3457,7 +3457,7 @@ void editorrender( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, ent
|
|||||||
}
|
}
|
||||||
dwgfx.footerrect.y = 230+ed.roomnamehide;
|
dwgfx.footerrect.y = 230+ed.roomnamehide;
|
||||||
SDL_BlitSurface(dwgfx.footerbuffer, NULL, dwgfx.backBuffer, &dwgfx.footerrect);
|
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(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);
|
dwgfx.bprint(268,222, "("+help.String(ed.levx+1)+","+help.String(ed.levy+1)+")",196, 196, 255 - help.glow, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1576,9 +1576,9 @@ void gamerender(Graphics& dwgfx, mapclass& map, Game& game, entityclass& obj, Ut
|
|||||||
if (map.finalmode)
|
if (map.finalmode)
|
||||||
{
|
{
|
||||||
map.glitchname = map.getglitchname(game.roomx, game.roomy);
|
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{
|
}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;
|
dwgfx.footerrect.y = 230;
|
||||||
SDL_BlitSurface(dwgfx.footerbuffer, NULL, dwgfx.backBuffer, &dwgfx.footerrect);
|
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.rprint(5, 231,help.String(game.coins), 255 - help.glow/2, 255 - help.glow/2, 196, true);
|
||||||
//dwgfx.drawhuetile(311, 230, 48, 1);
|
//dwgfx.drawhuetile(311, 230, 48, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user