<controls>
<control type="button" id="10">
<description>trigger</description>
- <onfocus>ReplaceWindow(Home)</onfocus>
+ <onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<visible>!Skin.HasSetting(Use_Startup_Playlist)</visible>
<control type="button" id="10">
<description>trigger with startup Playlist</description>
<onfocus>XBMC.PlayMedia($INFO[Skin.String(Startup_Playlist_Path)])</onfocus>
- <onfocus>ReplaceWindow(Home)</onfocus>
+ <onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<visible>Skin.HasSetting(Use_Startup_Playlist)</visible>
</control>
<include>CommonBackground</include>
</controls>
-</window>
\ No newline at end of file
+</window>
{ "alarmpos", SYSTEM_ALARM_POS },
{ "isinhibit", SYSTEM_ISINHIBIT },
{ "hasshutdown", SYSTEM_HAS_SHUTDOWN },
- { "haspvr", SYSTEM_HAS_PVR }};
+ { "haspvr", SYSTEM_HAS_PVR },
+ { "startupwindow", SYSTEM_STARTUP_WINDOW }};
const infomap system_param[] = {{ "hasalarm", SYSTEM_HAS_ALARM },
{ "hascoreid", SYSTEM_HAS_CORE_ID },
case SYSTEM_CURRENT_WINDOW:
return g_localizeStrings.Get(g_windowManager.GetFocusedWindow());
break;
+ case SYSTEM_STARTUP_WINDOW:
+ strLabel.Format("%i", g_guiSettings.GetInt("lookandfeel.startupwindow"));
+ break;
case SYSTEM_CURRENT_CONTROL:
{
CGUIWindow *window = g_windowManager.GetWindow(g_windowManager.GetFocusedWindow());
#define SYSTEM_ISINHIBIT 184
#define SYSTEM_HAS_SHUTDOWN 185
#define SYSTEM_HAS_PVR 186
+#define SYSTEM_STARTUP_WINDOW 187
#define NETWORK_IP_ADDRESS 190
#define NETWORK_MAC_ADDRESS 191
str = CAddonMgr::Get().GetExtValue(ext->configuration, "@debugging");
m_debugging = !strcmp(str.c_str(), "true");
- m_onlyAnimateToHome = true;
LoadStartupWindows(ext);
m_Version = 2.11;
}
m_startupWindows.push_back(CStartupWindow(WINDOW_FILES, "7"));
m_startupWindows.push_back(CStartupWindow(WINDOW_SETTINGS_MENU, "5"));
m_startupWindows.push_back(CStartupWindow(WINDOW_WEATHER, "8"));
- m_onlyAnimateToHome = true;
return true;
}
int CSkinInfo::GetFirstWindow() const
{
int startWindow = GetStartWindow();
- if (HasSkinFile("Startup.xml") && (!m_onlyAnimateToHome || startWindow == WINDOW_HOME))
+ if (HasSkinFile("Startup.xml"))
startWindow = WINDOW_STARTUP_ANIM;
return startWindow;
}
CStdString m_currentAspect;
std::vector<CStartupWindow> m_startupWindows;
- bool m_onlyAnimateToHome;
bool m_debugging;
};