PDA

View Full Version : FREE Skin changer project : NEED some Help! ^_^


siray
08-14-2008, 12:48 AM
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.

Teqskater
08-14-2008, 05:18 PM
This code may get you started. Let me now if you got it!

--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

RizlaUK
08-14-2008, 05:31 PM
same thing in 2 lines

--Load the button from the INI file
button = INIFile.GetValue("My settings.ini", "Green Skin", "green");
Button.SetProperties("My button", {ButtonFile = button});

siray
08-15-2008, 10:11 AM
Thanks Mr. Dean ;)
I'll try this code when arrived at home;)