Have one skin, use a lua script to write new measures into another skin?
Posted: April 5th, 2017, 3:05 pm
Looking to create a setup program for my skin. want to make it so the user can select a few options, and a .ini file will be created for them with their chosen settings and meters based on their selections. is this possible to do with skins and lua?
note: its not really something i can just do with a skin editing entries in the variables.ini either. its basically taking a set of options, and constructing a skin via templates. using measures, and meters, in specific ways. something a skin couldn't really do very easily. i'd like the skin to generate a string describing the skin (which should be fairly simple to do) and then have the lua file take that string and construct the skin by converting the string into an array of instructions... that part i know i can do. the concern is both, passing the string to lua...and saving the text document. I'm not really sure how rainmeter and lua work in that regard.
note: its not really something i can just do with a skin editing entries in the variables.ini either. its basically taking a set of options, and constructing a skin via templates. using measures, and meters, in specific ways. something a skin couldn't really do very easily. i'd like the skin to generate a string describing the skin (which should be fairly simple to do) and then have the lua file take that string and construct the skin by converting the string into an array of instructions... that part i know i can do. the concern is both, passing the string to lua...and saving the text document. I'm not really sure how rainmeter and lua work in that regard.