mirror of
https://github.com/Adam-Ant/modpack_spring_17
synced 2024-12-20 12:54:34 +00:00
Add custom main menu
This commit is contained in:
parent
4116661e2c
commit
415d6c13cb
56
src/config/00.
Normal file
56
src/config/00.
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
"0": {
|
||||
"minKills": 0,
|
||||
"maxKills": 63,
|
||||
"checkPlayer": true,
|
||||
"checkLight": false,
|
||||
"checkRedstone": false,
|
||||
"spawnAmount": 0,
|
||||
"cooldown": 0
|
||||
},
|
||||
"1": {
|
||||
"minKills": 64,
|
||||
"maxKills": 127,
|
||||
"checkPlayer": true,
|
||||
"checkLight": true,
|
||||
"checkRedstone": false,
|
||||
"spawnAmount": 2,
|
||||
"cooldown": 20
|
||||
},
|
||||
"2": {
|
||||
"minKills": 128,
|
||||
"maxKills": 255,
|
||||
"checkPlayer": true,
|
||||
"checkLight": true,
|
||||
"checkRedstone": false,
|
||||
"spawnAmount": 4,
|
||||
"cooldown": 10
|
||||
},
|
||||
"3": {
|
||||
"minKills": 256,
|
||||
"maxKills": 511,
|
||||
"checkPlayer": false,
|
||||
"checkLight": true,
|
||||
"checkRedstone": false,
|
||||
"spawnAmount": 4,
|
||||
"cooldown": 5
|
||||
},
|
||||
"4": {
|
||||
"minKills": 512,
|
||||
"maxKills": 1023,
|
||||
"checkPlayer": false,
|
||||
"checkLight": true,
|
||||
"checkRedstone": false,
|
||||
"spawnAmount": 4,
|
||||
"cooldown": 5
|
||||
},
|
||||
"5": {
|
||||
"minKills": 1024,
|
||||
"maxKills": 1024,
|
||||
"checkPlayer": false,
|
||||
"checkLight": false,
|
||||
"checkRedstone": true,
|
||||
"spawnAmount": 6,
|
||||
"cooldown": 2
|
||||
}
|
||||
}
|
@ -1,156 +0,0 @@
|
||||
{
|
||||
"images":
|
||||
{
|
||||
"title":
|
||||
{
|
||||
"image" : "custommainmenu:textures/gui/minecraft.png",
|
||||
"posX" : -137,
|
||||
"posY" : 30,
|
||||
"width" : 512,
|
||||
"height" : 512,
|
||||
"alignment" : "top_center"
|
||||
}
|
||||
},
|
||||
|
||||
"buttons":
|
||||
{
|
||||
"singleplayer":
|
||||
{
|
||||
"text" : "menu.singleplayer",
|
||||
"posX" : -100,
|
||||
"posY" : 48,
|
||||
"width" : 200,
|
||||
"height" : 20,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "singleplayer"
|
||||
}
|
||||
},
|
||||
|
||||
"multiplayer":
|
||||
{
|
||||
"text" : "menu.multiplayer",
|
||||
"posX" : -100,
|
||||
"posY" : 72,
|
||||
"width" : 200,
|
||||
"height" : 20,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "multiplayer"
|
||||
}
|
||||
},
|
||||
|
||||
"mods":
|
||||
{
|
||||
"text" : "fml.menu.mods",
|
||||
"posX" : -100,
|
||||
"posY" : 96,
|
||||
"width" : 200,
|
||||
"height" : 20,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "mods"
|
||||
}
|
||||
},
|
||||
|
||||
"options":
|
||||
{
|
||||
"text" : "menu.options",
|
||||
"posX" : -100,
|
||||
"posY" : 132,
|
||||
"width" : 98,
|
||||
"height" : 20,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "options"
|
||||
}
|
||||
},
|
||||
|
||||
"quit":
|
||||
{
|
||||
"text" : "menu.quit",
|
||||
"posX" : 2,
|
||||
"posY" : 132,
|
||||
"width" : 98,
|
||||
"height" : 20,
|
||||
"action" :
|
||||
{
|
||||
"type" : "quit"
|
||||
}
|
||||
},
|
||||
|
||||
"language":
|
||||
{
|
||||
"text" : "",
|
||||
"posX" : -124,
|
||||
"posY" : 132,
|
||||
"width" : 20,
|
||||
"height" : 20,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "languages"
|
||||
}
|
||||
},
|
||||
|
||||
"refresh":
|
||||
{
|
||||
"text" : "",
|
||||
"posX" : -154,
|
||||
"posY" : 132,
|
||||
"width" : 20,
|
||||
"height" : 20,
|
||||
"texture" : "custommainmenu:textures/gui/buttons.png",
|
||||
"action" :
|
||||
{
|
||||
"type" : "refresh"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"labels":
|
||||
{
|
||||
"mojang":
|
||||
{
|
||||
"text" : "Copyright Mojang AB. Do not distribute!",
|
||||
"posX" : -197,
|
||||
"posY" : -10,
|
||||
"color" : -1,
|
||||
"alignment" : "bottom_right"
|
||||
},
|
||||
|
||||
"fml":
|
||||
{
|
||||
"text" : "",
|
||||
"posX" : 2,
|
||||
"posY" : -40,
|
||||
"color" : -1,
|
||||
"alignment" : "bottom_left"
|
||||
}
|
||||
},
|
||||
|
||||
"other":
|
||||
{
|
||||
"splash-text":
|
||||
{
|
||||
"posX" : 90,
|
||||
"posY" : 70,
|
||||
"color" : -256,
|
||||
"alignment" : "top_center",
|
||||
"texts" : "file:minecraft:texts/splashes.txt"
|
||||
},
|
||||
|
||||
"panorama":
|
||||
{
|
||||
"images" : "minecraft:textures/gui/title/background/panorama_%c.png",
|
||||
"animate" : true,
|
||||
"animationSpeed" : 1,
|
||||
"blur" : true,
|
||||
"gradient" : true
|
||||
}
|
||||
}
|
||||
}
|
142
src/config/_CLIENT/CustomMainMenu/mainmenu.json
Normal file
142
src/config/_CLIENT/CustomMainMenu/mainmenu.json
Normal file
@ -0,0 +1,142 @@
|
||||
{
|
||||
"images":
|
||||
{
|
||||
"title":
|
||||
{
|
||||
"image" : "menu:logo.png",
|
||||
"posX" : -40,
|
||||
"posY" : 20,
|
||||
"width" : 80 ,
|
||||
"height" : 80,
|
||||
"alignment" : "top_center"
|
||||
}
|
||||
},
|
||||
|
||||
"buttons":
|
||||
{
|
||||
"clockwork":
|
||||
{
|
||||
"text" : "Connect to Clockwork",
|
||||
"posX" : -101,
|
||||
"posY" : -20,
|
||||
"width" : 202,
|
||||
"height" : 20,
|
||||
"alignment" : "center",
|
||||
"texture" : "menu:button.png",
|
||||
"shadow" : true,
|
||||
"action" :
|
||||
{
|
||||
"type" : "connectToServer",
|
||||
"ip" : "forge.cwgaming.co.uk"
|
||||
}
|
||||
},
|
||||
|
||||
"singleplayer":
|
||||
{
|
||||
"text" : "menu.singleplayer",
|
||||
"posX" : -101,
|
||||
"posY" : 2,
|
||||
"width" : 100,
|
||||
"height" : 20,
|
||||
"alignment" : "center",
|
||||
"texture" : "menu:button.png",
|
||||
"shadow" : true,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "singleplayer"
|
||||
}
|
||||
},
|
||||
|
||||
"multiplayer":
|
||||
{
|
||||
"text" : "menu.multiplayer",
|
||||
"posX" : 1,
|
||||
"posY" : 2,
|
||||
"width" : 100,
|
||||
"height" : 20,
|
||||
"alignment" : "center",
|
||||
"texture" : "menu:button.png",
|
||||
"shadow" : true,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "multiplayer"
|
||||
}
|
||||
},
|
||||
|
||||
"mods":
|
||||
{
|
||||
"text" : "fml.menu.mods",
|
||||
"posX" : 1,
|
||||
"posY" : 24,
|
||||
"width" : 100,
|
||||
"height" : 20,
|
||||
"alignment" : "center",
|
||||
"texture" : "menu:button.png",
|
||||
"shadow" : true,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "mods"
|
||||
}
|
||||
},
|
||||
|
||||
"options":
|
||||
{
|
||||
"text" : "menu.options",
|
||||
"posX" : -101,
|
||||
"posY" : 24,
|
||||
"width" : 100,
|
||||
"height" : 20,
|
||||
"alignment" : "center",
|
||||
"texture" : "menu:button.png",
|
||||
"shadow" : true,
|
||||
"action" :
|
||||
{
|
||||
"type" : "openGui",
|
||||
"gui" : "options"
|
||||
}
|
||||
},
|
||||
|
||||
"quit":
|
||||
{
|
||||
"text" : "menu.quit",
|
||||
"posX" : -50,
|
||||
"posY" : 63,
|
||||
"width" : 100,
|
||||
"height" : 20,
|
||||
"alignment" : "center",
|
||||
"texture" : "menu:button.png",
|
||||
"shadow" : true,
|
||||
"action" :
|
||||
{
|
||||
"type" : "quit"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"labels":
|
||||
{
|
||||
"mojang":
|
||||
{
|
||||
"text" : "Copyright Mojang AB. Do not distribute! Unless you wanna. Then w/e",
|
||||
"posX" : -197,
|
||||
"posY" : -10,
|
||||
"color" : -1,
|
||||
"alignment" : "bottom_right"
|
||||
}
|
||||
},
|
||||
|
||||
"other":
|
||||
{
|
||||
"panorama":
|
||||
{
|
||||
"images" : "minecraft:textures/gui/title/background/panorama_%c.png",
|
||||
"animate" : true,
|
||||
"animationSpeed" : 1,
|
||||
"blur" : true,
|
||||
"gradient" : false
|
||||
}
|
||||
}
|
||||
}
|
BIN
src/resources/menu/button.png
Normal file
BIN
src/resources/menu/button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
src/resources/menu/logo.png
Normal file
BIN
src/resources/menu/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
Loading…
Reference in New Issue
Block a user