Fenerit wrote:Was just a thought about further image add-ons and how to merge files as long as .ssc files are substituted by other .ssc's.Vincent wrote:Is there a specific reason for which you don't want to add your Mars images pathes in 'infoImage.lua'?
OK, so your infoMars file should look like this:
Code: Select all
-- Image filenames for my Mars:
infoImage["Mars1"] = "../images/mars/my_Mars1.png";
infoImage["Mars2"] = "../images/mars/my_Mars2.png";
This way, the new keys/values will be added in the infoImage table without overwriting the previous ones. In your infoMars example, the infoImage table was overwritten whenever you wrote:
Code: Select all
infoImage =
{
...
}
Then, you should add your requires directly at the beginning of the 'infoImage.lua' file, rather than modifying 'infoBox.lua'.