1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-23 13:36:18 +00:00
bedrock-samples/resource_pack/ui/adhoc_screen.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

137 lines
3.3 KiB
JSON

/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "adhoc",
"online_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.online_button",
"$button_text": "thirdPartyConsole.adhoc.onlineNetwork"
},
"local_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.local_button",
"$button_text": "thirdPartyConsole.adhoc.localNetwork"
},
"title_text": {
"type": "label",
"layer": 1,
"text": "thirdPartyConsole.adhoc.title",
"color": "$title_text_color",
"shadow": false
},
"content_panel": {
"type": "stack_panel",
"controls": [
{
"title_text": {
"type": "label",
"layer": 1,
"text": "thirdPartyConsole.adhoc.desc",
"color": "$sub_header_text_color",
"shadow": false
}
}
]
},
"main_panel": {
"type": "input_panel",
"size": "$dialog_size",
"controls": [
{
"common_panel@common.common_panel": {
"$dialog_background": "dialog_background_hollow_1"
}
},
{
"title@adhoc.title_text": {
"offset": [ 10, 9 ],
"size": [ "100%", 15 ],
"anchor_to": "top_middle",
"anchor_from": "top_middle"
}
},
{
"main_content": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-21px", "100%-52px" ],
"offset": [ 10, 24 ],
"type": "label",
"layer": 1,
"text": "thirdPartyConsole.adhoc.desc",
"color": "$sub_header_text_color",
"shadow": false
}
},
{
"online@adhoc.online_button": {
"size": [ "100%-14px", 30 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"offset": [ 7, -40 ]
}
},
{
"local@adhoc.local_button": {
"size": [ "100%-14px", 30 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"offset": [ 7, -8 ],
"layer": 1
}
}
]
},
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"gamepad_helper_a@common.gamepad_helper_a": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"adhoc_screen@common.base_screen": {
"$dialog_size": [ 200, 159 ],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_content": "adhoc.adhoc_screen_content"
},
"adhoc_screen_content": {
"type": "panel",
"controls": [
{
"root_panel": {
"type": "panel",
"controls": [
{ "gamepad_helpers@adhoc.gamepad_helpers": {} },
{ "main_panel@adhoc.main_panel": { "layer": 1 } }
]
}
}
]
}
}