Need mod makers'' advice on new feature for FLMM
Thanks to bws, I'm working on implementing a handy new feature into FLMM: the ability for one mod to have different, toggleable options to choose from when activating it! It can be very handy if your mod conflicts with OpenSP but you want let the user still use it, if you want to let the user skip the intro movies, etc...
Here's the prototype right now:
<pre><font size=1 face=Courier>
<options>
<option id="1" name="Do you want to skip the story missions in singleplayer?">
<item id="1" name="Yes"></item>
<item id="2" name="No"></item>
</option>
<option id="2" name="Skip the intro movies?">
<item id="1"> <!-- the name field can be either way -->
Yes
</item>
<item> <!-- if the ID field isn't specified, it uses the last id plus 1 -->
No
</item>
</option>
<option name="Select a costume:">
<item>
Blue
</item>
<item>
Red
</item>
<item>
Ugly pink and purple polk-a-dot
</item>
</option>
</options>
<data file="somefile.ini" method="filereplace" options="1:1,2:1,3:2,3:3"> <!-- the options field specifies which options this data section applies to; the first item for the OpenSP option, the first item for the intro movies option, and the second and third items for the costume option -->
blah blah
</data>
</font></pre>
Look good? I want to get some feedback before I start actually programming it in.
Here's the prototype right now:
<pre><font size=1 face=Courier>
<options>
<option id="1" name="Do you want to skip the story missions in singleplayer?">
<item id="1" name="Yes"></item>
<item id="2" name="No"></item>
</option>
<option id="2" name="Skip the intro movies?">
<item id="1"> <!-- the name field can be either way -->
Yes
</item>
<item> <!-- if the ID field isn't specified, it uses the last id plus 1 -->
No
</item>
</option>
<option name="Select a costume:">
<item>
Blue
</item>
<item>
Red
</item>
<item>
Ugly pink and purple polk-a-dot
</item>
</option>
</options>
<data file="somefile.ini" method="filereplace" options="1:1,2:1,3:2,3:3"> <!-- the options field specifies which options this data section applies to; the first item for the OpenSP option, the first item for the intro movies option, and the second and third items for the costume option -->
blah blah
</data>
</font></pre>
Look good? I want to get some feedback before I start actually programming it in.