2015-09-02, 17:01
A few days ago I started modding the Re-Touched Skin by Jezz_X and Ronie. For anybody who might not be familiar with it, the skin is specifically for touch screens.
In order to accommodate for the different screen resolutions of tablets (which, for the most part, are 16x9 and 4x3), the skin's includes.xml has various includes with conditionals based on the aspect ratio of the screen. The code in the following link is a copy of these conditionals directly from the Re-Touched Skin.
Conditional Includes based on Aspect Ratio
The addon.xml consists of the following code, specifying which files to use when. I believe that Jezz_X actually had two different folders, one named 16x9 and the other 4x3. And I think when Ronie took over, he was able to condense everything to the 16x9 folder. This is why these two lines might seem weird maybe?
Addon.xml
When I finished with the 16x9 aspect of my modded skin, I started working on the 4x3 views. I began by editing the ViewsAddonBrowser-4x3.xml file, and I tried testing it on an iPad Mini (which is 4:3). But none of the changes I made to this file were showing up in the Addon Browser Window on the iPad. (I made sure to make dramatic changes to make sure I wasn't overlooking anything). I guessed that it was still using the ViewsAddonBrowser.xml (the 16x9 version), ignoring the conditions in includes.xml.
So I tried removing the ViewsAddonBrowser.xml from the includes.xml, so that only ViewsAddonBrowser-4x3.xml was present. Now, the changes I had made were appearing as they should. But I still didn't understand why it wouldn't work with the 16x9 ViewsAddonBrowser.xml included. It seemed the conditional wasn't working for me one reason or another. But it's the same ones that are used in the Re-Touched skin??
Deciding to experiment with one last thing, with regards to the pastebin code above, I edited the code so that any <include> conditional statements regarding 4:3 were placed above the 16:9 conditional statements (opposite of how they are originally). Surprisingly, this actually worked too. The Addon Browser Window on the iPad appeared as it should. BUT then I ran the skin on my computer, where I'd expect the 16:9 views to be used. This was not the case. The 4x3 views were being shown no matter what.
In short, I guess I'm wondering what I'm doing wrong? The conditionals are the same as those used in the Re-Touched skin. And I have all the same windows (except PVR, not really sure what that is yet lol).
Thank you in advance for the taking the time to help out and post back.
Apologies for the username mixup. Didn't have my password from before so had to make a new account. But I was able to recover the old one (vs604), so I'll stick to that for now on.
In order to accommodate for the different screen resolutions of tablets (which, for the most part, are 16x9 and 4x3), the skin's includes.xml has various includes with conditionals based on the aspect ratio of the screen. The code in the following link is a copy of these conditionals directly from the Re-Touched Skin.
Conditional Includes based on Aspect Ratio
The addon.xml consists of the following code, specifying which files to use when. I believe that Jezz_X actually had two different folders, one named 16x9 and the other 4x3. And I think when Ronie took over, he was able to condense everything to the 16x9 folder. This is why these two lines might seem weird maybe?
Addon.xml
PHP Code:
<extension point="xbmc.gui.skin" debugging="false">
<res width="1280" height="960" aspect="4:3" folder="16x9"/>
<res width="1706" height="960" aspect="16:9" default="true" folder="16x9"/>
</extension>
When I finished with the 16x9 aspect of my modded skin, I started working on the 4x3 views. I began by editing the ViewsAddonBrowser-4x3.xml file, and I tried testing it on an iPad Mini (which is 4:3). But none of the changes I made to this file were showing up in the Addon Browser Window on the iPad. (I made sure to make dramatic changes to make sure I wasn't overlooking anything). I guessed that it was still using the ViewsAddonBrowser.xml (the 16x9 version), ignoring the conditions in includes.xml.
So I tried removing the ViewsAddonBrowser.xml from the includes.xml, so that only ViewsAddonBrowser-4x3.xml was present. Now, the changes I had made were appearing as they should. But I still didn't understand why it wouldn't work with the 16x9 ViewsAddonBrowser.xml included. It seemed the conditional wasn't working for me one reason or another. But it's the same ones that are used in the Re-Touched skin??
Deciding to experiment with one last thing, with regards to the pastebin code above, I edited the code so that any <include> conditional statements regarding 4:3 were placed above the 16:9 conditional statements (opposite of how they are originally). Surprisingly, this actually worked too. The Addon Browser Window on the iPad appeared as it should. BUT then I ran the skin on my computer, where I'd expect the 16:9 views to be used. This was not the case. The 4x3 views were being shown no matter what.
In short, I guess I'm wondering what I'm doing wrong? The conditionals are the same as those used in the Re-Touched skin. And I have all the same windows (except PVR, not really sure what that is yet lol).
Thank you in advance for the taking the time to help out and post back.
Apologies for the username mixup. Didn't have my password from before so had to make a new account. But I was able to recover the old one (vs604), so I'll stick to that for now on.