/[enigma]/enigma/src/menus.cc
ViewVC logotype

Diff of /enigma/src/menus.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by reallysoft, Mon Jun 30 12:31:03 2003 UTC revision 1.49 by reallysoft, Sun Jul 6 12:41:35 2003 UTC
# Line 909  namespace Line 909  namespace
909  //----------------------------------------------------------------------  //----------------------------------------------------------------------
910  // Options menu  // Options menu
911  //----------------------------------------------------------------------  //----------------------------------------------------------------------
912  OptionsMenu::OptionsMenu()  OptionsMenu::OptionsMenu(px::Surface *background_)
913  : back(new TextButton("Back", this)),  : back(new TextButton("Back", this)),
914    fullscreen(new FullscreenButton),    fullscreen(new FullscreenButton),
915    m_restartinfo (new Label(""))    m_restartinfo (new Label("")),
916      background(background_)
917  {  {
918      const int spacing     = 5;      const int spacing     = 5;
919      const int big_spacing = 60;      const int big_spacing = 60;
# Line 992  void OptionsMenu::tick (double) Line 993  void OptionsMenu::tick (double)
993  void OptionsMenu::draw_background(px::GC &gc)  void OptionsMenu::draw_background(px::GC &gc)
994  {  {
995      video::SetCaption("Enigma - Options Menu");      video::SetCaption("Enigma - Options Menu");
996      blit(gc, 0,0, enigma::GetImage("menu_bg"));  //     blit(gc, 0,0, enigma::GetImage("menu_bg"));
997        blit(gc, 0,0, background);
998  }  }
999    
1000    
# Line 1223  MainMenu::on_action(Widget *w) Line 1225  MainMenu::on_action(Widget *w)
1225      } else if (w == credits) {      } else if (w == credits) {
1226          show_credits ();          show_credits ();
1227      } else if (w == options) {      } else if (w == options) {
1228          GUI_OptionsMenu();          GUI_OptionsMenu(enigma::GetImage("menu_bg"));
1229      } else if (w == leveled) {      } else if (w == leveled) {
1230          editor::Run();          editor::Run();
1231      } else if (w == quit) {      } else if (w == quit) {
1232          Menu::quit();          Menu::quit();
1233      } else      } else
1234          return;          return;
1235      invalidate_all();      invalidate_all();
1236  }  }
1237    
# Line 1369  enigma::GUI_MainMenu(LevelPack */*lp*/, Line 1371  enigma::GUI_MainMenu(LevelPack */*lp*/,
1371  }  }
1372    
1373  void  void
1374  enigma::GUI_OptionsMenu()  enigma::GUI_OptionsMenu(Surface *background)
1375  {  {
1376      Screen *scr = video::GetScreen();      Screen *scr = video::GetScreen();
1377      OptionsMenu m;      OptionsMenu m(background);
1378      m.center(scr);      m.center(scr);
1379      m.manage(scr);      m.manage(scr);
1380  }  }

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26