/[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.11 by mhawlisch, Wed Feb 26 14:48:39 2003 UTC revision 1.12 by mhawlisch, Wed Feb 26 16:15:44 2003 UTC
# Line 500  namespace Line 500  namespace
500          InGameMusicButton() : TextButton("", this) { update(); }          InGameMusicButton() : TextButton("", this) { update(); }
501      };      };
502    
503        class SkipSolvedButton : public TextButton {
504            void update() {
505                if (options::SkipSolvedLevels)
506                    set_text("Skip solved levels");
507                else
508                    set_text("Play all levels");
509            }
510            void on_action(Widget *) {
511                options::SkipSolvedLevels = ! options::SkipSolvedLevels;
512                update();
513            }
514        public:
515            SkipSolvedButton() : TextButton("", this) { update(); }
516        };
517    
518      class AlphaShadowButton : public TextButton {      class AlphaShadowButton : public TextButton {
519          void update() {          void update() {
520  //             if (lua::get_num("AlphaShadows") > 0)  //             if (lua::get_num("AlphaShadows") > 0)
# Line 570  OptionsMenu::OptionsMenu() : back(new Te Line 585  OptionsMenu::OptionsMenu() : back(new Te
585      vlist.add (new InGameMusicButton);      vlist.add (new InGameMusicButton);
586      vlist.add (new StereoButton);      vlist.add (new StereoButton);
587  //            add(new AlphaShadowButton, Rect(0,50,150,40));  //            add(new AlphaShadowButton, Rect(0,50,150,40));
588        vlist.add (new SkipSolvedButton);
589      vlist.add(back);      vlist.add(back);
590  }  }
591    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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