- Extended ACS's 'n' print format specifier to allow printing some other info than the player's name.
It will use negative indices for this. Currently supported strings are level name, level lump name and skill name. - Extended skill definitions so that printable name and image lump name are separate fields so that a printable name can be specified for Doom, too. SVN r2294 (trunk)
This commit is contained in:
parent
d719671579
commit
14fc5516a8
8 changed files with 105 additions and 10 deletions
|
|
@ -477,9 +477,16 @@ void M_StartupSkillMenu(const char *playerclass)
|
|||
{
|
||||
FSkillInfo &skill = AllSkills[i];
|
||||
|
||||
SkillSelectMenu[i].name = skill.MenuName;
|
||||
SkillSelectMenu[i].fulltext = !skill.MenuNameIsLump;
|
||||
SkillSelectMenu[i].alphaKey = skill.MenuNameIsLump? skill.Shortcut : tolower(SkillSelectMenu[i].name[0]);
|
||||
if (skill.PicName.Len() != 0)
|
||||
{
|
||||
SkillSelectMenu[i].name = skill.PicName;
|
||||
SkillSelectMenu[i].fulltext = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
SkillSelectMenu[i].name = skill.MenuName;
|
||||
SkillSelectMenu[i].fulltext = true;
|
||||
}
|
||||
SkillSelectMenu[i].textcolor = skill.GetTextColor();
|
||||
SkillSelectMenu[i].alphaKey = skill.Shortcut;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue