Add read-only userdefs music_episode and music_level.

TODO: Exposing whether any music is currently playing at all. (No, it is not ud.musictoggle.)

git-svn-id: https://svn.eduke32.com/eduke32@6622 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-29 11:13:59 +00:00
parent 969c9b77d6
commit 0d1137be5d
3 changed files with 6 additions and 0 deletions

View file

@ -1293,6 +1293,8 @@ const memberlabel_t UserdefsLabels[]=
{ "slidebar_paldisabled", USERDEFS_SLIDEBAR_PALDISABLED, 0, 0 },
{ "user_map", USERDEFS_USER_MAP, 0, 0 },
{ "m_user_map", USERDEFS_M_USER_MAP, 0, 0 },
{ "music_episode", USERDEFS_MUSIC_EPISODE, 0, 0 },
{ "music_level", USERDEFS_MUSIC_LEVEL, 0, 0 },
{ NULL, -1, 0, 0 } // END OF LIST
};

View file

@ -581,6 +581,8 @@ enum UserdefsLabel_t
USERDEFS_SLIDEBAR_PALDISABLED,
USERDEFS_USER_MAP,
USERDEFS_M_USER_MAP,
USERDEFS_MUSIC_EPISODE,
USERDEFS_MUSIC_LEVEL,
USERDEFS_END
};

View file

@ -212,6 +212,8 @@ int32_t __fastcall VM_GetUserdef(int32_t labelNum)
case USERDEFS_MENUTITLE_PAL: labelNum = ud.menutitle_pal; break;
case USERDEFS_SLIDEBAR_PALSELECTED: labelNum = ud.slidebar_palselected; break;
case USERDEFS_SLIDEBAR_PALDISABLED: labelNum = ud.slidebar_paldisabled; break;
case USERDEFS_MUSIC_EPISODE: labelNum = ud.music_episode; break;
case USERDEFS_MUSIC_LEVEL: labelNum = ud.music_level; break;
default: labelNum = -1; break;
}