Feature #308 ยป lcd_extra_ss_info.patch
userdata/LCD.xml (working copy) | ||
---|---|---|
<line>Freemem: $INFO[System.FreeMemory]</line>
|
||
<line>$INFO[System.ScreenWidth]x$INFO[System.ScreenHeight] $INFO[System.ScreenMode]</line>
|
||
</general>
|
||
<screensaver>
|
||
<screensaver1>
|
||
<line>$INFO[System.CurrentWindow]</line>
|
||
<line>$INFO[LCD.TimeWide21]</line>
|
||
<line>$INFO[LCD.TimeWide22]</line>
|
||
<line>CPU Temp: $INFO[System.CPUTemperature]</line>
|
||
</screensaver1>
|
||
<screensaver2>
|
||
<line>$INFO[System.CurrentWindow]</line>
|
||
<line>$INFO[LCD.TimeWide21]</line>
|
||
<line>$INFO[LCD.TimeWide22]</line>
|
||
<line>GPU Temp: $INFO[System.GPUTemperature]</line>
|
||
</screensaver2>
|
||
<screensaver3>
|
||
<line>$INFO[System.CurrentWindow]</line>
|
||
<line>$INFO[LCD.TimeWide21]</line>
|
||
<line>$INFO[LCD.TimeWide22]</line>
|
||
<line>HDD Temp: $INFO[system.hddtemperature]</line>
|
||
</screensaver3>
|
||
<screensaver4>
|
||
<line>$INFO[System.CurrentWindow]</line>
|
||
<line>$INFO[LCD.TimeWide21]</line>
|
||
<line>$INFO[LCD.TimeWide22]</line>
|
||
<line>Freemem: $INFO[System.FreeMemory]</line>
|
||
</screensaver>
|
||
</screensaver4>
|
||
<xbelaunch>
|
||
<line></line>
|
||
<line>Playing</line>
|
xbmc/Application.cpp (working copy) | ||
---|---|---|
else if (IsPlayingAudio())
|
||
g_lcd->Render(ILCD::LCD_MODE_MUSIC);
|
||
else if (IsInScreenSaver())
|
||
g_lcd->Render(ILCD::LCD_MODE_SCREENSAVER);
|
||
{
|
||
m_screenSaverStateTimer.Start();
|
||
if ( m_screenSaverStateTimer.GetElapsedSeconds() < 10 )
|
||
{
|
||
g_lcd->Render(ILCD::LCD_MODE_SCREENSAVER1);
|
||
}
|
||
else if ( m_screenSaverStateTimer.GetElapsedSeconds() > 10 && m_screenSaverStateTimer.GetElapsedSeconds() < 20 )
|
||
{
|
||
g_lcd->Render(ILCD::LCD_MODE_SCREENSAVER2);
|
||
}
|
||
else if ( m_screenSaverStateTimer.GetElapsedSeconds() > 20 && m_screenSaverStateTimer.GetElapsedSeconds() < 30 )
|
||
{
|
||
g_lcd->Render(ILCD::LCD_MODE_SCREENSAVER3);
|
||
}
|
||
else if ( m_screenSaverStateTimer.GetElapsedSeconds() > 30 && m_screenSaverStateTimer.GetElapsedSeconds() < 40 )
|
||
{
|
||
g_lcd->Render(ILCD::LCD_MODE_SCREENSAVER4);
|
||
}
|
||
else
|
||
{
|
||
g_lcd->Render(ILCD::LCD_MODE_SCREENSAVER1);
|
||
m_screenSaverStateTimer.Reset();
|
||
}
|
||
}
|
||
else
|
||
g_lcd->Render(ILCD::LCD_MODE_GENERAL);
|
||
... | ... | |
if (m_bScreenSave) // already running the screensaver
|
||
return;
|
||
if (!m_bScreenSave && m_screenSaverStateTimer.IsRunning())
|
||
m_screenSaverStateTimer.Stop();
|
||
if ( m_screenSaverTimer.GetElapsedSeconds() > g_guiSettings.GetInt("screensaver.time") * 60 )
|
||
ActivateScreenSaver();
|
||
}
|
xbmc/Application.h (working copy) | ||
---|---|---|
CStopWatch m_navigationTimer;
|
||
CStopWatch m_slowTimer;
|
||
CStopWatch m_screenSaverTimer;
|
||
CStopWatch m_screenSaverStateTimer;
|
||
CStopWatch m_shutdownTimer;
|
||
CFileItemPtr m_itemCurrentFile;
|
xbmc/utils/LCD.cpp (working copy) | ||
---|---|---|
{ // navigation mode
|
||
LoadMode(mode, LCD_MODE_NAVIGATION);
|
||
}
|
||
else if (strcmpi(mode->Value(), "screensaver") == 0)
|
||
{ // screensaver mode
|
||
LoadMode(mode, LCD_MODE_SCREENSAVER);
|
||
// screensaver mode
|
||
else if (strcmpi(mode->Value(), "screensaver1") == 0)
|
||
{
|
||
LoadMode(mode, LCD_MODE_SCREENSAVER1);
|
||
}
|
||
else if (strcmpi(mode->Value(), "screensaver2") == 0)
|
||
{
|
||
LoadMode(mode, LCD_MODE_SCREENSAVER2);
|
||
}
|
||
else if (strcmpi(mode->Value(), "screensaver3") == 0)
|
||
{
|
||
LoadMode(mode, LCD_MODE_SCREENSAVER3);
|
||
}
|
||
else if (strcmpi(mode->Value(), "screensaver4") == 0)
|
||
{
|
||
LoadMode(mode, LCD_MODE_SCREENSAVER4);
|
||
}
|
||
else if (strcmpi(mode->Value(), "xbelaunch") == 0)
|
||
{ // xbe launch mode
|
||
LoadMode(mode, LCD_MODE_XBE_LAUNCH);
|
xbmc/utils/LCD.h (working copy) | ||
---|---|---|
LCD_MODE_MUSIC,
|
||
LCD_MODE_VIDEO,
|
||
LCD_MODE_NAVIGATION,
|
||
LCD_MODE_SCREENSAVER,
|
||
LCD_MODE_SCREENSAVER1,
|
||
LCD_MODE_SCREENSAVER2,
|
||
LCD_MODE_SCREENSAVER3,
|
||
LCD_MODE_SCREENSAVER4,
|
||
LCD_MODE_XBE_LAUNCH,
|
||
LCD_MODE_MAX
|
||
};
|