DREAMWEB: Port 'showopbox', 'showsaveops', 'showloadops' to C++

This commit is contained in:
Filippos Karapetis 2011-12-08 11:59:48 +02:00
parent 87e60f8430
commit 2a2c9d5951
6 changed files with 23 additions and 61 deletions

View File

@ -596,9 +596,11 @@ generator = cpp(context, "DreamGen", blacklist = [
'showicon',
'showkeypad',
'showleftpage',
'showloadops',
'showmainops',
'showman',
'showmenu',
'showopbox',
'showoutermenu',
'showouterpad',
'showpanel',
@ -608,6 +610,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'showreelframe',
'showrightpage',
'showryanpage',
'showsaveops',
'showseconduse',
'showsymbol',
'showtime',

View File

@ -89,6 +89,7 @@ public:
Frame *tempGraphics2();
Frame *tempGraphics3();
void showArrows();
void showOpBox();
// from vgafades.cpp
uint8 *mainPalette();

View File

@ -6256,64 +6256,6 @@ void DreamGenContext::getNamePos() {
_add(bx, ax);
}
void DreamGenContext::showOpBox() {
STACK_CHECK;
ds = data.word(kTempgraphics);
di = (60);
bx = (52);
al = 0;
ah = 0;
showFrame();
ds = data.word(kTempgraphics);
di = (60);
bx = (52)+55;
al = 4;
ah = 0;
showFrame();
}
void DreamGenContext::showLoadOps() {
STACK_CHECK;
ds = data.word(kTempgraphics);
di = (60)+128+4;
bx = (52)+12;
al = 1;
ah = 0;
showFrame();
ds = data.word(kTempgraphics);
di = (60)+176+2;
bx = (52)+60-4;
al = 5;
ah = 0;
showFrame();
di = (60)+104;
bx = (52)+14;
al = 55;
dl = 101;
printMessage();
}
void DreamGenContext::showSaveOps() {
STACK_CHECK;
ds = data.word(kTempgraphics);
di = (60)+128+4;
bx = (52)+12;
al = 1;
ah = 0;
showFrame();
ds = data.word(kTempgraphics);
di = (60)+176+2;
bx = (52)+60-4;
al = 5;
ah = 0;
showFrame();
di = (60)+104;
bx = (52)+14;
al = 54;
dl = 101;
printMessage();
}
void DreamGenContext::selectSlot() {
STACK_CHECK;
_cmp(data.byte(kCommandtype), 244);

View File

@ -561,7 +561,6 @@ public:
void useCashCard();
void moneyPoke();
void doSomeTalk();
void showSaveOps();
void introMonks1();
void resetLocation();
void introMonks2();
@ -660,7 +659,6 @@ public:
void openOb();
void drawItAll();
void useStereo();
void showOpBox();
void dumpCurrent();
void showDiaryKeys();
void rollEndCredits2();
@ -711,7 +709,6 @@ public:
void createName();
void getPersonText();
void parser();
void showLoadOps();
void underTextLine();
void showNames();
void emergencyPurge();

View File

@ -3785,4 +3785,21 @@ void DreamBase::showArrows() {
showFrame(tempGraphics(), 280, 14, 2, 0);
}
void DreamBase::showOpBox() {
showFrame(tempGraphics(), kOpsx, kOpsy, 0, 0);
showFrame(tempGraphics(), kOpsx, kOpsy + 55, 4, 0);
}
void DreamGenContext::showLoadOps() {
showFrame(tempGraphics(), kOpsx + 128 + 4, kOpsy + 12, 1, 0);
showFrame(tempGraphics(), kOpsx + 176 + 2, kOpsy + 60 - 4, 5, 0);
printMessage(kOpsx + 104, kOpsy + 14, 55, 101, (101 & 1));
}
void DreamGenContext::showSaveOps() {
showFrame(tempGraphics(), kOpsx + 128 + 4, kOpsy + 12, 1, 0);
showFrame(tempGraphics(), kOpsx + 176 + 2, kOpsy + 60 - 4, 6, 0);
printMessage(kOpsx + 104, kOpsy + 14, 54, 101, (101 & 1));
}
} // End of namespace DreamGen

View File

@ -553,5 +553,7 @@
void getTime();
void set16ColPalette();
void examineInventory();
void showSaveOps();
void showLoadOps();
#endif