1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-02-21 14:16:09 +00:00
bedrock-samples/resource_pack/ui/store_progress_screen.json
Mike Ammerlaan 43ca2795c2 v1.21.60.10
2025-02-11 09:25:02 -08:00

112 lines
2.8 KiB
JSON

{
"namespace": "store_progress",
"store_progress_screen@common.base_screen": {
"$screen_content": "store_progress.screen_content",
"$screen_background_control": "store_progress.screen_background",
"$fill_alpha": 1,
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
]
},
"screen_content": {
"type": "panel",
"controls": [
{
"title_image": {
"type": "image",
"size": [ "262%y", 69 ],
"offset": [ 0, 15 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"texture": "textures/ui/minecraft_marketplace_title"
}
},
{
"progress_dialog@common_dialogs.main_panel_no_buttons": {
"size": "$world_modal_screen_size",
"$text_name": "store.progress.dialog.title",
"$child_control": "store_progress.dialog_content"
}
}
]
},
"dialog_content": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100% - 10px", "100% - 12px" ],
"controls": [
{
"tooltip_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"tooltip_text": {
"type": "label",
"size": [ "100%", "default" ],
"text": "#tooltip_text",
"color": "$store_white_text_color",
"bindings": [
{
"binding_name": "#tooltip_text"
}
]
}
}
]
}
},
{
"padding": {
"type": "panel",
"size": [ "100%", "fill" ]
}
},
{
"progress_panel": {
"type": "panel",
"size": [ "100%", 5 ],
"controls": [
{
"empty_progress_bar@common_store.store_empty_progress_bar_icon": {
"layer": 1
}
},
{
"progress_percent_panel": {
"type": "panel",
"controls": [
{
"full_progress_bar@common_store.store_full_progress_bar_icon": {
"layer": 2
}
},
{
"progress_bar_nub@common_store.store_progress_bar_nub": {
"size": [ "100% - 11px", 5 ],
"layer": 3
}
}
]
}
}
]
}
}
]
},
"screen_background": {
"type": "image",
"texture": "textures/ui/store_progress_screen_background",
"tiled": "x"
}
}