Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    Betawi
    Posts
    120

    Peekaboo! 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 Images
    Attached Files

  2. #2
    Join Date
    Apr 2007
    Posts
    165

    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

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    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});
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Oct 2006
    Location
    Betawi
    Posts
    120
    Thanks Mr. Dean
    I'll try this code when arrived at home

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. FREE Semi-WM Player11 project for playing Audio Video
    By siray in forum AutoPlay Media Studio 7.5
    Replies: 25
    Last Post: 01-02-2009, 01:51 PM
  3. FREE System Properties Editor project
    By siray in forum AutoPlay Media Studio 7.5
    Replies: 11
    Last Post: 08-13-2008, 09:21 AM
  4. HOWTO: Open a Version 3.0 Project in Version 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-30-2002, 02:09 PM
  5. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts