Skip to content

Commit

Permalink
DM: Add _g335_selectedDialogChoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent d7ff812 commit 3f1fee6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion engines/dm/dialog.cpp
Expand Up @@ -33,7 +33,9 @@

namespace DM {

DialogMan::DialogMan(DMEngine* vm) : _vm(vm) {}
DialogMan::DialogMan(DMEngine* vm) : _vm(vm) {
_g335_selectedDialogChoice = 0;
}

void DialogMan::f427_dialogDraw(char* msg1, char* msg2, char* choice1, char* choice2, char* choice3, char* choice4, bool screenDialog, bool clearScreen, bool fading) {
static Box constBox1 = Box(0, 223, 101, 125);
Expand Down
1 change: 1 addition & 0 deletions engines/dm/dialog.h
Expand Up @@ -33,6 +33,7 @@ namespace DM {
class DialogMan {
DMEngine *_vm;
public:
uint16 _g335_selectedDialogChoice; // @ G0335_ui_SelectedDialogChoice
explicit DialogMan(DMEngine *vm);
void f427_dialogDraw(char *msg1, char *msg2, char *choice1, char *choice2,
char *choice3, char *choice4, bool screenDialog, bool clearScreen, bool fading); // @ F0427_DIALOG_Draw
Expand Down
3 changes: 2 additions & 1 deletion engines/dm/eventman.cpp
Expand Up @@ -38,6 +38,7 @@
#include "projexpl.h"
#include "text.h"
#include "group.h"
#include "dialog.h"


namespace DM {
Expand Down Expand Up @@ -814,7 +815,7 @@ void EventManager::f380_processCommandQueue() {
return;
}
if ((cmdType >= k210_CommandClickOnDialogChoice_1) && (cmdType <= k213_CommandClickOnDialogChoice_4)) {
warning(false, "MISSING CODE:G0335_ui_SelectedDialogChoice = cmdType - (k210_CommandClickOnDialogChoice_1 - 1);");
_vm->_dialog->_g335_selectedDialogChoice = cmdType - (k210_CommandClickOnDialogChoice_1 - 1);
return;
}
if (cmdType == k215_CommandRestartGame) {
Expand Down

0 comments on commit 3f1fee6

Please sign in to comment.