Custom-Main-Menu icon indicating copy to clipboard operation
Custom-Main-Menu copied to clipboard

I cant load TEXT from web Please HELP

Open pjindras opened this issue 4 years ago • 4 comments

Hello, your mod is nice and works well, but there is one think i cant manage to do. I have main menu and custom gui for changelog, in main menu is everything ok, no error, in log the same but,

i have custom menu called changelog and here i want load text with changelog:

the .json look like that:

`{ "buttons": { "singleplayer": { "text" : "Back to main menu / Zpet", "tooltip" : "Return back to main menu.", "posX" : -100, "posY" : -30, "width" : 200, "height" : 20, "alignment" : "bottom_center", "action" : { "type" : "openGui", "gui" : "custom.mainmenu" } } },

"labels":
{
    "mojang":
    {
        "text" : "Created by pjindras",
        "hoverText" : "§nCreated by pjindras",
        "posX" : -105,
        "posY" : -10,
        "color" : -1,
        "alignment" : "bottom_right"
    },

    "mojang":
    {
        "text" : "Forge #forgeversion# for Minecraft #mcversion#",
        "posX" : 2,
        "posY" : 0,
        "color" : -1,
        "alignment" : "bottom_left"
    },
    
    "changelog":
    {
        "text" : "web:http://pastebin.com/raw.php?i=MmSCr6zV",
        "posX" : 0,
        "posY" : 20,
        "color" : -1
    }
},

"other":
{
    "background":
    {
        "image" : "hexx_resources:test.png",
        "mode" : "stretch"
    }
}

}`

When i enter changelog menu, i see only white background, the data from web are not loaded,

Please help me

Thanks :)

pjindras avatar Apr 02 '20 21:04 pjindras

labels are used to display values or text on a menu, they are not "menu pages" themselves

ROMVoid95 avatar Apr 02 '20 22:04 ROMVoid95

labels are used to display values or text on a menu, they are not "menu pages" themselves

I also tryed other options

I had it in "texts" and in "other" but there was the same issue.

pjindras avatar Apr 03 '20 07:04 pjindras

my lord i apologize . i totally misread the first part lol, because github cant process these jsons right lol could you post the json file to hastebin or some site like that? lol makes it easier to read

ROMVoid95 avatar Apr 03 '20 09:04 ROMVoid95

my lord i apologize . i totally misread the first part lol, because github cant process these jsons right lol could you post the json file to hastebin or some site like that? lol makes it easier to read

Ye sure:

This is my main menu: https://pastebin.com/3EHEJeVW

and this is the changelog menu:

https://controlc.com/1bfd1d12

(pastebin is down and hastebin too idk why)

Edit: Please someone help, i really need it to update my modpack. Its the last think, that i dont have compleated.

pjindras avatar Apr 03 '20 09:04 pjindras