The PokéCommunity Forums Fan Games Game Development Scripts, Tutorials & Tools
Essentials Script Simple GUI Menu (Customizable/Extendable)

Scripts, Tutorials & Tools This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old January 25th, 2018 (7:00 AM). Edited February 1st, 2018 by Ego13.
Ego13's Avatar
Ego13 Ego13 is online now
hollow_ego
     
    Join Date: Jul 2017
    Location: Larua Region
    Gender: Male
    Nature: Calm
    Posts: 221
    Simple GUI Menu (Customizable/Extendable) for Essentials v17 and later

    This is a plug&play GUI Menu Base. It was designed as a base, so you can add your very own menu items and use your very own graphics. It comes with 7 working standard options (Pokedex, Pokemon, Bag, Trainercard, Save, Settings, Exit) and a clock on demand. It also supports debug mode. The icon will be on the bottom right corner and allows for quick access to the debug menu.

    This script is not beginner friendly, but I gave my best to describe and explain everything well enough so that everybody understands it.

    Note: The graphics for v1.1 aren't really good as they are merely placeholders. I recommend using own graphics. Recommended size for the icons is 308x60px and for the clock 182x100px. That way you don't even need to change anything.

    Everything else is explained in the script itself and in the script.txt

    These are things you can modify
    • Menu Items: add more things you want to have in your menu
    • Icon Placement: width, height, space between 2 icons, height on screen
    • Animation Style: choose between 3 styles: 1=up/down animation; 2=color change; 3=animation and color change (v1.2 only)
    • Animation other: the amount of frames (making it faster or slower), extra space between selected item and the rest
    • Audio Settings: play sounds when opening the menu and/or when selecting
    • Clock: postion, font, font color, using a seperate graphic for the clock graphic or use background (v1.2 only)

    Screenshots
    Spoiler:

    v1.1 without clock


    v1.1 with clock


    v.1.2




    You can download the files here.
    Please give credit.

    Change Log
    - 02 Feb. 2018 -
    * now really works for Essentials v17 and later
    __________________
    Looking for spriters to help with

    Pokemon Hollow on pokecommunity.com
    Reply With Quote
      #2    
    Old July 2nd, 2018 (1:51 PM).
    Tw_raZ's Avatar
    Tw_raZ Tw_raZ is offline
    The Man at the Summit
       
      Join Date: Jun 2018
      Gender: Male
      Nature: Sassy
      Posts: 3
      I can't get this to work. I made the appropriate changes in Scene_Map, and put the PScreen_Menu above main. I made sure that, before pasting the script into PScreen_Menu, I added a '#' on each line where you described what to change in Scene_map.

      The error I get is this:

      [Pokémon Essentials version 17.2]
      Exception: NameError
      Message: undefined local variable or method `startMenu' for #<Scene_Map:0xc93b880>
      Scene_Map:192:in `update'
      Scene_Map:235:in `main'
      Scene_Map:232:in `loop'
      Scene_Map:237:in `main'
      Main:49:in `mainFunctionDebug'
      Main:27:in `mainFunction'
      Main:27:in `pbCriticalCode'
      Main:27:in `mainFunction'
      Main:59
      Main:58:in `loop'

      This exception was logged in
      C:\Users\user\Saved Games\Pokemon Essentials\errorlog.txt.
      Reply With Quote
        #3    
      Old July 2nd, 2018 (10:12 PM). Edited July 2nd, 2018 by bo4p5687.
      bo4p5687 bo4p5687 is offline
         
        Join Date: May 2018
        Location: Việt Nam (Vietnam)
        Gender: Male
        Nature: Relaxed
        Posts: 75
        Quote:
        Originally Posted by Tw_raZ View Post
        I can't get this to work. I made the appropriate changes in Scene_Map, and put the PScreen_Menu above main. I made sure that, before pasting the script into PScreen_Menu, I added a '#' on each line where you described what to change in Scene_map.

        The error I get is this:

        [Pokémon Essentials version 17.2]
        Exception: NameError
        Message: undefined local variable or method `startMenu' for #<Scene_Map:0xc93b880>
        Scene_Map:192:in `update'
        Scene_Map:235:in `main'
        Scene_Map:232:in `loop'
        Scene_Map:237:in `main'
        Main:49:in `mainFunctionDebug'
        Main:27:in `mainFunction'
        Main:27:in `pbCriticalCode'
        Main:27:in `mainFunction'
        Main:59
        Main:58:in `loop'

        This exception was logged in
        C:\Users\user\Saved Games\Pokemon Essentials\errorlog.txt.
        First,
        Do you change like this ?

        Code:
        if Input.trigger?(Input::B)
              unless pbMapInterpreterRunning? or $game_system.menu_disabled or $game_player.moving?
                startMenu
                #$game_temp.menu_calling = true
                #$game_temp.menu_beep = true
              end
            end
        Second, if you change like that and you use script v1_1, change this:
        Code:
        def startMenu1_1
        into
        Code:
        def startMenu
        Reply With Quote
          #4    
        Old July 3rd, 2018 (12:21 AM).
        Ego13's Avatar
        Ego13 Ego13 is online now
        hollow_ego
           
          Join Date: Jul 2017
          Location: Larua Region
          Gender: Male
          Nature: Calm
          Posts: 221
          Quote:
          Originally Posted by Tw_raZ View Post
          I can't get this to work. I made the appropriate changes in Scene_Map, and put the PScreen_Menu above main. I made sure that, before pasting the script into PScreen_Menu, I added a '#' on each line where you described what to change in Scene_map.

          The error I get is this:

          [Pokémon Essentials version 17.2]
          Exception: NameError
          Message: undefined local variable or method `startMenu' for #<Scene_Map:0xc93b880>
          Scene_Map:192:in `update'
          Scene_Map:235:in `main'
          Scene_Map:232:in `loop'
          Scene_Map:237:in `main'
          Main:49:in `mainFunctionDebug'
          Main:27:in `mainFunction'
          Main:27:in `pbCriticalCode'
          Main:27:in `mainFunction'
          Main:59
          Main:58:in `loop'

          This exception was logged in
          C:\Users\user\Saved Games\Pokemon Essentials\errorlog.txt.
          Basically it doesnt find the function to start the menu. I suggest checking what @bo4p5687 said
          __________________
          Looking for spriters to help with

          Pokemon Hollow on pokecommunity.com
          Reply With Quote
            #5    
          Old July 3rd, 2018 (5:04 PM).
          Tw_raZ's Avatar
          Tw_raZ Tw_raZ is offline
          The Man at the Summit
             
            Join Date: Jun 2018
            Gender: Male
            Nature: Sassy
            Posts: 3
            Quote:
            Originally Posted by bo4p5687 View Post
            First,
            Do you change like this ?

            Code:
            if Input.trigger?(Input::B)
                  unless pbMapInterpreterRunning? or $game_system.menu_disabled or $game_player.moving?
                    startMenu
                    #$game_temp.menu_calling = true
                    #$game_temp.menu_beep = true
                  end
                end
            Second, if you change like that and you use script v1_1, change this:
            Code:
            def startMenu1_1
            into
            Code:
            def startMenu
            That was the error, thanks :D
            Reply With Quote
              #6    
            Old July 4th, 2018 (12:53 AM).
            Ego13's Avatar
            Ego13 Ego13 is online now
            hollow_ego
               
              Join Date: Jul 2017
              Location: Larua Region
              Gender: Male
              Nature: Calm
              Posts: 221
              No problem :)
              __________________
              Looking for spriters to help with

              Pokemon Hollow on pokecommunity.com
              Reply With Quote
              Reply

              Quick Reply

              Join the conversation!

              Create an account to post a reply in this thread, participate in other discussions, and more!

              Create a PokéCommunity Account
              Thread Tools

              Posting Rules
              You may not post new threads
              You may not post replies
              You may not post attachments
              You may not edit your posts

              BB code is On
              Smilies are On
              [IMG] code is On
              HTML code is Off

              Forum Jump


              All times are GMT -8. The time now is 9:30 AM.