Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Nick Thissen
on
You do not need a script to make this work, just dynamic images should be enough.

All you need is to make your Label / SubWidget and go to Dynamic Background. There you can select a Data Binding that the dynamic background is going to bind to. For this, you select any property that somehow tells you which car it is. For example the car ID, or the car name, or more.

Next, you need to specify the Path which translates your property (e.g. car ID or car name) to a filepath, relative to your theme's Images folder. Put the {0} macro where the binding output should go.

For example, if you have cars with ID 1, 2 and 3 (no idea which those are but just an example), you would store the images for example in:
"(Your theme folder)/Content/Images/cars/1.png"
"(Your theme folder)/Content/Images/cars/2.png"
"(Your theme folder)/Content/Images/cars/3.png"

Then your Data Binding should be Car ID and your Path should be "cars/{0}.png"

To figure out which car IDs (or names) you have you can use the Data Explorer. Expand the followed/standing dataset and look for the car ID entry.