Code Monkey home page Code Monkey logo

modbootstrap's Introduction

ModBootstrap

Basic mod loader for Friday Night Funkin' image

Tip

If you wish to make your mod compatible with both Cyn's ModLauncher and ModBootstrap, check here.

In order to make your mod compatible with ModBootstrap, add a .hxc script with a unique sounding name of your choice.

import funkin.modding.module.Module;
import funkin.modding.module.ModuleHandler;

class ExampleModBind extends Module { // Replace the class name with a unique name of your choice
  public function new() {
      super("ExampleModBind"); // Replace the string with a unique name of your choice
  }
  public function onCreate(event:ScriptEvent):Void {
    this.active = false;
    if ((launcher = ModuleHandler.getModule("BootStrapBinds")) != null) {
      ModuleHandler.getModule("BootStrapBinds").scriptCall("bind", [{
          name: "My Mod", // mod name
          description: "I ate your wife", // mod description
          target: "BaseTitleState", // target state
          bg: '', // if the bg is set to nothing, it will use the default bg
          icon: 'fnficon32', // path to icon (32x32)
          author: "the elusive my mod team", // name of the people who made the mod
          logo: '', // big logo for the mod.
          color: 0xFFB00B69, // color for the selection tab thingies
          bg_group: (group) -> { // for dynamic bgs, to add stuff you must do "group.add(myVar)"
            return; // do nothing.
          },
          disclaimer: "This mod contains flashing lights." // disclaimer, add anything you want here.
      }]);
    } else {
     // place failsafe code here.
    }
  }
}

If you need to check if the current mod being played is your's, use Save.instance.modOptions.get("ModBootstrapV2").selected_mod.

modbootstrap's People

Contributors

burgerballs avatar falkimore avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.