System.Platfom additional checks

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pecinko Online
Donor
Posts: 3,847
Joined: Dec 2008
Reputation: 52
Location: Prague / Belgrade
Post: #1
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.

My skins:

Amber
Quartz

find quote
ronie Offline
Team-Kodi Member
Posts: 9,493
Joined: Jan 2009
Reputation: 167
Post: #2
added, cheers!

bug NedScott for wiki problems ;-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-03-16 23:13 by ronie.)
find quote
mad-max Offline
Posting Freak
Posts: 1,483
Joined: Jul 2010
Reputation: 59
Location: Germany
Post: #3
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

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
Hitcher Offline
Skilled Skinner
Posts: 11,178
Joined: Aug 2007
Reputation: 105
Location: Eastleigh, UK
Post: #4
Are there any specific reasons we'd need to use them?
find quote
ronie Offline
Team-Kodi Member
Posts: 9,493
Joined: Jan 2009
Reputation: 167
Post: #5
Code:
<label>You're using the wrong OS</label>
<visible>System.Platform.Windows</visible>

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Hitcher Offline
Skilled Skinner
Posts: 11,178
Joined: Aug 2007
Reputation: 105
Location: Eastleigh, UK
Post: #6
Good one.
find quote
pecinko Online
Donor
Posts: 3,847
Joined: Dec 2008
Reputation: 52
Location: Prague / Belgrade
Post: #7
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

My skins:

Amber
Quartz

(This post was last modified: 2012-03-17 02:28 by pecinko.)
find quote
Martijn Offline
Team Kodi
Posts: 12,178
Joined: Jul 2011
Reputation: 170
Location: Dawn of time
Post: #8
(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>

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote