MoodleFramework

If you liked this item, please rate it up on Steam Workshop page.

Author: Tchernobill

Last revision: 7 Feb at 20:18 UTC (1)

File size: 60.6 KB

On Steam Workshop

Description:

Makes it easy to add moodles for modders.

How to create a new moodle

If you wanna create a Moodle * then follow the next steps, replacing * by your moodle name.

1/ Moodle Texture

Add Moodle *.png under mediaui.
Should be 30 by 30 pixels png with alpha enabled.

2/ Texture

Add the following text under medialuasharedTranslateEN

Moodles_EN { Moodles_*_Good_lvl1 = "text_1", Moodles_*_Good_desc_lvl1 = "text_desc_1", Moodles_*_Good_lvl2 = "text_2", Moodles_*_Good_desc_lvl2 = "text_desc_2", Moodles_*_Good_lvl3 = "text_3", Moodles_*_Good_desc_lvl3 = "text_desc_3", Moodles_*_Good_lvl4 = "text_4", Moodles_*_Good_desc_lvl4 = "text_desc_4", Moodles_*_Bad_lvl1 = "text_1", Moodles_*_Bad_desc_lvl1 = "text_desc_1", Moodles_*_Bad_lvl2 = "text_2", Moodles_*_Bad_desc_lvl2 = "text_desc_2", Moodles_*_Bad_lvl3 = "text_3", Moodles_*_Bad_desc_lvl3 = "text_desc_3", Moodles_*_Bad_lvl4 = "text_4", Moodles_*_Bad_desc_lvl4 = "text_desc_4", }

You can implement only a subset of this as long as you call only the implemented part.

3/ Moodle object creation

Add these lines in your mod:

require "MF_ISMoodle" MF.createMoodle(*);

4/ Moodle value updates

Access your moodle from your code with

require "MF_ISMoodle" MF.getMoodle(*,playerNum):setValue(myNewMoodleValue)–float

0.0 <= myNewMoodleValue <=1.0
Missing playerNum will make the mod incompatible with SplitScreen.

For tuning options see dedicated discussion
Limitations
  • Not tested with multiplayer. (it is expected to work)
  • Not tested with splitscreen. (it is expected to work since last version)
  • Oscillations are not based on vanilla value and the behaviour may depend on performances.
Credits where it is due
Known mods using this

Have a look at how they use this mod.

Ask for permission[theindiestone.com]
This mod can only be added to and extended with the express permission from the original creator. Having received permission, credit must be given to the original creator, both within the files of the mod and wherever the mod roams online.

If no permission is received you may not alter the mod.

You wanna support? A nice word is always welcome. Constructive feedback too. Else you can
[ko-fi.com] or use donate on paypal[www.paypal.com].

Workshop ID: 2859296947
Mod ID: MoodleFramework

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.