Create an account

MoodleFramework  

Upload: 02 Nov 2022, 13:48
Created by: Tchernobill [X]
Uploaded by: Aqxaro
MoodleFramework

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 media\ui.
Should be 30 by 30 pixels png with alpha enabled.

2/ Texture

Add the following text under media\lua\shared\Translate\EN

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(*):setValue(myNewMoodleValue)--float

0.0 <= myNewMoodleValue <=1.0

Insurgent Intro

Insurgent Intro

14 Aug 2023
1
1 524
0

A simple modified opening sequence meant for the Insurgent Mod by Mr Sunshine. Though it doesn't use any assets, and technically can be run without it, I highly encourage you to download their mod, first!

Comments
The minimum comment length is 10 characters.