FREE Skin changer project : NEED some Help! ^_^

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • siray
    Forum Member
    • Oct 2006
    • 120

    FREE Skin changer project : NEED some Help! ^_^

    Hi all,
    This time is about my project called "Manual Skin Changer" (attached below):

    This is a manual skin changer project with no plugin. Only change/load some images to change the skin.
    I used an .INI file to load image file and i used Image.SetVisible = true or false to change the image objects
    like example below:


    greenimage = INIFile.GetValue("AutoPlay\\Docs\\skin.ini", "green", "image2");
    Image.Load("ImageYellow", greenimage);
    Button.SetVisible("ButtonYellow", false);
    Button.SetVisible("ButtonRed", false);
    Button.SetVisible("ButtonGreen", true);
    Image.SetVisible("ImageYellow", true);

    My Question is:

    Is it possible to use an .INI file to change the showed BUTTON object with the new one like the script above?

    if i use this INI file
    [Green Skin]
    green=greenbutton.btn
    so, whats the next action (scripts) to show/load the new button?

    The point is when the image color (background) is changed, all objects on it will change too.


    Sorry for my poor english


    Many Thanks - arrigato - gracias - shukran - terimakasih

    Regards,

    S i R A Y
    sierra india romeo alpha yahoo


    NB:
    Pls correct if you got wrong structure or some mistakes of scripts in this project, thanks.
    Attached Files
  • Teqskater
    Forum Member
    • Apr 2007
    • 175

    #2
    Hi

    This code may get you started. Let me now if you got it!

    Code:
    --Load the button from the INI file
    button = INIFile.GetValue("My settings.ini", "Green Skin", "green");
    -- Load the new button
    PropertiesTable = Button.GetProperties("My button");
    PropertiesTable.ButtonFile = button
    Button.SetProperties("My button", PropertiesTable);
    Teqskater

    Comment

    • RizlaUK
      Indigo Rose Customer
      • May 2006
      • 5552

      #3
      same thing in 2 lines

      Code:
      --Load the button from the INI file
      button = INIFile.GetValue("My settings.ini", "Green Skin", "green");
      Button.SetProperties("My button", {ButtonFile = button});
      Embrace change in your life, you never know, it could all work out for the best

      Comment

      • siray
        Forum Member
        • Oct 2006
        • 120

        #4
        Thanks Mr. Dean
        I'll try this code when arrived at home

        Comment

        Working...
        X