Replay Mod Forums

This Thread is locked - no new replies are allowed.

Locked Custom Main Menu - Lang files?
    • User
    • 56 forum posts
    v_f_1
    #1

    Dec 23 15, 02:11 PM

    Hey!
    Your may know that there's a Mod, that lets you customize your Main-Menu completely, it can change the buttons, the Background, etc.
    The Mod lets you change it using json:

    Spoiler: Example-Json for Singleplayer Button



    Now to open the Replay-Viewer, i need the id of the Replay-Viewer
    Vanilla-Example: menu.multiplayer=Multiplayer

    So i appreciated if you would give it to me :)


    • Developer
    • 818 forum posts
    CrushedPixel
    #2

    Dec 23 15, 02:16 PM

    I don't know how this Mod works, and where it takes these "ids" from, because I didn't give any particular id to the ReplayMod's GUIs. Not sure if it's possible to achieve what you wanna achieve.


    • Developer
    • 818 forum posts
    CrushedPixel
    #3

    Dec 23 15, 02:20 PM

    Oh, I know what you mean. Have a look at the .lang file here.


    • User
    • 56 forum posts
    v_f_1

    in response to CrushedPixel

    #4

    Dec 23 15, 02:22 PM | Last edited: Dec 23 15, 02:22 PM


    I don't know how this Mod works, and where it takes these "ids" from, because I didn't give any particular id to the ReplayMod's GUIs. Not sure if it's possible to achieve what you wanna achieve.


    The Mod has different languages, right?
    This is done by using a .lang file.

    When setting the name you don't enter a string, you type something like item.berry.
    Then you go to this language file.

    In the ReplayMod's lang-file (resources of the mod?) there is somewhere "menu.xxx"

    *Too late*
    :D


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

    Dec 23 15, 03:53 PM | Last edited: Dec 23 15, 04:25 PM

    Just did some research. You can't add replaymod buttons in the config, because the menu names, are hardcoded in the Menu mod.
    Edit: nvm. Just set the button's "wrappedButton" to 9001, for the ReplayViewer, 9002 for ReplayEditor, and 9003 for ReplayCenter.
    The names for the buttons: ReplayViewer: "replaymod.gui.replayviewer"
    ReplayCenter: "replaymod.gui.replaycenter"
    ReplayEditor: replaymod.gui.replayeditor



    • Developer
    • 818 forum posts


    Just did some research. You can't add replaymod buttons in the config, because the menu names, are hardcoded in the Menu mod.
    Edit: nvm. Just set the button's "wrappedButton" to 9001, for the ReplayViewer, 9002 for ReplayEditor, and 9003 for ReplayCenter.
    The names for the buttons: ReplayViewer: "replaymod.gui.replayviewer"
    ReplayCenter: "replaymod.gui.replaycenter"
    ReplayEditor: replaymod.gui.replayeditor

    Ah, you were needing the Button IDs not the Menu IDs.


    • User
    • 56 forum posts
    v_f_1
    #7

    Dec 23 15, 08:42 PM

    Now thanks for the research, last time i looked into the docs, was when i changed my background :D

    I think this thread is done, i'll lock it :)