mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 12:26:14 +00:00
335 lines
8.0 KiB
JSON
335 lines
8.0 KiB
JSON
/********************************************************
|
|
+* (c) Mojang. All rights reserved *
|
|
+* (c) Microsoft. All rights reserved. *
|
|
+*********************************************************/
|
|
|
|
{
|
|
"namespace": "common_art",
|
|
|
|
"title_image": {
|
|
"type": "image",
|
|
"layer": 1,
|
|
"texture": "textures/ui/title"
|
|
},
|
|
|
|
"title_image_edu": {
|
|
"type": "image",
|
|
"layer": 1,
|
|
"variables": [
|
|
{
|
|
"requires": "(not $is_preview_app)",
|
|
"$title_texture": "textures/ui/title_edu"
|
|
},
|
|
{
|
|
"requires": "$is_preview_app",
|
|
"$title_texture": "textures/ui/title_edu_preview"
|
|
}
|
|
],
|
|
"texture": "$title_texture"
|
|
},
|
|
|
|
"splash_text": {
|
|
"type": "custom",
|
|
"renderer": "splash_text_renderer",
|
|
"size": [ 0.1, 0.1 ],
|
|
"layer": 2,
|
|
"anchor_from": "right_middle",
|
|
"anchor_to": "right_middle",
|
|
"$splash_text_visible|default": true,
|
|
"visible": "$splash_text_visible"
|
|
},
|
|
|
|
"title_panel_pocket": {
|
|
"type": "panel",
|
|
"offset": [ 0, "5%" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"size": [ "100%", "12.5%x" ],
|
|
"controls": [
|
|
{ "title_image@common_art.title_image": {} },
|
|
{
|
|
"splash_text@splash_text": {
|
|
"offset": [ -106, 8 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel_win10": {
|
|
"type": "panel",
|
|
"size": [ "55%", "18.85%x" ],
|
|
"offset": [ 0, "10%" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"controls": [
|
|
{ "title_image@common_art.title_image": {} },
|
|
{
|
|
"splash_text@splash_text": {
|
|
"offset": [ -8, 10 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel_osx": {
|
|
"type": "panel",
|
|
"size": [ "55%", "19.37%x" ],
|
|
"offset": [ 0, "10%" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"controls": [
|
|
{ "title_image@common_art.title_image": {} },
|
|
{
|
|
"splash_text@splash_text": {
|
|
"offset": [ -8, 10 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel_edu_desktop": {
|
|
"type": "panel",
|
|
"size": [ "100%", 62 ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"offset": [ 0, "2.5%" ],
|
|
"controls": [
|
|
{
|
|
"banner_control": {
|
|
"type": "panel",
|
|
"ignored": true, // commit 9038293a5d684e150321d46fee14e6beb0043c42 to bring it back
|
|
"controls": [
|
|
{
|
|
"banner": {
|
|
"type": "image",
|
|
"texture": "textures/ui/edu_green_tile",
|
|
"tiled": true,
|
|
"tiled_scale": [ 0.78, 0.78 ]
|
|
}
|
|
},
|
|
{
|
|
"drop_shadow": {
|
|
"type": "image",
|
|
"texture": "textures/ui/Black",
|
|
"offset": [ 0, 1 ],
|
|
"size": [ "100%", 1 ],
|
|
"alpha": 0.3,
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"title_control": {
|
|
"type": "panel",
|
|
"size": [ "380%y", 48 ],
|
|
"layer": 1,
|
|
"controls": [
|
|
{ "title_image_edu@common_art.title_image_edu": {} },
|
|
{
|
|
"splash_text@splash_text": {
|
|
"offset": [ -14, 18 ]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel_edu_mobile": {
|
|
"type": "panel",
|
|
"size": [ "100%", 62 ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"offset": [ 0, "2.5%" ],
|
|
"controls": [
|
|
{
|
|
"title_control": {
|
|
"type": "panel",
|
|
"size": [ "380%y", 48 ],
|
|
"layer": 1,
|
|
"controls": [
|
|
{ "title_image_edu@common_art.title_image_edu": {} },
|
|
{
|
|
"splash_text@splash_text": {
|
|
"offset": [ -12, 6 ]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel_firetv": {
|
|
"type": "panel",
|
|
"offset": [ 0, "10%" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"size": [ "55%", "19.37%x" ],
|
|
"controls": [
|
|
{ "title_image@common_art.title_image": {} },
|
|
{
|
|
"splash_text@splash_text": {
|
|
"offset": [ -8, 12 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel_vr": {
|
|
"type": "panel",
|
|
"size": [ "55%", "19.37%x" ],
|
|
"offset": [ 0, "10%" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"controls": [
|
|
{ "title_image@common_art.title_image": {} },
|
|
{
|
|
"splash_text@splash_text": {
|
|
"offset": [ -8, 12 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel_content": {
|
|
"type": "panel",
|
|
"variables": [
|
|
{
|
|
"requires": "$win10_edition",
|
|
"$title_panel": "title_panel_win10"
|
|
},
|
|
{
|
|
"requires": "$osx_edition",
|
|
"$title_panel": "title_panel_osx"
|
|
},
|
|
{
|
|
"requires": "($education_edition and $is_desktop)",
|
|
"$title_panel": "title_panel_edu_desktop",
|
|
"$start_screen": false
|
|
},
|
|
{
|
|
"requires": "($education_edition and not $is_desktop)",
|
|
"$title_panel": "title_panel_edu_mobile",
|
|
"$start_screen": false
|
|
},
|
|
{
|
|
"requires": "($pocket_edition or $console_edition)",
|
|
"$title_panel": "title_panel_pocket"
|
|
},
|
|
{
|
|
"requires": "$fire_tv",
|
|
"$title_panel": "title_panel_firetv"
|
|
},
|
|
{
|
|
"requires": "$gear_vr",
|
|
"$title_panel": "title_panel_vr"
|
|
}
|
|
],
|
|
"controls": [
|
|
{
|
|
"$title_panel@$title_panel": {}
|
|
}
|
|
]
|
|
},
|
|
|
|
"start_title_panel_content": {
|
|
"type": "panel",
|
|
"size": [ "100%", "100%c" ],
|
|
"variables": [
|
|
{
|
|
"requires": "$win10_edition",
|
|
"$title_panel": "title_panel_win10"
|
|
},
|
|
{
|
|
"requires": "$osx_edition",
|
|
"$title_panel": "title_panel_osx"
|
|
},
|
|
{
|
|
"requires": "($education_edition and $is_desktop)",
|
|
"$title_panel": "title_panel_edu_desktop",
|
|
"$start_screen": true
|
|
},
|
|
{
|
|
"requires": "($education_edition and not $is_desktop)",
|
|
"$title_panel": "title_panel_edu_mobile",
|
|
"$start_screen": true
|
|
},
|
|
{
|
|
"requires": "($pocket_edition or $console_edition)",
|
|
"$title_panel": "title_panel_pocket"
|
|
},
|
|
{
|
|
"requires": "$fire_tv",
|
|
"$title_panel": "title_panel_firetv"
|
|
},
|
|
{
|
|
"requires": "$gear_vr",
|
|
"$title_panel": "title_panel_vr"
|
|
}
|
|
],
|
|
"controls": [
|
|
{
|
|
"$title_panel@$title_panel": {}
|
|
}
|
|
]
|
|
},
|
|
|
|
"pause_logo_panel": {
|
|
"type": "input_panel",
|
|
"size": [ "100%", "100%c + 2px" ],
|
|
"variables": [
|
|
{
|
|
"requires": "$win10_edition",
|
|
"$title_panel": "common_art.title_image",
|
|
"$logo_max_size": [ 275, "18.85%x" ],
|
|
"$logo_size": [ "90%", "18.85%x" ]
|
|
},
|
|
{
|
|
"requires": "$osx_edition",
|
|
"$title_panel": "common_art.title_image",
|
|
"$logo_max_size": [ 275, "19.37%x" ],
|
|
"$logo_size": [ "90%", "19.37%x" ]
|
|
},
|
|
{
|
|
"requires": "($education_edition)",
|
|
"$title_panel": "common_art.title_image_edu",
|
|
"$logo_max_size": [ 275, "24.355%x" ],
|
|
"$logo_size": [ "90%", "24.355%x" ],
|
|
"$achievements_ignored": true
|
|
},
|
|
{
|
|
"requires": "($pocket_edition or $console_edition)",
|
|
"$title_panel": "common_art.title_image",
|
|
"$logo_max_size": [ 260, "21.769%x" ],
|
|
"$logo_size": [ "90%", "21.769%x" ]
|
|
},
|
|
{
|
|
"requires": "$fire_tv",
|
|
"$title_panel": "common_art.title_image",
|
|
"$logo_max_size": [ 275, "19.37%x" ],
|
|
"$logo_size": [ "90%", "19.37%x" ]
|
|
},
|
|
{
|
|
"requires": "$gear_vr",
|
|
"$title_panel": "common_art.title_image",
|
|
"$logo_max_size": [ 275, "19.37%x" ],
|
|
"$logo_size": [ "90%", "19.37%x" ]
|
|
}
|
|
],
|
|
"controls": [
|
|
{
|
|
"logo@$title_panel": {
|
|
"size": "$logo_size",
|
|
"max_size": "$logo_max_size"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
}
|