mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed TextListComponent marquee running at 2x speed.
Adjusted marquee constants.
This commit is contained in:
parent
a093890604
commit
003af694b2
|
@ -84,9 +84,9 @@ protected:
|
||||||
virtual void onCursorChanged(const CursorState& state);
|
virtual void onCursorChanged(const CursorState& state);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const int MARQUEE_DELAY = 900;
|
static const int MARQUEE_DELAY = 2000;
|
||||||
static const int MARQUEE_SPEED = 16;
|
static const int MARQUEE_SPEED = 8;
|
||||||
static const int MARQUEE_RATE = 3;
|
static const int MARQUEE_RATE = 1;
|
||||||
|
|
||||||
int mMarqueeOffset;
|
int mMarqueeOffset;
|
||||||
int mMarqueeTime;
|
int mMarqueeTime;
|
||||||
|
@ -277,7 +277,6 @@ void TextListComponent<T>::update(int deltaTime)
|
||||||
Eigen::Vector2f textSize = mFont->sizeText(text);
|
Eigen::Vector2f textSize = mFont->sizeText(text);
|
||||||
|
|
||||||
//it's long enough to marquee
|
//it's long enough to marquee
|
||||||
mMarqueeTime += deltaTime;
|
|
||||||
if(textSize.x() - mMarqueeOffset > mSize.x() - 12 - (mAlignment != ALIGN_CENTER ? mHorizontalMargin : 0))
|
if(textSize.x() - mMarqueeOffset > mSize.x() - 12 - (mAlignment != ALIGN_CENTER ? mHorizontalMargin : 0))
|
||||||
{
|
{
|
||||||
mMarqueeTime += deltaTime;
|
mMarqueeTime += deltaTime;
|
||||||
|
|
Loading…
Reference in a new issue