WindoWXML coord resolution
#1
Some questions for experienced WindowXML coders:

If I create a script skin xml designed in a PAL (720x576) rez when displayed on a 720 rez all the components are rendered in the correct position.

In the past a script had to do a setCoordinationResolution() inorder for xbmc to know what to scale too.

How does WindowXML know what rez the screen was designed in inorder to scale properly or is it always assumed to have been designed at a PAL rez?

How would you design a skin in a 720 or 1080 rez and have WindowXML know its design rez ?

Should I still be doing a setCoordinationResolution() in the onInit() ?

And then; How do you discover the skins designed screen width and height as
getWidth() getHeight() returns the screen rez. I currently query the width/height of a defined 'background.png' from the skin, which works, but have I missed something ?

Hope that wasnt too confusing.
Any advice appreciated.
BBB
Retired from Add-on dev
Reply
#2
put it in the correct folder, just like skins.

pal = pal
720p = 720p

the getwidth and gethieght, uses the setting you put in the xml, so i think your way is the only way.

So if you design in 720p, i think you should be able to reference in the script 1280x720 and it should work for all resolutions.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
WindoWXML coord resolution0