// update our auto-scrolling as necessary
if (m_autoScrollTime && m_lines.size() > m_itemsPerPage)
{
- if (!m_autoScrollCondition || g_infoManager.GetBool(m_autoScrollCondition, m_parentID))
+ if (!m_autoScrollCondition || g_infoManager.GetBoolValue(m_autoScrollCondition))
{
if (m_lastRenderTime)
m_autoScrollDelayTime += currentTime - m_lastRenderTime;
scroll->Attribute("delay", &m_autoScrollDelay);
scroll->Attribute("time", &m_autoScrollTime);
if (scroll->FirstChild())
- m_autoScrollCondition = g_infoManager.TranslateString(scroll->FirstChild()->ValueStr());
+ m_autoScrollCondition = g_infoManager.Register(scroll->FirstChild()->ValueStr(), GetParentID());
int repeatTime;
if (scroll->Attribute("repeat", &repeatTime))
m_autoScrollRepeatAnim = new CAnimation(CAnimation::CreateFader(100, 0, repeatTime, 1000));
TransformMatrix m_cachedTextMatrix;
// autoscrolling
- int m_autoScrollCondition;
+ unsigned int m_autoScrollCondition;
int m_autoScrollTime; // time to scroll 1 line (ms)
int m_autoScrollDelay; // delay before scroll (ms)
unsigned int m_autoScrollDelayTime; // current offset into the delay