Wish: Same possibilities in GUIMultiImage.cs that you have in GUIImageControl.cs (2 Viewers)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #11
    I'm pretty much done with the code, took the time to fix quite a bit of broken attributes. Just need to make sure every scale/aspect ratio/crop situation is working as it should.

    When I'm done you'll be able to use these methods:

    One:
    Code:
            public override void AllocResources()
            {
                base.AllocResources();
                mymulti = new GUIMultiImage(5678, 998, 600, 500, 100, 100, "TV", 1000, 1000, true, true);
                mymulti.AllocResources();
            }
    
            public override void Render(float timePassed)
            {
                base.Render(timePassed);
                mymulti.Render(timePassed);
            }

    Two:
    Code:
            GUIPropertyManager.SetProperty("#bgpath", "TV");

    And of course the normal XML method in a skin-file, where I fixed position and size (was never read by the method).
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #12
    Fixed keepaspectratio and fixed rescaling to follow pixelaspectratio and actual screenresolution. Last thing I need to take a look at, is the randomize function as it seems to be defunc.

    Is a patch against 1.1 Alpha or latest SVN preferred?
     

    Users who are viewing this thread

    Top Bottom