mirror of
https://git.stillkill.net/MinecraftLeak/Narration-NoGeneratedLevel-20170216.git
synced 2026-10-22 13:12:19 +01:00
241 lines
5.4 KiB
JSON
241 lines
5.4 KiB
JSON
/********************************************************
|
|
+* (c) Mojang. All rights reserved *
|
|
+* (c) Microsoft. All rights reserved. *
|
|
+*********************************************************/
|
|
|
|
{
|
|
"namespace": "xbl_optional_signin",
|
|
|
|
"Xbox_icon": {
|
|
"type": "image",
|
|
"texture": "gui/newgui/xbox4.png",
|
|
"layer": 3,
|
|
"uv": [ 0, 0 ],
|
|
"uv_size": [ 27, 27 ],
|
|
"size": [ 20, 20 ]
|
|
},
|
|
|
|
"xbl_signin_label": {
|
|
"type": "panel",
|
|
"layer": 2,
|
|
"controls": [
|
|
{
|
|
"@Xbox_icon": {
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 24, 0 ]
|
|
}
|
|
},
|
|
{
|
|
"@common.new_button_label": {
|
|
"text": "xbox.signInLong"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"xbl_signin_button@common.new_button": {
|
|
"$pressed_button_name": "button.xbl_signin",
|
|
"controls": [
|
|
{
|
|
"default@common.new_button_state_default": {
|
|
"controls": [
|
|
{
|
|
"@xbl_optional_signin.xbl_signin_label": { }
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"hover@common.new_button_state_hover": {
|
|
"controls": [
|
|
{
|
|
"@xbl_optional_signin.xbl_signin_label": { }
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"pressed@common.new_button_state_pressed": {
|
|
"controls": [
|
|
{
|
|
"@xbl_optional_signin.xbl_signin_label": {
|
|
"offset": [ 0, 1 ]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
"dialog_image": {
|
|
"type": "image",
|
|
"layer": 2,
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"texture": "#texture",
|
|
"size": [ "137.666%y-2px", "100%-2px" ],
|
|
"offset": [ 1, 1 ],
|
|
"uv_size": [ 413, 300 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#texture"
|
|
}
|
|
]
|
|
},
|
|
|
|
"dialog_image_border": {
|
|
"type": "image",
|
|
"layer": 1,
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"texture": "gui/newgui/Grey.png",
|
|
"size": [ "137.666%y", "100%" ]
|
|
},
|
|
|
|
"title_image_panel": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{
|
|
"@dialog_image": { }
|
|
},
|
|
{
|
|
"@dialog_image_border": { }
|
|
},
|
|
{
|
|
"message_label": {
|
|
"type": "label",
|
|
"size": [ "100%-137.666%y-16px", "100%" ],
|
|
"anchor_from": "right_middle",
|
|
"anchor_to": "right_middle",
|
|
"offset": [ -4, 1 ],
|
|
"alignment": "top_middle",
|
|
"wrap": true,
|
|
"clip": true,
|
|
"text": "#message",
|
|
"layer": 2,
|
|
"color": [ 1, 1, 1 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#message"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"main_panel": {
|
|
"type": "input_panel",
|
|
"size": "$xbl_optional_signin_screen_size",
|
|
"controls": [
|
|
{ "@common.common_panel": { "$dialog_background": "dialog_background_hollow_3" } },
|
|
{
|
|
"title_label": {
|
|
"type": "label",
|
|
"size": [ "100%", 25 ],
|
|
"alignment": "center",
|
|
"text": "#title",
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"layer": 2,
|
|
"color": [ 0, 0, 0 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#title"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"myimage@title_image_panel": {
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%-18px", "100%-67px" ],
|
|
"offset": [ 10, 25 ]
|
|
}
|
|
},
|
|
{
|
|
"a@xbl_signin_button": {
|
|
"size": [ "100%-20px", 30 ],
|
|
"anchor_from": "bottom_left",
|
|
"anchor_to": "bottom_left",
|
|
"offset": [ 10, -10 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"gamepad_helpers": {
|
|
"type": "panel",
|
|
"layer": 2,
|
|
"controls": [
|
|
{
|
|
"@common.gamepad_helper_a": {
|
|
"size": [ 30, 10 ],
|
|
"offset": [ -70, -2 ],
|
|
"anchor_from": "bottom_right",
|
|
"anchor_to": "bottom_right"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
// -----------------------------------------------
|
|
//
|
|
// screen
|
|
//
|
|
// -----------------------------------------------
|
|
"xbl_optional_signin_screen@common.base_screen": {
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_cancel",
|
|
"to_button_id": "button.menu_exit",
|
|
"mapping_type": "global"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_up",
|
|
"to_button_id": "button.menu_up",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_down",
|
|
"to_button_id": "button.menu_down",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_left",
|
|
"to_button_id": "button.menu_left",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_right",
|
|
"to_button_id": "button.menu_right",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
}
|
|
],
|
|
"$screen_content": "xbl_optional_signin.xbl_optional_signin_screen_content"
|
|
},
|
|
|
|
"xbl_optional_signin_screen_content": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{
|
|
"root_panel": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{ "@gamepad_helpers": { } },
|
|
{ "@main_panel": { "layer": 1 } }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|