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) |
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 |
|
|