Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Settings/Settings.h
- Revision:
- 74:6827b43c689d
- Parent:
- 73:d1aea9b8da92
- Child:
- 82:3211b31e9421
diff -r d1aea9b8da92 -r 6827b43c689d Settings/Settings.h --- a/Settings/Settings.h Sat May 23 21:50:33 2020 +0000 +++ b/Settings/Settings.h Sat May 23 22:49:45 2020 +0000 @@ -8,7 +8,7 @@ #include "Sprites.h" /** Enum for diffent menu parts*/ -enum SettingsParts {contrast, controls, sound_fx }; +enum SettingsParts {contrast, controls, sound_fx, music }; /** Enum for diffent control settings parts, joystick and accelerometer*/ enum ControlsParts {joy, acc}; @@ -16,22 +16,34 @@ /** Enum for diffent sound setting parts*/ enum SoundParts {on, off}; +/** Enum for diffent music setting parts*/ +enum MusicParts {music_on, music_off}; + /** scroll_orderStruct * @brief Struct hold differnt settings orders */ struct scroll_order_setting { + SettingsParts part_previous; /**< previous settings part */ + SettingsParts part_displayed; /**< Displayed settings part */ SettingsParts part_next; /**< Next settings part */ - SettingsParts part_displayed; /**< Displayed settings part */ }; -/** On/off Struct - * @brief Struct hold differnt settings orders +/** On/off sound fx Struct + * @brief Struct hold differnt sound fx orders */ struct on_off_order { SoundParts part_next; /**< Next onoff part */ SoundParts part_displayed; /**< Displayed onoff part */ }; +/** On/off music Struct + * @brief Struct hold differnt music orders + */ +struct music_on_off_order { + MusicParts part_next; /**< Next onoff part */ + MusicParts part_displayed; /**< Displayed onoff part */ +}; + /** Controll_orderStruct * @brief Struct hold differnt controls orders */ @@ -84,6 +96,11 @@ */ SoundParts get_sound_method(); + /** Return the music method that set in setting menu + * @return music_method_ + */ + MusicParts get_music_method(); + /** Return the setting part that is displayed * @return get_displayed_settings_part_ */ @@ -102,6 +119,9 @@ /** Controls whether sound fx are on or not */ SoundParts sound_method_; + /** Controls whether music are on or not */ + MusicParts music_method_; + /** The part of setting that is displayed */ SettingsParts displayed_settings_part_;