mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
CON: Add EVENT_DISPLAYOVERHEADMAPTEXT.
Set RETURN to any non-zero value to disable hardcoded display of text. If you wish to replace the hardcoded text, you must check that userdef[].overhead_on == 2 yourself. git-svn-id: https://svn.eduke32.com/eduke32@6258 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0d6842800b
commit
ffc7de9911
3 changed files with 5 additions and 1 deletions
|
@ -122,6 +122,7 @@ enum GameEvent_t {
|
||||||
EVENT_DISPLAYACCESS,
|
EVENT_DISPLAYACCESS,
|
||||||
EVENT_MOVESECTOR,
|
EVENT_MOVESECTOR,
|
||||||
EVENT_MOVEEFFECTORS,
|
EVENT_MOVEEFFECTORS,
|
||||||
|
EVENT_DISPLAYOVERHEADMAPTEXT,
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
EVENT_ANIMATEALLSPRITES,
|
EVENT_ANIMATEALLSPRITES,
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -698,6 +698,7 @@ const char *EventNames[MAXEVENTS] =
|
||||||
"EVENT_DISPLAYACCESS",
|
"EVENT_DISPLAYACCESS",
|
||||||
"EVENT_MOVESECTOR",
|
"EVENT_MOVESECTOR",
|
||||||
"EVENT_MOVEEFFECTORS",
|
"EVENT_MOVEEFFECTORS",
|
||||||
|
"EVENT_DISPLAYOVERHEADMAPTEXT",
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
"EVENT_ANIMATEALLSPRITES",
|
"EVENT_ANIMATEALLSPRITES",
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1059,7 +1059,9 @@ void G_DisplayRest(int32_t smoothratio)
|
||||||
|
|
||||||
G_RestoreInterpolations();
|
G_RestoreInterpolations();
|
||||||
|
|
||||||
if (ud.overhead_on == 2)
|
int32_t const textret = VM_OnEvent(EVENT_DISPLAYOVERHEADMAPTEXT, g_player[screenpeek].ps->i, screenpeek);
|
||||||
|
|
||||||
|
if (textret == 0 && ud.overhead_on == 2)
|
||||||
{
|
{
|
||||||
const int32_t a = (ud.screen_size > 0) ? 147 : 179;
|
const int32_t a = (ud.screen_size > 0) ? 147 : 179;
|
||||||
minitext(5, a+6, g_volumeNames[ud.volume_number], 0, 2+8+16+256);
|
minitext(5, a+6, g_volumeNames[ud.volume_number], 0, 2+8+16+256);
|
||||||
|
|
Loading…
Reference in a new issue