mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Fixed multiple issues where the wrong navigation sound would play.
This commit is contained in:
parent
755cb62017
commit
354da078a3
|
@ -92,6 +92,9 @@ private:
|
|||
void onCursorChanged(const CursorState& state) override;
|
||||
void onScroll() override
|
||||
{
|
||||
if (mGamelistView)
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
|
||||
else
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
}
|
||||
|
||||
|
|
|
@ -76,8 +76,10 @@ public:
|
|||
private:
|
||||
void onScroll() override
|
||||
{
|
||||
if (!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND))
|
||||
if (mGamelistView)
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
|
||||
else
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
}
|
||||
void onCursorChanged(const CursorState& state) override;
|
||||
bool isScrolling() const override { return List::isScrolling(); }
|
||||
|
|
|
@ -86,8 +86,11 @@ private:
|
|||
void onShow() override { mLoopTime = 0; }
|
||||
void onScroll() override
|
||||
{
|
||||
if (!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND))
|
||||
if (mGamelistView &&
|
||||
!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND))
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
|
||||
else if (!mGamelistView)
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
}
|
||||
void onCursorChanged(const CursorState& state) override;
|
||||
bool isScrolling() const override { return List::isScrolling(); }
|
||||
|
@ -126,6 +129,7 @@ private:
|
|||
std::shared_ptr<Font> mFont;
|
||||
std::string mIndicators;
|
||||
std::string mCollectionIndicators;
|
||||
bool mGamelistView;
|
||||
bool mLegacyMode;
|
||||
bool mFadeAbovePrimary;
|
||||
LetterCase mLetterCase;
|
||||
|
@ -161,6 +165,7 @@ TextListComponent<T>::TextListComponent()
|
|||
, mFont {Font::get(FONT_SIZE_MEDIUM)}
|
||||
, mIndicators {"symbols"}
|
||||
, mCollectionIndicators {"symbols"}
|
||||
, mGamelistView {std::is_same_v<T, FileData*> ? true : false}
|
||||
, mLegacyMode {false}
|
||||
, mFadeAbovePrimary {false}
|
||||
, mLetterCase {LetterCase::NONE}
|
||||
|
|
Loading…
Reference in a new issue