- implemented help and credits menu for Blood.

This commit is contained in:
Christoph Oelckers 2019-12-01 21:44:50 +01:00
parent 1cfe5be130
commit eb668180c8
5 changed files with 8 additions and 3 deletions

View file

@ -181,7 +181,7 @@ protected:
void PostDraw()
{
itemBloodQAV->Draw();
//itemBloodQAV->Draw();
}
};

View file

@ -102,6 +102,7 @@ bool DImageScrollerMenu::MenuEvent(int mkey, bool fromcontroller)
if (pageTransition.current) pageTransition.current->origin = { 0,0 };
return DMenu::MenuEvent(mkey, fromcontroller);
case MKEY_Left:
if (pageTransition.previous == nullptr)
{

View file

@ -644,6 +644,7 @@ static void ParseImageScroller(FScanner &sc)
FImageScrollerDescriptor *desc = new FImageScrollerDescriptor;
desc->mType = MDESC_ImageScroller;
desc->mMenuName = sc.String;
desc->mClass = NAME_None;
ParseImageScrollerBody(sc, desc);
bool scratch = ReplaceMenu(sc, desc);

View file

@ -126,7 +126,7 @@ public:
const char* localize(const char* str)
{
return *str == '$' ? GetString(str + 1, nullptr) : str;
return *str == '$' ? operator()(str + 1) : str;
}
};

View file

@ -116,11 +116,12 @@ LISTMENU "IngameMenu"
centermenu
Linespacing 17
NativeTextItem "$MNU_NEWGAME", "n", "EpisodeMenu"
NativeTextItem "$MNU_MULTIPLAYER", "m", "MultiMenu"
NativeTextItem "$MNU_OPTIONS", "o", "OptionsMenu"
NativeTextItem "$MNU_SAVEGAME", "s", "SaveGameMenu"
NativeTextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
NativeTextItem "$MNU_HELP", "h", "HelpMenu"
NativeTextItem "$MNU_CREDITS", "c", "CreditsMenu"
NativeTextItem "$MNU_ENDGAME", "e", "QuitToMenu"
NativeTextItem "$MNU_QUITGAME", "q", "QuitMenu"
}
ifgame(ShadowWarrior)
@ -419,6 +420,7 @@ ImageScroller "HelpMenu"
}
ifgame(blood)
{
class "Blood.ImageScrollerMenu"
// The duplication here is to integrate the alternating versions of HELP3
QAVAnimationItem "Help4.qav"
QAVAnimationItem "Help5.qav"
@ -530,6 +532,7 @@ ImageScroller "CreditsMenu"
}
ifgame(blood)
{
class "Blood.ImageScrollerMenu"
QAVAnimationItem "Credits.qav"
}
ifgame(ShadowWarrior)