Kodi Community Forum

Full Version: System.Platfom additional checks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Also available (missing in wiki)

System.Platform.ios
System.Platform.osx
System.Platform.atv2

I'm not able to add them to wiki myself for some reason, so posting here at least.
added, cheers!

bug NedScott for wiki problems ;-)
Hah...wanted to add them to the wiki, but ronie was faster...
So it's now in the wiki...
http://wiki.xbmc.org/index.php?title=Lis...Conditions

mad-max
Are there any specific reasons we'd need to use them?
Code:
<label>You're using the wrong OS</label>
<visible>System.Platform.Windows</visible>
Good one.
I'm using System.Platform.atv2 as I have an image that needs to be hidden when mouse is activated.

However, on iOS mouse support is always active and only cursor gets hidden when device is ATV2. Because of this system.getbool(lookandfeel.enablemouse) returns true on ATV2.
(2012-03-17, 01:19)ronie Wrote: [ -> ]
Code:
<label>You're using the wrong OS</label>
<visible>System.Platform.Windows</visible>

LOL
(2012-03-17, 02:25)pecinko Wrote: [ -> ]I'm using System.Platform.atv2 as I have an image that needs to be hidden when mouse is activated.

However, on iOS mouse support is always active and only cursor gets hidden when device is ATV2. Because of this system.getbool(lookandfeel.enablemouse) returns true on ATV2.
(2012-03-17, 01:19)ronie Wrote: [ -> ]
Code:
<label>You're using the wrong OS</label>
<visible>System.Platform.Windows</visible>

LOL

He only used the wong platform tag.
It should have been
<visible>System.Platform.ios</visible>