lumien231 / Custom-Main-Menu

A mod that allows you to modify the minecraft main menu
MIT License
67 stars 37 forks source link

1.12.2 black background for slideshows #416

Open captainkipn opened 4 years ago

captainkipn commented 4 years ago

I am making a menu and the background I want to be semi animated or like flashy, but when I plug all the code in nothing works and instead gives me a blank black screen. I am using resource loader and the cmm, everything is pretty ok for the most part nothing hasn't worked before but this has refused to work for me

captainkipn commented 4 years ago

``{ "images": { "title": { "image" : "modpack:Logo.png", "posX" : 70, "posY" : 0, "width" : 240, "height" : 141, "imageHeight" : 1440, "imageWidth" : 880, "alignment" : "top_center" },

    "edition":
    {
        "image" : "modpack:BG.png",
        "posX" : -49,
        "posY" : 67,
        "width" : 128,
        "height" : 16,
        "imageHeight" : 10,
        "imageWidth" : 10,
        "alignment" : "top_center"
    }
},

"buttons":
{
    "singleplayer":
    {
        "text" : "Venture Alone",
        "tooltip" : "Play by yourself",
        "posX" : -230,
        "posY" : 10,
        "width" : 200,
        "height" : 20,
        "action" :
        {
            "type" : "openGui",
            "gui" : "singleplayer"
        }
    },

    "multiplayer":
    {
        "text" : "Explore Together",
        "tooltip" : "Play with Friends",
        "posX" : -230,
        "posY" : 50,
        "width" : 200,
        "height" : 20,
        "action" :
        {
            "type" : "openGui",
            "gui" : "multiplayer"
        }
    },

    "mods":
    {
        "text" : "fml.menu.mods",
        "tooltip" : "See whats under the hood",
        "posX" : -230,
        "posY" : 90,
        "width" : 100,
        "height" : 20,
        "action" :
        {
            "type" : "openGui",
            "gui" : "mods"
        }
    },

    "options":
    {
        "text" : "Settings",
        "tooltip" : "Change your Settings",
        "posX" : -128,
        "posY" : 90,
        "width" : 98,
        "height" : 20,
        "action" :
        {
            "type" : "openGui",
            "gui" : "options"
        }
    },

    "quit":
    {
        "text" : "Rest",
        "tooltip" : "Take a breather",
        "posX" : -128,
        "posY" : 132,
        "width" : 98,
        "height" : 20,
        "action" :
        {
            "type" : "quit"
        }
    },
    "discord":
    {
        "text" : "",
        "tooltip" : "Join in on the discussion",
        "texture" : "modpack:Discord.png",
        "imageHeight" : 300,
        "imageWidth" : 300,
        "posX" : -200,
        "posY" : 132,
        "width" : 20,
        "height" : 20,
        "action" :
        {
            "type" : "openLink",
            "link" : "https://discord.gg/wc6qTTk"
        }
    },
    "twitter":
    {
        "text" : "",
        "tooltip" : "Follow Me",
        "texture" : "modpack:Twitter.png",
        "imageHeight" : 1687,
        "imageWidth" : 1687,
        "posX" : -170,
        "posY" : 132,
        "width" : 20,
        "height" : 20,
        "action" :
        {
            "type" : "openLink",
            "link" : "https://twitter.com/KaptainKipn"
        }
    },

    "language":
    {
        "text" : "",
        "tooltip" : "Change your Language",
        "posX" : -230,
        "posY" : 132,
        "width" : 20,
        "height" : 20,
        "action" :
        {
            "type" : "openGui",
            "gui" : "languages"
        }
    }
},

"labels":
{
    "mojang":
    {
        "text" : "Modpack By CaptainKipn",
        "hoverText" : "",
        "posX" : -119,
        "posY" : -10,
        "color" : -1,
        "alignment" : "bottom_right",
        "action" :
        {
            "type" : "openGui",
            "gui" : "credits"
        }
    }
},

"background":
{
    "image" : "example:frame_001.png",
    "mode" : "stretch",
    "slideshow":
    {
            "images" : ["example:frame_001.png","example:frame_002.png","example:frame_003.png","example:frame_004.png","example:frame_005.png","example:frame_006.png","example:frame_007.png","example:frame_008.png","example:frame_009.png","example:frame_010.png","example:frame_011.png","example:frame_012.png","example:frame_013.png","example:frame_014.png","example:frame_015.png","example:frame_016.png","example:frame_017.png","example:frame_018.png","example:frame_019.png","example:frame_020.png","example:frame_021.png","example:frame_022.png","example:frame_023.png","example:frame_024.png","example:frame_025.png","example:frame_026.png","example:frame_027.png","example:frame_028.png","example:frame_029.png","example:frame_030.png","example:frame_031.png","example:frame_032.png","example:frame_033.png","example:frame_034.png","example:frame_035.png","example:frame_036.png","example:frame_037.png","example:frame_038.png","example:frame_039.png","example:frame_040.png","example:frame_041.png","example:frame_042.png","example:frame_043.png","example:frame_044.png"],
            "displayDuration" : 6,
            "fadeDuration" : 10
        }
    }
}