Thought: Using math to build a resolution independent skin? (1 Viewer)

n4orcer

MP Donator
  • Premium Supporter
  • May 5, 2008
    116
    26
    Sweden
    Home Country
    Sweden Sweden
    Just a thought I had:

    But would it be possible to use for example:

    <posx>sub($ResolutionX, -500)</posx> or more advanced forms to calculate width/height's of elements?

    $ResolutionX would be the "true" resolution of the screen and not what you define in reference.xml?

    Would it not be possible to build a skin that is "fully" working trough calculations and perhaps just exchanging the fonts.xml file for _any_ resolution type?

    EG, no scaling on 16:9, 4:3, 16:10 or 21:9? Well some scaling, on GFX perhaps but if you stick to <border> to build your "frames" on elements should you not be able to build a "pixel perfect" skin except scaling on fanart and some GFX regardless of resolution if this works?

    Would be sweet if you also could use some kind of conditions on includes as well e.g.

    <include if="$MyHomeLayout:1">myhome.layout1.xml</include>
    [...]
    <include if="$MyHomeLayout:4">myhome.layout4.xml</include>

    Perhaps something like this is already possible and I've missed it? Would save some pain when creating a configuration tool that needs to replace XML files left and right...

    Thoughts?
     

    Users who are viewing this thread

    Top Bottom