
Originally Posted by
Sakuya
Now we only need stuff like this..
Code:
local Image1 = Object:Create("Image1");
Image1.ImageFile = _SourceFolder.."\\Images\\Background.png";
Image1.Opacity = 50;
Image1.TooltipText = "Your background.";
Image1.Visible = true;
Image1.Enabled = false;
-- maybe because lua can't detect these changes straight away..
Image1:SaveChanges();
Then AutoPlay Media Studio can take over the world!
That's actually possible, try:
Code:
tImage1 = {};
tImage1.ImageFile = _SourceFolder.."\\Images\\Background.png";
tImage1.Opacity = 50;
tImage1.TooltipText = "Your background.";
tImage1.Visible = true;
tImage1.Enabled = false;
Image1 = Object:Create("Image1", tImage1, OBJECT_IMAGE);
And don't forget about Object:SetProperties ^^
But I'll probably be able to work that in somehow, perhaps using a subtable
like:
Code:
local Image1 = Object:Create("Image1");
Image1.PropsOnTheFly.ImageFile = _SourceFolder.."\\Images\\Background.png";
Image1.PropsOnTheFly.Opacity = 50;
Image1.PropsOnTheFly.TooltipText = "Your background.";
Image1.PropsOnTheFly.Visible = true;
Image1.PropsOnTheFly.Enabled = false;
Image1:SaveChanges();
and here comes the interesting part, I could even set the subtable's index to a function that automatically updates the properties when the table is modified! But that'll require some work though, rather much I'm affraid.