opera-gaming / gxmods

Documentation for GX mods
782 stars 3.15k forks source link

[Feature Request] Multiple Wallpaper Options #157

Open Soggy-Pancake opened 1 year ago

Soggy-Pancake commented 1 year ago

Allowing multiple wallpapers to be bundled together and selected by the user will allow more flexibility and requires less downloads for different versions of essentially the same mod with different backgrounds.

    Implementation?

In the wallpaper section of manifest.json make dark and light arrays

Manifest.json

"wallpaper":
        {
            "dark":
            [
            {   
                "image": "wallpaper/dark.png",
                "text_color": "#FFFFFF",
                "text_shadow": "#757575"
            },
            {
                "name": "DarkBackground2",
                "image": "wallpaper/dark2.png",
                "text_color": "#FFFFFF",
                "text_shadow": "#757575" 
            }
            ],
            "light":
            [
            {
                "image": "wallpaper/video.webm",
                "first_frame": "wallpaper/first_frame.jpeg",
                "text_color": "#FFFFFF",
                "text_shadow": "#0B000E"
            }
            ]
        }

A name may be specified with the additional wallpaper with an extra name entry. If there is no name provided the name can default to the file name (dark2 for example).

In the mods tab there could be a dropdown menu that allows for the user to specify the light and dark mode wallpapers. If the first wallpaper is not named it will be named to "default".

example

In my example I only gave 1 light mode wallpaper so there would be no dropdown for it.