mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
newgamechoices: usercontent flag
git-svn-id: https://svn.eduke32.com/eduke32@7998 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6fa8a17c44
commit
345497b271
3 changed files with 11 additions and 1 deletions
|
@ -192,6 +192,7 @@ enum gametokens
|
||||||
T_NAME,
|
T_NAME,
|
||||||
T_LOCKED,
|
T_LOCKED,
|
||||||
T_HIDDEN,
|
T_HIDDEN,
|
||||||
|
T_USERCONTENT,
|
||||||
};
|
};
|
||||||
|
|
||||||
void G_HandleSpecialKeys(void)
|
void G_HandleSpecialKeys(void)
|
||||||
|
@ -5337,6 +5338,7 @@ static int parsedefinitions_game(scriptfile *pScript, int firstPass)
|
||||||
{ "locked", T_LOCKED },
|
{ "locked", T_LOCKED },
|
||||||
{ "hidden", T_HIDDEN },
|
{ "hidden", T_HIDDEN },
|
||||||
{ "choice", T_CHOICE },
|
{ "choice", T_CHOICE },
|
||||||
|
{ "usercontent", T_USERCONTENT },
|
||||||
};
|
};
|
||||||
static const tokenlist newGameSubchoiceTokens[] =
|
static const tokenlist newGameSubchoiceTokens[] =
|
||||||
{
|
{
|
||||||
|
@ -5696,6 +5698,11 @@ static int parsedefinitions_game(scriptfile *pScript, int firstPass)
|
||||||
entry.flags |= MGE_Hidden;
|
entry.flags |= MGE_Hidden;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case T_USERCONTENT:
|
||||||
|
{
|
||||||
|
entry.flags |= MGE_UserContent;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1788,7 +1788,9 @@ void Menu_Init(void)
|
||||||
++s;
|
++s;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s == 0)
|
if (entry.flags & MGE_UserContent)
|
||||||
|
e_meo.linkID = MENU_USERMAP;
|
||||||
|
else if (s == 0)
|
||||||
e_meo.linkID = MENU_SKILL;
|
e_meo.linkID = MENU_SKILL;
|
||||||
|
|
||||||
++e;
|
++e;
|
||||||
|
|
|
@ -504,6 +504,7 @@ enum MenuGameplayEntryFlags
|
||||||
{
|
{
|
||||||
MGE_Locked = 1u<<0u,
|
MGE_Locked = 1u<<0u,
|
||||||
MGE_Hidden = 1u<<1u,
|
MGE_Hidden = 1u<<1u,
|
||||||
|
MGE_UserContent = 1u<<2u,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct MenuGameplayEntry
|
typedef struct MenuGameplayEntry
|
||||||
|
|
Loading…
Reference in a new issue