DREAMWEB: 'showMenu' ported to C++

This commit is contained in:
Bertrand Augereau 2011-12-03 15:46:43 +01:00
parent 47ffd3fed8
commit a92a4414e6
5 changed files with 10 additions and 19 deletions

View file

@ -255,6 +255,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'loadroomssample',
'printlogo',
'loadmenu',
'showmenu',
'usemenu',
'usemon',
'scrollmonitor',

View file

@ -9170,23 +9170,6 @@ void DreamGenContext::dumpMenu() {
multiDump();
}
void DreamGenContext::showMenu() {
STACK_CHECK;
_inc(data.byte(kMenucount));
_cmp(data.byte(kMenucount), 37*2);
if (!flags.z())
goto menuframeok;
data.byte(kMenucount) = 0;
menuframeok:
al = data.byte(kMenucount);
_shr(al, 1);
ah = 0;
di = (80+40);
bx = (60);
ds = data.word(kTempgraphics);
showFrame();
}
void DreamGenContext::enterSymbol() {
STACK_CHECK;
data.byte(kManisoffscreen) = 1;

View file

@ -651,7 +651,7 @@ public:
void femaleFan();
void identifyOb();
void useLighter();
void showMenu();
void runEndSeq();
void usePoolReader();
void useOpenBox();
void clearBuffers();
@ -676,7 +676,6 @@ public:
void getTime();
void candles1();
void fadeDOS();
void runEndSeq();
void loadKeypad();
void findText1();
void isRyanHolding();

View file

@ -2731,6 +2731,13 @@ void DreamGenContext::loadMenu() {
loadIntoTemp2("DREAMWEB.G07");
}
void DreamGenContext::showMenu() {
++data.byte(kMenucount);
if (data.byte(kMenucount) == 37*2)
data.byte(kMenucount) = 0;
showFrame(tempGraphics(), kMenux, kMenuy, data.byte(kMenucount) / 2, 0);
}
void DreamGenContext::useMenu() {
getRidOfReels();
loadMenu();

View file

@ -304,6 +304,7 @@
void fadeupMonFirst();
void printLogo();
void loadMenu();
void showMenu();
void useMenu();
void useMon();
void scrollMonitor();