Replay Mod Forums

Custom Main Menu With ReplayMod
    • User
    • 2 forum posts
    FelicityGaming
    #1

    Jan 09 17, 07:14 AM

    i was looking all over the internet about this but i cant find it

    trying to link the replay mod gui's like "Replay Viewer" and "Replay Center" so i dont have to see menu bugs without the "Custom Main Menu"
    what is the openGui codes?

    this is what ive done so far please tell me where i went wrong

    {
    "images":
    {
    "title":
    {
    "image" : "custommainmenu:textures/gui/minecraft.png",
    "posX" : -137,
    "posY" : 30,
    "width" : 512,
    "height" : 512,
    "alignment" : "top_center"
    }
    },

    "buttons":
    {
    "singleplayer":
    {
    "text" : "menu.singleplayer",
    "posX" : -40,
    "posY" : 48,
    "width" : 200,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : "singleplayer"
    }
    },

    "9003":
    {
    "text" : "replaymod.gui.replaycenter",
    "posX" : -160,
    "posY" : 96,
    "width" : 90,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : ""
    }
    },

    "9002":
    {
    "text" : "replaymod.gui.replayeditor",
    "posX" : -160,
    "posY" : 72,
    "width" : 90,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : ""
    }
    },

    "9001":
    {
    "text" : "replaymod.gui.replayviewer",
    "posX" : -160,
    "posY" : 48,
    "width" : 90,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : ""
    }
    },

    "multiplayer":
    {
    "text" : "menu.multiplayer",
    "posX" : -40,
    "posY" : 72,
    "width" : 200,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : "multiplayer"
    }
    },

    "mods":
    {
    "text" : "fml.menu.mods",
    "posX" : -40,
    "posY" : 96,
    "width" : 200,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : "mods"
    }
    },

    "options":
    {
    "text" : "menu.options",
    "posX" : -100,
    "posY" : 132,
    "width" : 98,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : "options"
    }
    },

    "quit":
    {
    "text" : "menu.quit",
    "posX" : 2,
    "posY" : 132,
    "width" : 98,
    "height" : 20,
    "action" :
    {
    "type" : "quit"
    }
    },

    "language":
    {
    "text" : "",
    "posX" : -124,
    "posY" : 132,
    "width" : 20,
    "height" : 20,
    "action" :
    {
    "type" : "openGui",
    "gui" : "languages"
    }
    },

    "refresh":
    {
    "text" : "",
    "posX" : -154,
    "posY" : 132,
    "width" : 20,
    "height" : 20,
    "texture" : "custommainmenu:textures/gui/buttons.png",
    "action" :
    {
    "type" : "refresh"
    }
    }
    },

    "labels":
    {
    "mojang":
    {
    "text" : "Copyright Mojang AB. Do not distribute!",
    "posX" : -197,
    "posY" : -10,
    "color" : -1,
    "alignment" : "bottom_right"
    },

    "fml":
    {
    "text" : "",
    "posX" : 2,
    "posY" : -40,
    "color" : -1,
    "alignment" : "bottom_left"
    }
    },

    "other":
    {
    "splash-text":
    {
    "posX" : 90,
    "posY" : 70,
    "color" : -256,
    "alignment" : "top_center",
    "texts" : "file:minecraft:texts/splashes.txt"
    },

    "panorama":
    {
    "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
    "animate" : true,
    "animationSpeed" : 1,
    "blur" : true,
    "gradient" : true
    }
    }
    }


    • User
    • 2 forum posts
    FelicityGaming
    #2

    Jan 09 17, 07:15 AM

    oh and what is "wrappedButton"


    • Moderator
    • Beta Tester
    • 357 forum posts
    bela333
    #3

    Jan 09 17, 03:33 PM | Last edited: Jan 09 17, 03:39 PM

    There is already a thread talking about this... 2015, Wow! LINK

    So, it should look something like this:
    "replayCenter":
    {
    "text" : "replaymod.gui.replaycenter",
    "posX" : -160,
    "posY" : 96,
    "width" : 90,
    "height" : 20,
    "wrappedButton": 9003
    },


    • User
    • 1 forum post
    Nintendo64Labs
    #4

    Oct 03 19, 11:24 PM

    This method does not work on 1.12.2


    • User
    • 13 forum posts
    SeagalKru
    #5

    Oct 09 19, 12:51 AM

    (Google Translate)
    There is already a page on this topic. We are waiting for a solution to the problem.