DREAMWEB: 'showOuterPad' ported to C++

This commit is contained in:
Bertrand Augereau 2011-12-03 15:22:11 +01:00
parent 38098a0d0c
commit a02457a122
5 changed files with 10 additions and 20 deletions

View File

@ -343,6 +343,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'sparky',
'singlekey',
'showkeypad',
'showouterpad',
'buttonone',
'buttontwo',
'buttonthree',

View File

@ -9152,22 +9152,6 @@ doqk:
data.byte(kGetback) = 1;
}
void DreamGenContext::showOuterPad() {
STACK_CHECK;
di = (36+112)-3;
bx = (72)-4;
ds = data.word(kTempgraphics);
al = 1;
ah = 0;
showFrame();
di = (36+112)+74;
bx = (72)+76;
ds = data.word(kTempgraphics);
al = 37;
ah = 0;
showFrame();
}
void DreamGenContext::dumpKeypad() {
STACK_CHECK;
di = (36+112)-3;

View File

@ -697,7 +697,7 @@ public:
void useElevator5();
void useElevator4();
void useElevator1();
void useElevator3();
void greyscaleSum();
void useElevator2();
void keyboardRead();
void getOpenedSize();
@ -811,7 +811,7 @@ public:
void getRidOfTemp();
void dumpSymbol();
void intro2Text();
void showOuterPad();
void interviewer();
void getKeyAndLogo();
void selectOb();
void usePlinth();
@ -851,7 +851,6 @@ public:
void showMonk();
void diaryKeyN();
void set16ColPalette();
void interviewer();
void purgeAnItem();
void madman();
void enableSoundInt();
@ -997,7 +996,7 @@ public:
void openFile();
void showPuzText();
void incRyanPage();
void greyscaleSum();
void useElevator3();
void findExObject();
void clearChanges();
void useChurchHole();

View File

@ -223,5 +223,10 @@ void DreamGenContext::buttonPress(uint8 buttonId) {
}
}
void DreamGenContext::showOuterPad() {
showFrame(tempGraphics(), kKeypadx-3, kKeypady-4, 1, 0);
showFrame(tempGraphics(), kKeypadx+74, kKeypady+76, 37, 0);
}
} /*namespace dreamgen */

View File

@ -384,6 +384,7 @@
void sparky(ReelRoutine &routine);
void singleKey(uint8 key, uint16 x, uint16 y);
void showKeypad();
void showOuterPad();
void buttonOne();
void buttonTwo();
void buttonThree();