aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2013-07-23 12:34:58 +0200
committeruruk2013-07-23 12:34:58 +0200
commit050c60c1926d3bfc1955c642381e00bdf224e861 (patch)
treeaf023835ee538ae1f376bbdf02e7515818aac0fc
parenta16dc4c558510f8404f2af9d41f5512adba7be1b (diff)
downloadscummvm-rg350-050c60c1926d3bfc1955c642381e00bdf224e861.tar.gz
scummvm-rg350-050c60c1926d3bfc1955c642381e00bdf224e861.tar.bz2
scummvm-rg350-050c60c1926d3bfc1955c642381e00bdf224e861.zip
AVALANCHE: Implement menuset::update().
-rw-r--r--engines/avalanche/dropdown2.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/engines/avalanche/dropdown2.cpp b/engines/avalanche/dropdown2.cpp
index bdb81484f4..6ee7499a14 100644
--- a/engines/avalanche/dropdown2.cpp
+++ b/engines/avalanche/dropdown2.cpp
@@ -191,6 +191,26 @@ void menuset::create(char t, Common::String n, char alttrig, func dw, func dc) {
}
void menuset::update() {
+ const bytefield menuspace = {0, 0, 80, 9};
+ byte fv, page_, savecp;
+
+ /*setactivepage(3);
+ setfillstyle(1, _dr->menu_b);
+ bar(0, 0, 640, 9);*/
+ _dr->_vm->_graph.drawBar(0, 0, 640, 9, _dr->menu_b);
+
+ savecp = _dr->_vm->_gyro.cp;
+ _dr->_vm->_gyro.cp = 3;
+
+ for (fv = 1; fv <= howmany; fv ++)
+ ddms[fv].display();
+
+ for (page_ = 0; page_ <= 1; page_ ++)
+ _dr->_vm->_trip.getset[page_].remember(menuspace);
+
+ _dr->_vm->_gyro.cp = savecp;
+
+
warning("STUB: Dropdown::menuset::update()");
}
@@ -616,8 +636,8 @@ void Dropdown::standard_bar() { /* Standard menu bar */
ddm_m.create('O', "Objects", '\30', &Avalanche::Dropdown::ddm__objects, &Avalanche::Dropdown::do__objects); /* here... */
ddm_m.create('P', "People", '\31', &Avalanche::Dropdown::ddm__people, &Avalanche::Dropdown::do__people);
ddm_m.create('W', "With", '\21', &Avalanche::Dropdown::ddm__with, &Avalanche::Dropdown::do__with);
- ddm_m.update();
+ ddm_m.update();
}