diff --git a/src/config/packmenu.cfg b/src/config/packmenu.cfg new file mode 100644 index 0000000..aa052b7 --- /dev/null +++ b/src/config/packmenu.cfg @@ -0,0 +1,152 @@ +# File Specification: https://gist.github.com/Shadows-of-Fire/88ac714a758636c57a52e32ace5474c1 + +# + +general { + # If the title (the giant minecraft text) is drawn. + # Default: true + B:"Draw Title"=true + + # If the splash text is drawn. + # Default: true + B:"Draw Splash"=true + + # If forge information is drawn at the top center. This includes beta and update warnings. + # Default: true + B:"Draw Forge Info"=true + + # If the vanilla panorama, and it's fade-in, are rendered. Enabling this disables the use of the custom background options. + # Default: false + B:"Draw Panorama"=false + + # If the resource pack is loaded from /resources instead of /resources.zip + # Default: true + B:"Folder Pack"=true + + # If the Panorama has a fade-in effect. + # Default: false + B:"Panorama Fade In"=false + + # A multiplier on panorama speed. + # Default: 1.0; Range: [0.01 ~ 100.0] + S:"Panorama Speed"=1.0 + + # The number of variations of panorama that exist. Panorama files other than the original set must have the form panorama_.png. For example the first file of varation #2 would be panorama1_0.png + # Default: 1; Range: [1 ~ 10] + I:"Panorama Variations"=1 +} + + +title { + # The anchor point for this element. + # Default: TITLE + S:"Anchor Point"=TITLE + + # The X offset for this element. + # Default: 0; Range: [-1000 ~ 1000] + I:"X Offset"=0 + + # The Y Offset for this element. + # Default: 0; Range: [-1000 ~ 1000] + I:"Y Offset"=0 +} + + +"forge info" { + # The anchor point for this element. + # Default: FORGE + S:"Anchor Point"=FORGE + + # The X offset for this element. + # Default: 0; Range: [-1000 ~ 1000] + I:"X Offset"=0 + + # The Y Offset for this element. + # Default: 0; Range: [-1000 ~ 1000] + I:"Y Offset"=0 +} + + +"splash text" { + # The anchor point for this element. + # Default: SPLASH + S:"Anchor Point"=SPLASH + + # The X offset for this element. + # Default: 0; Range: [-1000 ~ 1000] + I:"X Offset"=0 + + # The Y Offset for this element. + # Default: 0; Range: [-1000 ~ 1000] + I:"Y Offset"=0 + + # The rotation value of the splash text. + # Default: -20.0; Range: [-360.0 ~ 360.0] + S:Rotation=-20.0 + + # The color of the splash text. + # Default: -256; Range: [-2147483647 ~ 2147483647] + I:Color=-256 +} + + +logo { + # The location of the logo texture. Must be a png file. Should contain the extension. + # Default: packmenu:textures/gui/logo.png + S:"Texture Path"=packmenu:textures/gui/logo.png + + # The X offset of the logo. + # Default: -650; Range: [-500000 ~ 500000] + I:"X Offset"=-310 + + # The Y offset of the logo. + # Default: 0; Range: [-500000 ~ 500000] + I:"Y Offset"=10 + + # The width of the logo. + # Default: 100; Range: [0 ~ 500000] + I:Width=50 + + # The height of the logo. + # Default: 100; Range: [0 ~ 500000] + I:Height=50 + + # The width of the logo's texture. + # Default: 300; Range: [0 ~ 500000] + I:"Texture Width"=300 + + # The height of the logo's texture. + # Default: 300; Range: [0 ~ 500000] + I:"Texture Height"=300 + + # The anchor point of the logo. The types of anchor points are available on the wiki. + # Default: DEFAULT_LOGO + S:"Anchor Point"=TOP_RIGHT + + # If the logo is enabled or not. + # Default: true + B:"Enable Logo"=true +} + + +slideshow { + # The list of textures to be displayed on the slideshow. If empty, the slideshow is ignored. + # Default: [ + S:Textures < + > + + # How long between slideshow transitions. + # Default: 200; Range: [1 ~ 1000000] + I:Duration=200 + + # How long the slideshow transition lasts. + # Default: 20; Range: [1 ~ 1000000] + I:"Transition Duration"=20 +} + + +support { + # The URL that the link on the supporters page goes to. + # Default: https://www.patreon.com/Shadows_of_Fire?fan_landing=true + S:"Patreon Url"=https://www.patreon.com/Shadows_of_Fire?fan_landing=true +} diff --git a/src/index.toml b/src/index.toml index 838c311..910c963 100644 --- a/src/index.toml +++ b/src/index.toml @@ -8,6 +8,10 @@ hash = "d3f67c209e5b3c9d7f840b3e4bbdb48149220d209d9b9bc5317dca83694d60cd" file = "config/builtinservers.json" hash = "1b26d2227e4b6e7c26e5ddd3276ab4911c4c96586801c740e970acade25c9cb4" +[[files]] +file = "config/packmenu.cfg" +hash = "8a47c67a28ddc3677610670208ac979e996a69544ca260953fd7d686996ab965" + [[files]] file = "config/paxi/datapacks/BetterCombatCompat.zip" hash = "813d3747cab70274f3dcabfedb67bba271534b8839e3dd59c3fbb56d059182a0" @@ -47,10 +51,6 @@ hash = "35e8f0d6ee84ecf70bed440d5b26b523d2c684568f16fdc871ce934d224eec2c" file = "kubejs/assets/capejs/textures/capes/galacticfactory.png" hash = "23116999939851feb0b358564af45813b1e65fbd1e33d9ccfe6fac7b7027e1ad" -[[files]] -file = "kubejs/assets/textures/logo.png" -hash = "1dc067cf5c5aaa84551be3cfc07373c7393f6e736062207a34d7b7531e2e1570" - [[files]] file = "kubejs/client_scripts/cape.js" hash = "d86fdabd2650706a673bc235e3fa19b4339f7d6e3dec2c0dd938f40c7ef880dd" @@ -952,6 +952,78 @@ file = "mods/yungs-extras.pw.toml" hash = "fa202c052bee239aa8c074e13da7c843cda83a2b768769b3d6ae0bc47b11de8e" metafile = true +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/accessibility.json" +hash = "88f8547629519b1cc8724952ef2b7eec805c2eebb7530de7dd7998d4be2a7bcf" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/custom.json" +hash = "26fe154c50cec09ae1ffdb722feb6b445539c05f9d662b4ecbfc18548883e8b4" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/language.json" +hash = "2c31db4e6877cb80f8fb65b7bb88201e8fe290b87776f8ca7c7334bcea000a08" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/mods.json" +hash = "5f29a4d0f93a33ef637a1b91a82781a2c84c3c1e862fa37f9704d9b03d49e827" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/multiplayer.json" +hash = "e1ae3e0c986cd28e777cdcc59135cc54423a0bb8f253c361f0f4d8d8d946b2ce" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/options.json" +hash = "cf0ac731f880d5378f19c44c31de15fc4a71b9a457389316841badd76aa14170" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/quit.json" +hash = "b8b8a955950b28a78f7f4783231693be293a3eb1537412c42e9b65e0bfe40200" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/reloadbutton.json" +hash = "e2e094afa3a1daab0ba3e0945c094c46ddab02751d4d662821a3d87b1b59bafe" + +[[files]] +file = "packmenu/resources/assets/packmenu/buttons/singleplayer.json" +hash = "de47792809583e07ae8b3f24b0cf2d906f8e03813f33a234744dfdf34c1d41d1" + +[[files]] +file = "packmenu/resources/assets/packmenu/lang/en_us.json" +hash = "94ed85dd5d9d5e94508740aca0b3dd157cf56ee94e02023af451db8f3d154c10" + +[[files]] +file = "packmenu/resources/assets/packmenu/texts/supporters.txt" +hash = "a930d6ba2229ffdaf7768a063165cf8d3b5ca7bb5e6ef5e65b0ddc49be237833" + +[[files]] +file = "packmenu/resources/assets/packmenu/textures/gui/aklizbutton.png" +hash = "0cebbd7cea1cb15bde9b058ae93058db935e79ef607ea2c1af990805fbf43701" + +[[files]] +file = "packmenu/resources/assets/packmenu/textures/gui/background.png" +hash = "2a85bf8d7c5fc57a746d14a03826743994b1e649cb1c793f329d2a4c716b8710" + +[[files]] +file = "packmenu/resources/assets/packmenu/textures/gui/logo.png" +hash = "1dc067cf5c5aaa84551be3cfc07373c7393f6e736062207a34d7b7531e2e1570" + +[[files]] +file = "packmenu/resources/assets/packmenu/textures/gui/reload.png" +hash = "c0a17c3fa592833475a1c73c35fe7a08d6aa76357272c0e039d8bdd7b22f0a11" + +[[files]] +file = "packmenu/resources/assets/packmenu/textures/gui/widgets.png" +hash = "26a3d4b8a23b75fdb7a0c5e8b7835ce8bdf98873a81695dde9f7010845edfe8b" + +[[files]] +file = "packmenu/resources/pack.mcmeta" +hash = "c92d7a6dc58ca7168bda2dfc3cc0a5acde7af7a4d2134ec54d2014ecf47d9928" + +[[files]] +file = "packmenu/resources/pack.png" +hash = "db4ba9188052b75c67fe536e5e7fc127499611abcb98b3542cf79a450fa13ece" + [[files]] file = "unsup.toml" hash = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" diff --git a/src/pack.toml b/src/pack.toml index b26823b..a1b11fd 100644 --- a/src/pack.toml +++ b/src/pack.toml @@ -1,12 +1,12 @@ name = "GalacticFactory" author = "GalacticFactory" -version = "0.5.11" +version = "0.5.12" pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "c086ac87d4719c7748bc06e1a14c7f2e0b67d793a21e1d935bf15ede7c3b2c87" +hash = "3a4ca21732751d08d609cdf9cc6469d78b866c834213e30f3cbd3bcdbf2389aa" [versions] forge = "47.2.0" diff --git a/src/packmenu/resources/assets/packmenu/buttons/accessibility.json b/src/packmenu/resources/assets/packmenu/buttons/accessibility.json new file mode 100644 index 0000000..c84f313 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/accessibility.json @@ -0,0 +1,15 @@ +{ + "x": 104, + "y": 84, + "width": 20, + "height": 20, + "u": 0, + "v": 0, + "hoverU": 0, + "hoverV": 20, + "texWidth": 32, + "texHeight": 64, + "texture": "textures/gui/accessibility.png", + "action": "OPEN_GUI", + "data": "ACCESSIBILITY" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/buttons/custom.json b/src/packmenu/resources/assets/packmenu/buttons/custom.json new file mode 100644 index 0000000..f82f072 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/custom.json @@ -0,0 +1,9 @@ +{ + "x": 2, + "y": 48, + "width": 98, + "height": 20, + "langKey": "packmenu.discord", + "action": "OPEN_URL", + "data": "https://invite.galacticfactory.cc" +} diff --git a/src/packmenu/resources/assets/packmenu/buttons/language.json b/src/packmenu/resources/assets/packmenu/buttons/language.json new file mode 100644 index 0000000..3860922 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/language.json @@ -0,0 +1,15 @@ +{ + "x": -124, + "y": 84, + "width": 20, + "height": 20, + "u": 0, + "v": 106, + "hoverU": 0, + "hoverV": 126, + "texWidth": 256, + "texHeight": 256, + "widgets": false, + "action": "OPEN_GUI", + "data": "LANGUAGE" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/buttons/mods.json b/src/packmenu/resources/assets/packmenu/buttons/mods.json new file mode 100644 index 0000000..3b3ed02 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/mods.json @@ -0,0 +1,9 @@ +{ + "x": -100, + "y": 48, + "width": 98, + "height": 20, + "langKey": "fml.menu.mods", + "action": "OPEN_GUI", + "data": "MODS" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/buttons/multiplayer.json b/src/packmenu/resources/assets/packmenu/buttons/multiplayer.json new file mode 100644 index 0000000..d2da990 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/multiplayer.json @@ -0,0 +1,9 @@ +{ + "x": -100, + "y": 24, + "width": 200, + "height": 20, + "langKey": "menu.multiplayer", + "action": "OPEN_GUI", + "data": "MULTIPLAYER" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/buttons/options.json b/src/packmenu/resources/assets/packmenu/buttons/options.json new file mode 100644 index 0000000..aaed939 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/options.json @@ -0,0 +1,9 @@ +{ + "x": -100, + "y": 84, + "width": 98, + "height": 20, + "langKey": "menu.options", + "action": "OPEN_GUI", + "data": "OPTIONS" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/buttons/quit.json b/src/packmenu/resources/assets/packmenu/buttons/quit.json new file mode 100644 index 0000000..f2bec55 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/quit.json @@ -0,0 +1,8 @@ +{ + "x": 2, + "y": 84, + "width": 98, + "height": 20, + "langKey": "menu.quit", + "action": "QUIT" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/buttons/reloadbutton.json b/src/packmenu/resources/assets/packmenu/buttons/reloadbutton.json new file mode 100644 index 0000000..dec9eb9 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/reloadbutton.json @@ -0,0 +1,14 @@ +{ + "x": 130, + "y": 84, + "width": 20, + "height": 20, + "u": 0, + "v": 0, + "hoverU": 0, + "hoverV": 20, + "texWidth": 20, + "texHeight": 40, + "texture": "packmenu:textures/gui/reload.png", + "action": "RELOAD" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/buttons/singleplayer.json b/src/packmenu/resources/assets/packmenu/buttons/singleplayer.json new file mode 100644 index 0000000..e6967d7 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/buttons/singleplayer.json @@ -0,0 +1,9 @@ +{ + "x": -100, + "y": 0, + "width": 200, + "height": 20, + "langKey": "menu.singleplayer", + "action": "OPEN_GUI", + "data": "SINGLEPLAYER" +} \ No newline at end of file diff --git a/src/packmenu/resources/assets/packmenu/lang/en_us.json b/src/packmenu/resources/assets/packmenu/lang/en_us.json new file mode 100644 index 0000000..f141b54 --- /dev/null +++ b/src/packmenu/resources/assets/packmenu/lang/en_us.json @@ -0,0 +1,4 @@ +{ + "packmenu.discord": "Join our Discord server!", + "packmenu.akliz": "Become an Akliz Affiliate" +} diff --git a/src/packmenu/resources/assets/packmenu/textures/gui/background.png b/src/packmenu/resources/assets/packmenu/textures/gui/background.png new file mode 100644 index 0000000..046643d Binary files /dev/null and b/src/packmenu/resources/assets/packmenu/textures/gui/background.png differ diff --git a/src/kubejs/assets/textures/logo.png b/src/packmenu/resources/assets/packmenu/textures/gui/logo.png similarity index 100% rename from src/kubejs/assets/textures/logo.png rename to src/packmenu/resources/assets/packmenu/textures/gui/logo.png diff --git a/src/packmenu/resources/assets/packmenu/textures/gui/reload.png b/src/packmenu/resources/assets/packmenu/textures/gui/reload.png new file mode 100644 index 0000000..29caeaa Binary files /dev/null and b/src/packmenu/resources/assets/packmenu/textures/gui/reload.png differ diff --git a/src/packmenu/resources/assets/packmenu/textures/gui/widgets.png b/src/packmenu/resources/assets/packmenu/textures/gui/widgets.png new file mode 100644 index 0000000..8f7802a Binary files /dev/null and b/src/packmenu/resources/assets/packmenu/textures/gui/widgets.png differ diff --git a/src/packmenu/resources/pack.mcmeta b/src/packmenu/resources/pack.mcmeta new file mode 100644 index 0000000..c7caf83 --- /dev/null +++ b/src/packmenu/resources/pack.mcmeta @@ -0,0 +1,6 @@ +{ + "pack": { + "pack_format": 5, + "description": "PackMenu External Resources" + } +} \ No newline at end of file diff --git a/src/packmenu/resources/pack.png b/src/packmenu/resources/pack.png new file mode 100644 index 0000000..fa0184d Binary files /dev/null and b/src/packmenu/resources/pack.png differ