Outline text outline text and draw backing
In order to help players spot the difference between outlined text and non-outlined text, we now outline the text outline text itself (if text outline is enabled, of course). But drawing the outline alone doesn't stand out enough, so we have to draw a solid backing against the text as well, in order to properly show the contrast.
This commit is contained in:
parent
9c226ab5aa
commit
c02bd9235f
|
@ -5,6 +5,7 @@
|
|||
#include "Entity.h"
|
||||
#include "FileSystemUtils.h"
|
||||
#include "Graphics.h"
|
||||
#include "GraphicsUtil.h"
|
||||
#include "KeyPoll.h"
|
||||
#include "MakeAndPlay.h"
|
||||
#include "Map.h"
|
||||
|
@ -710,19 +711,28 @@ static void menurender(void)
|
|||
}
|
||||
break;
|
||||
case OFFSET+4:
|
||||
{
|
||||
const char* text;
|
||||
|
||||
graphics.bigprint(-1, 40, "Text Outline", tr, tg, tb, true);
|
||||
graphics.Print(-1, 75, "Disables outline on game text.", tr, tg, tb, true);
|
||||
// FIXME: Maybe do an outlined print instead? -flibit
|
||||
|
||||
FillRect(graphics.backBuffer, 0, 84, 320, 10, tr, tg, tb);
|
||||
|
||||
if (!graphics.notextoutline)
|
||||
{
|
||||
graphics.Print(-1, 85, "Text outlines are ON.", tr, tg, tb, true);
|
||||
text = "Text outlines are ON.";
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.Print(-1, 85, "Text outlines are OFF.", tr / 2, tg / 2, tb / 2, true);
|
||||
text = "Text outlines are OFF.";
|
||||
}
|
||||
|
||||
graphics.bprint(-1, 85, text, 255, 255, 255, true);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
#undef OFFSET
|
||||
|
|
Loading…
Reference in New Issue