Weird bug with charts #299
-
To 2SchoolHouse and maybe also Nex I'm so confused Sincerely, fnf.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Generally, I'd say it would be good practice to instead have this set up as a setting within the mod itself to reduce the need of adding additional chart files. Based on the way you have set up the mod (according to the video), it uses the assets folder, so by default you should have an <!DOCTYPE codename-mod-options>
<!-- TEMPLATE FOR CUSTOM OPTIONS!!! -->
<menu name="Peter Griffin" desc="Modify mod options here.">
<checkbox id="familyFriendly" name="Family friendly" />
</menu> There are several types of options, though in your case a checkbox should work. It is a boolean option, allowing for either a true or false statement, just like a normal one. Afterwards, if you want your option to be used on a script, you will need to surround the main code that should be affected by the option with an if statement. Something like this shall do if it doesn't remain when turned off: if (FlxG.save.data.familyFriendly) {
// Enter your code here.
} I've included a little section to explain why FlxG is necessary for the above.
|
Beta Was this translation helpful? Give feedback.
Generally, I'd say it would be good practice to instead have this set up as a setting within the mod itself to reduce the need of adding additional chart files.
Based on the way you have set up the mod (according to the video), it uses the assets folder, so by default you should have an
options.xml
file already located within thedata/config
folder. Much of it should include the basic types of settings, such as a float, though in your case something like this should add the family friendly option to the menu: