Modular Pause Menu

Extremely modular. Extremely user-friendly. Somewhat pretty.

  1. Luka S.J.
    Pokémon Essentials Version:
    v16.2 ✅


    [​IMG]




    • The following is a system created to serve as both a visual and a functional alternative to the normal Pause Menu found in Essentials.

      The main point of focus was for extremely easy modularity of the Pause Menu. That means, that you can easily add tons of custom entries to your Pause Menu, without having to re-work any of the code. The script takes care of its visuals automatically.

      Carefully read all the instructions .

    • • You may use this system for any personal purposes

      • You may modify this system

      • You may not use footage of this resource (unless you're showcasing modifications done to it) in order to promote your game

      • You may not re-distribute this system

      • You may not bundle this system with other packs

      • You may not use this system in commercial projects

      • Credits must be given at all times

      • Read the FAQ before asking for help

      When asking for help, or reporting any errors, make sure to paste the whole error in your bug report as well as mention which version of Essentials you are using (whether or not it is vanilla as well).



    Modular Pause Menu
    giving you a little taste of what it looks like.

    [​IMG]


    Instructions

    The script is not yet bundled in the UPI, so you'll have to go the good old manual route of installing the script and the graphics yourself. Fret not, this is not really difficult either, and as long as you follow these simple instructions, you will do just fine!

    1.) Get the script
    2.) Navigate to the script editor, and create a new script section above Main
    3.) Paste the script into your newly created script section
    4.) Download the graphical resources
    5.) Extract the downloaded resources into your Essentials project folder
    6.) Profit

    I don't have anything to add on this topic anymore. Now if you do want to know how to use all this new fancy modularity, read below.


    Adding custom menu elements

    Adding a new element (or entry) in your brand new Pause Menu could be likened to adding new item effects in your game. All the stuff you need is very self-contained, and there is no need to directly access any portions of the main script to add new stuff to your menu. Defining new elements in the pause menu however has some rules:

    1.) Scroll to the very very bottom of the script. This is where you're going to define your new stuff. It has to be below the main module and the main classes of the script that handle the menu. Whatever order you define your menu elements in is the order they will appear on screen. So you can shuffle around between the currently existing element entries, but no further than that.

    2.) Your icons for the menu elements are always going to be placed in 'Graphics/Icons/'

    3.) For each menu element, you're going to have to define a symbolic name by which you'll handle it, the main string that will be displayed in the actual pause menu (for that element), the icon that you want displayed for that element, the block of code that the element is going to run once you select it in the menu, a block of code that will check whether or not the player has access to that element of the menu. The formal definition for this is as follows:
    Code:
    MenuHandlers.addEntry(:NAME,"Text displayed","icon name",proc{|menu|
      # your lines of code go here
      # keep in mind that the 'proc{|menu| ' part always has to be like this
      # for every entry in your menu, when you go about defining the actual
      # functionality that is run when the player selects that menu element
      }
    },proc{
      # block of code that checks if the player has access to the menu element
      # MUST ALWAYS return a boolean expression
      # or if you want the player to always be able to trigger this:
      return true
    })
    



    There are no questions yet since the script is brand new, but I am leaving this area reserved for once people actually get to using the new script.

    [​IMG]
    BluePlays, Domiok and Dawn Bronze like this.

Recent Updates

  1. Safari Zone & Bug Contest compatibility

Recent Reviews

  1. Pokébook
    Pokébook
    5/5,
    I just used it and it works just fine, easy to install and the graphics are modern and plain! It works well for the game I want to make!
  2. sukoshijon
    sukoshijon
    5/5,
    Byotifel. The modularity is perfect. Anyone could add an entry.
  3. Raiden
    Raiden
    5/5,
    It works like a charm and is really easy to work with. Great as always, Luka.
  4. lilbluedemon
    lilbluedemon
    5/5,
    This is soo good, adding a new option on the pause menu has never been so easy. Thanks for this, Luka S.J. <3
  5. SwaggyMudkip69
    SwaggyMudkip69
    5/5,
    This is way better than the normal pause menu! Great work!
  6. M3rein
    M3rein
    5/5,
    Great modularity. It's never been so easy to add entries. Aspiring developers like me can also learn from this.