In regards to the background file usage on wheel list items, I am reading the area of the code where these are being applied.
It reads to me as if every list item is allocated two background files and the true / false parameter set by the user is only setting if they are *visible* or not.
function setGameItemContent()
{
/*
Create the configured gamelist item contents - text and artwork, borders, colors, etc.
Templates are defined here e.g. ch.Artwork_and_Text to determine how to do the gameitem setup
All images and settings are added to the object variables: runtime.surface.container,
runtime.surface.objects, and runtime.surface.objectTypes. These variables are passed to the conveyor slot
and used during the on_progress function.
!! Every GameItem contains two background images (1)the normal selected background and (2)the selected game background
This is a flawed setup because what is happening when you change the setting to *true*, is that the background file is visible on all items regardless of your intended preference.
The remainder of the code if anyone thinks there is a way to fix this?
*/
// ensure runtime.surface.container has the correct width and height;
setSurfaceContainer();
// configure margins for artwork and other items
local x = item.margin.left;
local y = item.margin.top;
local w = runtime.surface.container.width - item.margin.left - item.margin.right;
local h = runtime.surface.container.height - item.margin.top - item.margin.bottom;
local temp = null; // temp to configure item settings
local filename = null;
// Configure game item background and color
if (item.toggle.backgroundFile)
{
/*
add normal game item background file
and optionally colorize it
*/
filename = fe.script_dir + "item_backgroundFile.png";
filename = (fileExist(filename)) ? filename : amPath + "modules/conveyour_helper/item_backgroundFile.png";
temp = add_gameItemsContent("background",filename,x,y,w,h);
if (item.toggle.backgroundColor)
{
temp.red = item.normal.color.red;
temp.green = item.normal.color.green;
temp.blue = item.normal.color.blue;
}
} else {
/*
just add a blank background and color it
if a background file is not being used
*/
filename = amPath + "modules/conveyour_helper/ui_backgroundColor.png";
temp = add_gameItemsContent("background",filename,x,y,w,h);
temp.red = item.normal.color.red;
temp.green = item.normal.color.green;
temp.blue = item.normal.color.blue;
temp.visible = (item.toggle.backgroundColor);
}
// Configure selected game item background and color
if (item.toggle.selectedBackgroundFile)
{
/*
add selected game item background file
and optionally colorize it
*/
filename = fe.script_dir + "item_selectedBackgroundFile.png";
filename = (fileExist(filename)) ? filename : amPath + "modules/conveyour_helper/item_selectedBackgroundFile.png";
temp = add_gameItemsContent("selected",filename,x,y,w,h);
if (item.toggle.selectedBackgroundColor)
{
temp.red = item.currentlySelected.color.red;
temp.green = item.currentlySelected.color.green;
temp.blue = item.currentlySelected.color.blue;
}
} else {
/*
just add a blank background and color it
if a background file is not being used
*/
filename = amPath + "modules/conveyour_helper/ui_backgroundColor.png";
temp = add_gameItemsContent("selected",filename,x,y,w,h);
temp.red = item.currentlySelected.color.red;
temp.green = item.currentlySelected.color.green;
temp.blue = item.currentlySelected.color.blue;
temp.visible = (item.toggle.selectedBackgroundColor);
}