|
RhythmGame 1.4.3
|
The general variables for the game that all screens and the engine should know about and respect. Profile-specific. More...
#include <Vars.h>


Properties | |
| double | noteScreenTimeMillis = 1000 |
| The time in milliseconds a note takes to travel from the top of the screen to the judgement line. | |
| bool | laneCoverOn = false |
| Whether lane cover is enabled. | |
| double | laneCoverRatio = 0.1 |
| The ratio of the screen that is covered by lane cover (0-1). | |
| bool | liftOn = false |
| Whether lift is enabled. | |
| double | liftRatio = 0.1 |
| The ratio of the screen that is lifted (0-1). | |
| bool | hiddenOn = false |
| Whether hidden is enabled. | |
| double | hiddenRatio = 0.1 |
| The ratio of the screen that is covered by hidden (0-1). | |
| bool | bgaOn |
| Whether BGA is enabled. | |
| int | bgaMode = 1 |
| LR2-style BGA draw mode. | |
| int | bgaSize = 0 |
| LR2-style BGA size option. | |
| bool | scoreGraphEnabled = true |
| Whether gameplay score graphs are enabled. | |
| int | ghostPosition = 0 |
| LR2-style ghost position option. | |
| int | replayType = 0 |
| The replay type selected by replay buttons. | |
| int | arenaOverlayHintVersion = 0 |
| Version of the profile-wide Arena overlay placement hint already acknowledged by the player. | |
| resource_managers::note_order_algorithm::NoteOrderAlgorithm | noteOrderAlgorithm |
| The note order algorithm used for reordering notes in charts. | |
| resource_managers::note_order_algorithm::NoteOrderAlgorithm | noteOrderAlgorithmP2 |
| The note order algorithm used for player 2 side in DP charts. | |
| resource_managers::hi_speed_fix::HiSpeedFix | hiSpeedFix |
| The hi-speed fix mode. | |
| resource_managers::dp_options::DpOptions | dpOptions |
| The enabled DP options. | |
| QString | gaugeType = "FC" |
| The gauge type. | |
| resource_managers::gauge_mode::GaugeMode | gaugeMode |
| The gauge mode. | |
| QString | bottomShiftableGauge = "AEASY" |
| The bottom shiftable gauge type. | |
| QString | avatar = "image://avatar/mascot.png" |
| The avatar picture of the user. | |
| QString | name = "Default" |
| The display name of the player. | |
| QString | language = QLocale::system().bcp47Name() |
| The language/locale selected by the player. | |
| double | offset = 0.0 |
| The visual offset in milliseconds to apply during gameplay. | |
| resource_managers::score_target::ScoreTarget scoreTarget READ | getScoreTarget |
| The primary score target type to prefer. | |
| double | targetScoreFraction = 8.0 / 9.0 |
| The target score fraction when scoreTarget is Fraction. | |
| double | defaultTargetScoreFraction = 0.9 |
| The default custom target fraction used by LR2's user-defined target option. | |
| resource_managers::select_sort_mode::SelectSortMode | selectSortMode |
| The shared music-select sort mode. | |
| resource_managers::select_keymode_filter::SelectKeymodeFilter | selectKeymodeFilter |
| The shared music-select keymode filter. | |
| QString | bgm |
| The folder with select, decide and main screen music. | |
| QString | bgmPath |
| The full path to the selected BGM folder. | |
| QString | soundset |
| The soundset to use. | |
| QString | soundsetPath |
| The full paths to the selected soundset folder. | |
| QString | webApiUrl |
| The web API uri. | |
| QString | websiteBaseUrl = "https://rhythmgame.eu" |
| QString | tableListUrl = defaultTableListUrl |
| The URL used to fetch the community table list in the Browse panel of Table Settings. | |
| qml_components::OnlineRankingModel::Provider rankingProvider READ | getRankingProvider |
| Preferred online ranking provider. | |
The general variables for the game that all screens and the engine should know about and respect. Profile-specific.
GeneralVars are saved to generalVars.json in the profile directory. All changes are saved after a short delay and flushed when the profile closes.
|
explicit |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| auto resource_managers::GeneralVars::getArenaOverlayHintVersion | ( | ) | const -> int |
| auto resource_managers::GeneralVars::getAvailableBgms | ( | ) | const |
| auto resource_managers::GeneralVars::getAvailableSoundsets | ( | ) | const |
| auto resource_managers::GeneralVars::getAvatar | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getBgaMode | ( | ) | const -> int |
| auto resource_managers::GeneralVars::getBgaOn | ( | ) | const -> bool |
| auto resource_managers::GeneralVars::getBgaSize | ( | ) | const -> int |
| auto resource_managers::GeneralVars::getBgm | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getBgmPath | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getBottomShiftableGauge | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getDefaultTargetScoreFraction | ( | ) | const -> double |
| auto resource_managers::GeneralVars::getDpOptions | ( | ) | const -> DpOptions |
| auto resource_managers::GeneralVars::getGaugeMode | ( | ) | const -> GaugeMode |
| auto resource_managers::GeneralVars::getGaugeType | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getGhostPosition | ( | ) | const -> int |
| auto resource_managers::GeneralVars::getHiddenOn | ( | ) | const -> bool |
| auto resource_managers::GeneralVars::getHiddenRatio | ( | ) | const -> double |
| auto resource_managers::GeneralVars::getHiSpeedFix | ( | ) | const -> HiSpeedFix |
| auto resource_managers::GeneralVars::getLaneCoverOn | ( | ) | const -> bool |
| auto resource_managers::GeneralVars::getLaneCoverRatio | ( | ) | const -> double |
| auto resource_managers::GeneralVars::getLanguage | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getLiftOn | ( | ) | const -> bool |
| auto resource_managers::GeneralVars::getLiftRatio | ( | ) | const -> double |
| auto resource_managers::GeneralVars::getName | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getNoteOrderAlgorithm | ( | ) | const -> NoteOrderAlgorithm |
| auto resource_managers::GeneralVars::getNoteOrderAlgorithmP2 | ( | ) | const -> NoteOrderAlgorithm |
| auto resource_managers::GeneralVars::getNoteScreenTimeMillis | ( | ) | const -> double |
| auto resource_managers::GeneralVars::getOffset | ( | ) | const -> double |
| auto resource_managers::GeneralVars::getRankingProvider | ( | ) | const -> qml_components::OnlineRankingModel::Provider |
| auto resource_managers::GeneralVars::getReplayType | ( | ) | const -> int |
| auto resource_managers::GeneralVars::getScoreGraphEnabled | ( | ) | const -> bool |
| auto resource_managers::GeneralVars::getScoreTarget | ( | ) | const -> ScoreTarget |
| auto resource_managers::GeneralVars::getSelectKeymodeFilter | ( | ) | const -> SelectKeymodeFilter |
| auto resource_managers::GeneralVars::getSelectSortMode | ( | ) | const -> SelectSortMode |
| auto resource_managers::GeneralVars::getSoundset | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getSoundsetPath | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getTableListUrl | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getTargetScoreFraction | ( | ) | const -> double |
| auto resource_managers::GeneralVars::getWebApiUrl | ( | ) | const -> QString |
| auto resource_managers::GeneralVars::getWebsiteBaseUrl | ( | ) | const -> QString |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| void resource_managers::GeneralVars::resetArenaOverlayHintVersion | ( | ) |
| void resource_managers::GeneralVars::resetAvatar | ( | ) |
| void resource_managers::GeneralVars::resetBgaMode | ( | ) |
| void resource_managers::GeneralVars::resetBgaOn | ( | ) |
| void resource_managers::GeneralVars::resetBgaSize | ( | ) |
| void resource_managers::GeneralVars::resetBgm | ( | ) |
| void resource_managers::GeneralVars::resetBottomShiftableGauge | ( | ) |
| void resource_managers::GeneralVars::resetDefaultTargetScoreFraction | ( | ) |
| void resource_managers::GeneralVars::resetDpOptions | ( | ) |
| void resource_managers::GeneralVars::resetGaugeMode | ( | ) |
| void resource_managers::GeneralVars::resetGaugeType | ( | ) |
| void resource_managers::GeneralVars::resetGhostPosition | ( | ) |
| void resource_managers::GeneralVars::resetHiddenOn | ( | ) |
| void resource_managers::GeneralVars::resetHiddenRatio | ( | ) |
| void resource_managers::GeneralVars::resetHiSpeedFix | ( | ) |
| void resource_managers::GeneralVars::resetLaneCoverOn | ( | ) |
| void resource_managers::GeneralVars::resetLaneCoverRatio | ( | ) |
| void resource_managers::GeneralVars::resetLanguage | ( | ) |
| void resource_managers::GeneralVars::resetLiftOn | ( | ) |
| void resource_managers::GeneralVars::resetLiftRatio | ( | ) |
| void resource_managers::GeneralVars::resetName | ( | ) |
| void resource_managers::GeneralVars::resetNoteOrderAlgorithm | ( | ) |
| void resource_managers::GeneralVars::resetNoteOrderAlgorithmP2 | ( | ) |
| void resource_managers::GeneralVars::resetNoteScreenTimeMillis | ( | ) |
| void resource_managers::GeneralVars::resetOffset | ( | ) |
| void resource_managers::GeneralVars::resetRankingProvider | ( | ) |
| void resource_managers::GeneralVars::resetReplayType | ( | ) |
| void resource_managers::GeneralVars::resetScoreGraphEnabled | ( | ) |
| void resource_managers::GeneralVars::resetScoreTarget | ( | ) |
| void resource_managers::GeneralVars::resetSelectKeymodeFilter | ( | ) |
| void resource_managers::GeneralVars::resetSelectSortMode | ( | ) |
| void resource_managers::GeneralVars::resetSoundset | ( | ) |
| void resource_managers::GeneralVars::resetTableListUrl | ( | ) |
| void resource_managers::GeneralVars::resetTargetScoreFraction | ( | ) |
| void resource_managers::GeneralVars::resetWebsiteBaseUrl | ( | ) |
|
signal |
|
signal |
|
signal |
|
signal |
| void resource_managers::GeneralVars::setArenaOverlayHintVersion | ( | int | value | ) |
| void resource_managers::GeneralVars::setAvatar | ( | QString | value | ) |
| void resource_managers::GeneralVars::setBgaMode | ( | int | value | ) |
| void resource_managers::GeneralVars::setBgaOn | ( | bool | value | ) |
| void resource_managers::GeneralVars::setBgaSize | ( | int | value | ) |
| void resource_managers::GeneralVars::setBgm | ( | const QString & | value | ) |
| void resource_managers::GeneralVars::setBottomShiftableGauge | ( | const QString & | value | ) |
| void resource_managers::GeneralVars::setDefaultTargetScoreFraction | ( | double | value | ) |
| void resource_managers::GeneralVars::setDpOptions | ( | DpOptions | value | ) |
| void resource_managers::GeneralVars::setGaugeMode | ( | GaugeMode | value | ) |
| void resource_managers::GeneralVars::setGaugeType | ( | QString | value | ) |
| void resource_managers::GeneralVars::setGhostPosition | ( | int | value | ) |
| void resource_managers::GeneralVars::setHiddenOn | ( | bool | value | ) |
| void resource_managers::GeneralVars::setHiddenRatio | ( | double | value | ) |
| void resource_managers::GeneralVars::setHiSpeedFix | ( | HiSpeedFix | value | ) |
| void resource_managers::GeneralVars::setLaneCoverOn | ( | bool | value | ) |
| void resource_managers::GeneralVars::setLaneCoverRatio | ( | double | value | ) |
| void resource_managers::GeneralVars::setLanguage | ( | QString | value | ) |
| void resource_managers::GeneralVars::setLiftOn | ( | bool | value | ) |
| void resource_managers::GeneralVars::setLiftRatio | ( | double | value | ) |
| void resource_managers::GeneralVars::setName | ( | QString | value | ) |
| void resource_managers::GeneralVars::setNoteOrderAlgorithm | ( | NoteOrderAlgorithm | value | ) |
| void resource_managers::GeneralVars::setNoteOrderAlgorithmP2 | ( | NoteOrderAlgorithm | value | ) |
| void resource_managers::GeneralVars::setNoteScreenTimeMillis | ( | double | value | ) |
| void resource_managers::GeneralVars::setOffset | ( | double | value | ) |
| void resource_managers::GeneralVars::setRankingProvider | ( | qml_components::OnlineRankingModel::Provider | value | ) |
| void resource_managers::GeneralVars::setReplayType | ( | int | value | ) |
| void resource_managers::GeneralVars::setScoreGraphEnabled | ( | bool | value | ) |
| void resource_managers::GeneralVars::setScoreTarget | ( | ScoreTarget | value | ) |
| void resource_managers::GeneralVars::setSelectKeymodeFilter | ( | SelectKeymodeFilter | value | ) |
| void resource_managers::GeneralVars::setSelectSortMode | ( | SelectSortMode | value | ) |
| void resource_managers::GeneralVars::setSoundset | ( | QString | value | ) |
| void resource_managers::GeneralVars::setTableListUrl | ( | const QString & | value | ) |
| void resource_managers::GeneralVars::setTargetScoreFraction | ( | double | value | ) |
| void resource_managers::GeneralVars::setWebsiteBaseUrl | ( | const QString & | value | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
read |
Version of the profile-wide Arena overlay placement hint already acknowledged by the player.
|
readwrite |
The avatar picture of the user.
Combine it with qml_components::ProgramSettings::avatarPath to get the full path to the avatar picture.
|
readwrite |
LR2-style BGA draw mode.
0 is OFF, 1 is NORMAL, 2 is AUTOPLAY/REPLAY only. Default skin may use the simpler bgaOn facade.
|
readwrite |
Whether BGA is enabled.
Compatibility facade over bgaMode. Setting true selects normal BGA draw mode, setting false selects off.
|
readwrite |
LR2-style BGA size option.
0 is NORMAL, 1 is EXTEND. RhythmGame skins may use their own theme variables for BGA geometry and ignore this.
|
readwrite |
The folder with select, decide and main screen music.
getAvailableBgms(). Skins are supposed to load files named select.<ext>,
|
read |
The full path to the selected BGM folder.
|
read |
The bottom shiftable gauge type.
Only relevant if gaugeMode is SelectToUnder. Determines the lowest gauge that will be enabled during gameplay.
|
read |
The default custom target fraction used by LR2's user-defined target option.
This is separate from targetScoreFraction, which represents the currently active gameplay target when scoreTarget is Fraction.
|
read |
The enabled DP options.
|
read |
The gauge mode.
Determines the set of gauges that the player will play with.
|
readwrite |
The gauge type.
How it works depends on gaugeMode.
|
write |
Preferred online ranking provider.
|
write |
The primary score target type to prefer.
|
readwrite |
LR2-style ghost position option.
0 is OFF, 1-3 are LR2 ghost types A-C.
|
readwrite |
Whether hidden is enabled.
Hidden makes notes invisible at the end of its travel down the playfield.
|
readwrite |
The ratio of the screen that is covered by hidden (0-1).
If hiddenOn is false, this has no effect.
|
readwrite |
The hi-speed fix mode.
|
readwrite |
Whether lane cover is enabled.
Lane cover makes notes hidden at the beginning of its travel down the playfield.
|
readwrite |
The ratio of the screen that is covered by lane cover (0-1).
If laneCoverOn is false, this has no effect.
|
readwrite |
The language/locale selected by the player.
|
readwrite |
Whether lift is enabled.
Lifts the judgement line up from the bottom of the playfield.
|
readwrite |
The ratio of the screen that is lifted (0-1).
If liftOn is false, this has no effect. note Modifying this should not affect how long a note is visible.
|
readwrite |
The display name of the player.
|
read |
The note order algorithm used for reordering notes in charts.
|
read |
The note order algorithm used for player 2 side in DP charts.
|
read |
The time in milliseconds a note takes to travel from the top of the screen to the judgement line.
Note travel time in milliseconds. Must be finite and at least 1. Invalid assignments leave the current value unchanged.
|
readwrite |
The visual offset in milliseconds to apply during gameplay.
|
readwrite |
The replay type selected by replay buttons.
0 newest, 1 best score, 2 best clear, 3 best combo.
|
read |
Whether gameplay score graphs are enabled.
|
read |
The shared music-select keymode filter.
|
readwrite |
The shared music-select sort mode.
|
readwrite |
The soundset to use.
Corresponds to a folder in the soundsets/ directory in the assets folder. To get the full path to the soundset, use the soundsetPath property. Skins are supposed to respect the soundset setting by loading sound files from the selected soundset folder and playing them at appropriate events. Current supported events:
It is perfectly legal to use those sounds in different ways but this is the canonical meaning that users will expect.
|
read |
The full paths to the selected soundset folder.
|
readwrite |
The URL used to fetch the community table list in the Browse panel of Table Settings.
Defaults to the RhythmGame table list endpoint.
|
read |
The target score fraction when scoreTarget is Fraction.
A value between 0.0 and 1.0 representing the target score fraction. For example, 0.888... for 88.888% (AAA).
|
read |
The web API uri.
This is used for online features such as score submission and fetching online scores. It should include the protocol (e.g. "http://").
|
readwrite |