mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-03-03 15:31:11 +00:00
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:
parent
969c9b77d6
commit
0d1137be5d
3 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue