Files
meatballcraft/config/customloadingscreen/example.json
T
2023-07-31 14:55:15 -07:00

127 lines
3.7 KiB
JSON

{
"renders": [
{
"image": {
"parent": "builtin/panorama",
"image": "textures/gui/title/background/panorama_x.png"
}
},
{
"image": {
"parent": "builtin/image",
"image": "customloadingscreen:textures/generic/darkened_blur_horizontal_strip.png",
"position_type": "CENTER",
"offset_pos": "CENTER",
"position": {
"x": "0",
"y": "0",
"width": "screen_width",
"height": "100"
},
"texture": {
"x": "0",
"y": "0",
"width": "1",
"height": "1"
}
}
},
{
"image": {
"parent":"builtin/image",
"image": "customloadingscreen:textures/progress_bars.png",
"position_type": "CENTER",
"offset_pos": "CENTER",
"position":{
"x": "0",
"y":"20",
"width":"182 * 2",
"height":"20"
},
"texture":{
"x": "0",
"y": "70 / 256.0",
"width": "182 / 256.0",
"height": "10 / 256.0"
}
}
},
{
"image": {
"parent": "builtin/image",
"image": "customloadingscreen:textures/progress_bars.png",
"position_type": "CENTER",
"offset_pos": "CENTER",
"position":{
"x":"percentage * 182 - 182",
"y":"20",
"width":"percentage * 182 * 2",
"height":"20"
},
"texture":{
"x":"0",
"y":"80 / 256.0",
"width": "percentage * 182 / 256.0",
"height":"10 / 256.0"
}
}
},
{
"image": {
"parent": "builtin/text",
"image": "textures/font/ascii.png",
"position_type": "CENTER",
"offset_pos": "CENTER",
"text": "is_reloading ? status : (status + ': ' + sub_status)",
"position": {
"x": "0",
"y": "-20",
"width": "0",
"height": "0"
},
"colour":"0xFF_FF_FF_FF"
}
},
{
"image": {
"parent": "builtin/text",
"image": "textures/font/ascii.png",
"position_type": "CENTER",
"offset_pos": "CENTER",
"text": "is_reloading ? sub_status : ''",
"position": {
"x": "0",
"y": "0",
"width": "0",
"height": "0"
},
"colour":"0xFF_FF_FF_FF"
}
},
{
"image": {
"parent": "builtin/text",
"image": "textures/font/ascii.png",
"position_type": "CENTER",
"offset_pos": "CENTER",
"text": "(floor(percentage * 100)) + '%'",
"position": {
"x": "0",
"y": "-10",
"width": "0",
"height": "0"
},
"colour":"0xFF_FF_FF_FF"
}
}
],
"functions":[
],
"factories":[
],
"actions":[
],
"variables":{
}
}