1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-23 12:26:14 +00:00
bedrock-samples/resource_pack/ui/resource_packs_screen.json
Mike Ammerlaan 1440438305 v1.21.30.3
2024-09-17 09:13:33 -07:00

3819 lines
116 KiB
JSON

{
"namespace": "resource_packs",
//---------------------------------------------------------------------------
// Common Resources
//---------------------------------------------------------------------------
"black_image": {
"type": "image",
"texture": "textures/ui/Black"
}, //pack item background
"gray_image": {
"type": "image",
"texture": "textures/ui/Gray"
}, //pack buttons background
"white_image": {
"type": "panel",
"$glyph_color|default": [ 1.0, 1.0, 1.0 ],
"controls": [
{
"border": {
"type": "image",
"size": [ "100%", "100%" ],
"texture": "textures/ui/White",
"color": "$glyph_color"
}
}
]
}, //image white boarder
"icon_image": {
"type": "image",
"texture": "#icon_path",
"zip_folder": "#icon_zip",
"texture_file_system": "#icon_file_system",
"$icon_collection_name": "none",
"layer": 8,
"bindings": [
{
"binding_collection_name": "$icon_collection_name",
"binding_name": "#icon_path",
"binding_name_override": "#texture",
"binding_type": "collection"
},
{
"binding_collection_name": "$icon_collection_name",
"binding_name": "#icon_zip",
"binding_name_override": "#zip_folder",
"binding_type": "collection"
},
{
"binding_collection_name": "$icon_collection_name",
"binding_name": "#icon_file_system",
"binding_name_override": "#texture_file_system",
"binding_type": "collection"
}
]
}, //pack image
"resource_packs_toggle_button_control": {
"type": "panel",
"layer": 2,
"controls": [
{
"icon_border@white_image": {
"size": [ 17, 17 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 5, 0 ],
"layer": 1
}
},
{
"cycling_icon": {
"type": "image",
"size": [ 15, 15 ],
"offset": [ 6, 0 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$icon_collection_name": "none",
"layer": 3,
"bindings": [
{
"binding_name": "$cycling_icon_path",
"binding_name_override": "#texture",
"binding_condition": "always"
},
{
"binding_name": "$cycling_icon_zip",
"binding_name_override": "#zip_folder",
"binding_condition": "always"
},
{
"binding_name": "$cycling_icon_file_system",
"binding_name_override": "#texture_file_system",
"binding_condition": "always"
}
]
}
},
{
"tab_button_text": {
"type": "label",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"max_size": [ "100% - 34px", "100%" ],
"offset": [ 34, 0 ],
"text": "$button_text",
"layer": 3,
"color": "$text_color",
"alpha": "$content_alpha"
}
}
]
}, //menu button, no edit
"resource_packs_section_toggle_base@common_toggles.light_ui_toggle": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "30px" ],
"$button_size_override": [ "100%", "100% + 1px" ],
"$button_type_panel": "resource_packs.resource_packs_toggle_button_control",
"$radio_toggle_group": true,
"$toggle_name": "navigation_tab",
"$toggle_group_default_selected": "$default_selector_toggle_index",
"$toggle_tab_focus_binding_type": "global",
"$toggle_tab_focus_binding_name": "#navigation_tab_focus_precedence",
"$toggle_on_hover_binding_type": "global",
"$toggle_on_hover_binding_name": "#toggle_on_hover",
"$toggle_tts_override_toggle_value": " ",
"$toggle_tts_name": "" // We don't want to say 'toggle' for section toggles
}, //menu button, no edit
"selected_icon_image@resource_packs.icon_image": {
"$icon_collection_name": "$selected_pack_items"
},
"available_icon_image@resource_packs.icon_image": {
"$icon_collection_name": "$available_pack_items"
},
"realms_icon_image@resource_packs.icon_image": {
"$icon_collection_name": "$realms_pack_items"
},
"unowned_icon_image@resource_packs.icon_image": {
"$icon_collection_name": "$unowned_pack_items"
},
"invalid_icon_image@resource_packs.icon_image": {
"$icon_collection_name": "$invalid_pack_items"
},
"minus_image": {
"type": "image",
"size": [ 11, 3 ],
"texture": "textures/ui/minus"
}, //minus image
"plus_image": {
"type": "image",
"size": [ 11, 11 ],
"texture": "textures/ui/plus"
}, //plus image
"minus_text@resource_packs.gray_label": {
"size": [ "default", 10 ],
"max_size": [ "100%", 10 ],
"text": "$button.remove"
},
"plus_text@resource_packs.gray_label": {
"size": [ "default", 10 ],
"max_size": [ "100%", 10 ],
"text": "$button.add"
},
"store_text@resource_packs.gray_label": {
"size": [ "default", 10 ],
"max_size": [ "100%", 10 ],
"text": "$view_in_store"
},
"error_image": {
"type": "image",
"size": [ 9, 14 ],
"texture": "textures/ui/ErrorGlyph"
}, //red exclaimation
"error_image_hover": {
"type": "image",
"size": [ 11, 16 ],
"texture": "textures/ui/ErrorGlyph_small_hover"
},
"error_image_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"default@resource_packs.error_image": {
"ignored": "(not $default_state)"
}
},
{
"hover@resource_packs.error_image_hover": {
"ignored": "($default_state)"
}
}
]
},
"warning_image": {
"type": "image",
"size": [ 9, 14 ],
"texture": "textures/ui/Caution"
}, //yellow exclaimation
"warning_image_hover": {
"type": "image",
"size": [ 11, 16 ],
"texture": "textures/ui/WarningGlyph_small_hover"
},
"warning_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"default@resource_packs.warning_image": {
"ignored": "($hover_state)"
}
},
{
"hover@resource_packs.warning_image_hover": {
"ignored": "(not $hover_state)"
}
}
]
},
"no_error_image": {
"type": "image",
"size": [ 14, 12 ],
"texture": "textures/ui/confirm"
}, //check image
"no_error_image_hover": {
"type": "image",
"size": [ 16, 14 ],
"texture": "textures/ui/New_confirm_Hover"
},
"no_error_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"default@resource_packs.no_error_image": {
"ignored": "($hover_state)"
}
},
{
"hover@resource_packs.no_error_image_hover": {
"ignored": "(not $hover_state)"
}
}
]
},
"up_arrow_image": {
"offset": [ 0, 2 ],
"type": "image",
"texture": "textures/ui/up_arrow",
"size": [ 14, 14 ],
"color": "$dark_button_secondary_default_text_color"
}, //up arrow image
"down_arrow_image": {
"type": "image",
"texture": "textures/ui/down_arrow",
"size": [ 14, 14 ],
"color": "$dark_button_secondary_default_text_color"
}, //down arrow image
"up_arrow_image_hover": {
"offset": [ 0, 2 ],
"type": "image",
"texture": "textures/ui/up_arrow",
"size": [ 14, 14 ],
"color": "$main_header_text_color"
},
"down_arrow_image_hover": {
"type": "image",
"texture": "textures/ui/down_arrow",
"size": [ 14, 14 ],
"color": "$main_header_text_color"
},
"up_arrow_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"default@resource_packs.up_arrow_image": {
"ignored": "($hover_state)"
}
},
{
"hover@resource_packs.up_arrow_image_hover": {
"ignored": "(not $hover_state)"
}
}
]
},
"up_arrow_wrapper": {
"type": "panel",
"size": [ 20, 15 ],
"controls": [
{
"down_arrow@resource_packs.up_arrow_panel": {
"offset": [ 0, 1 ]
}
},
{
"divider_right@common.vertical_divider": {
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
},
"down_arrow_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"default@resource_packs.down_arrow_image": {
"ignored": "($hover_state)"
}
},
{
"hover@resource_packs.down_arrow_image_hover": {
"ignored": "(not $hover_state)"
}
}
]
},
"down_arrow_wrapper": {
"type": "panel",
"size": [ 20, 15 ],
"controls": [
{
"down_arrow@resource_packs.down_arrow_panel": {
"offset": [ 0, 1 ]
}
},
{
"divider_right@common.vertical_divider": {
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
},
"progress_loading_bars": {
"type": "image",
"layer": 1,
"texture": "textures/ui/loading_bar",
"size": [ 16, 8 ],
"uv_size": [ 64, 8 ],
"uv": "@common.bar_animation",
"color": [ 0.7, 0.7, 0.7, 1.0 ]
}, //tiny loading in button
"warning_image_wrapper": {
"type": "panel",
"size": [ 16, 14 ],
"controls": [
{
"error_image@resource_packs.error_image_panel": {
"bindings": [
{
"binding_collection_name": "$selected_pack_items",
"binding_name": "#has_errors",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"warning_image@resource_packs.warning_panel": {
"bindings": [
{
"binding_collection_name": "$selected_pack_items",
"binding_name": "#has_warnings",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"no_error_panel@resource_packs.no_error_panel": {
"offset": [ 0, 1 ],
"bindings": [
{
"binding_collection_name": "$selected_pack_items",
"binding_name": "#error_free",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"progress_loading_bars@resource_packs.progress_loading_bars": {
"bindings": [
{
"binding_collection_name": "$selected_pack_items",
"binding_name": "#report_generating",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}, //far right button for packs (can be check, exclaimation, or loading)
"tooltip_image_wrapper": {
"type": "panel",
"size": [ 16, 14 ],
"controls": [
{
"error_image@resource_packs.error_image": {
"layer": 2,
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_type": "collection",
"binding_name": "#any_errors",
"binding_name_override": "#visible"
}
]
}
},
{
"warning_image@resource_packs.warning_image": {
"layer": 1,
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_type": "collection",
"binding_name": "#any_warnings",
"binding_name_override": "#visible"
}
]
}
}
]
}, //far right button for packs (can be check, exclaimation, or loading)
"options_image": {
"type": "image",
"size": [ 14, 14 ],
"texture": "textures/ui/icon_setting"
},
"options_image_hover": {
"type": "image",
"size": [ 14, 14 ],
"texture": "textures/ui/settings_glyph_2x"
},
"options_image_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"default@resource_packs.options_image": {
"ignored": "($hover_state)"
}
},
{
"hover": {
"type": "panel",
"size": [ "100%", "100%" ],
"ignored": "(not $hover_state)",
"controls": [
{
"image@resource_packs.options_image": {
"layer": 1
}
},
{
"border@resource_packs.options_image_hover": {
"layer": 2
}
}
]
}
}
]
},
"options_wrapper": {
"type": "panel",
"size": [ 18, 14 ],
"controls": [
{
"options@resource_packs.options_image_panel": {
"offset": [ 0, 2 ]
}
},
{
"divider_right@common.vertical_divider": {
"offset": [ 1, 2 ],
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
},
"common_pack_button@common.button": {
"sound_volume": 1.0,
"size": [ "100%", "100%c" ],
"focus_enabled": true
}, //general button for a pack
//---------------------------------------------------------------------------
// Pack Button Layout
//---------------------------------------------------------------------------
"available_text_panel": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_right",
"anchor_to": "top_right",
"offset": [ -1, 1 ],
"size": [ "100% - 48px", "100%c" ],
"$size|default": [ "100% - 60px", 32 ],
"$inner_size|default": [ "100%", "fill" ],
"$description_size|default": [ "100%", "100%" ],
"controls": [
{
"name_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "10px" ],
"controls": [
{
"available_pack_name_label@resource_packs.available_pack_name_label": {
"layer": 5,
"size": [ "fill", 10 ]
}
},
{
"available_file_size_label@resource_packs.available_file_size_label": {
"layer": 5,
"size": [ "default", 10 ]
}
}
]
}
},
{
"full_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": "$size",
"controls": [
{
"description_panel": {
"layer": 4,
"type": "panel",
"size": "$inner_size",
"controls": [
{
"available_pack_description_label@resource_packs.available_pack_description_label": {
"layer": 1,
"size": "$description_size",
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}
}
]
}
}
]
}
}
]
},
"realms_text_panel": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_right",
"anchor_to": "top_right",
"offset": [ -1, 1 ],
"size": [ "100% - 48px", "100%c" ],
"$size|default": [ "100% - 60px", 32 ],
"controls": [
{
"name_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "10px" ],
"controls": [
{
"realms_pack_name_label@resource_packs.realms_pack_name_label": {
"layer": 5,
"size": [ "fill", 10 ]
}
},
{
"realms_file_size_label@resource_packs.realms_file_size_label": {
"layer": 5,
"size": [ "default", 10 ]
}
}
]
}
},
{
"description_panel": {
"layer": 4,
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"realms_pack_description_label@resource_packs.realms_pack_description_label": {
"layer": 1,
"size": "$size",
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}
}
]
}
}
]
},
"unowned_text_panel": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_right",
"anchor_to": "top_right",
"offset": [ -1, 1 ],
"size": [ "100% - 48px", "100%c" ],
"$size|default": [ "100% - 60px", 32 ],
"controls": [
{
"name_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "10px" ],
"controls": [
{
"unowned_pack_name_label@resource_packs.unowned_pack_name_label": {
"layer": 5,
"size": [ "fill", 10 ]
}
},
{
"unowned_file_size_label@resource_packs.unowned_file_size_label": {
"layer": 5,
"size": [ "default", 10 ]
}
}
]
}
},
{
"description_panel": {
"layer": 4,
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"unowned_pack_description_label@resource_packs.unowned_pack_description_label": {
"layer": 1,
"size": "$size",
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}
}
]
}
}
]
},
"selected_text_panel": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_right",
"anchor_to": "top_right",
"offset": [ -1, 1 ],
"size": [ "100% - 48px", "100%c" ],
"$size|default": [ "100% - 60px", 32 ],
"$inner_size|default": [ "100%", "fill" ],
"$description_size|default": [ "100%", "100%" ],
"controls": [
{
"name_panel": {
"layer": 5,
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 10 ],
"controls": [
{
"selected_pack_name_label@resource_packs.selected_pack_name_label": {
"size": [ "fill", 10 ],
"layer": 1
}
},
{
"selected_file_size_label@resource_packs.selected_file_size_label": {
"size": [ "default", 10 ],
"layer": 1
}
},
{
"active_dot_panel": {
"type": "panel",
"size": [ 9, 7 ],
"controls": [
{
"active_dot": {
"type": "image",
"size": [ 7, 7 ],
"offset": [ 0, 1 ],
"texture": "textures/ui/online"
}
}
]
}
}
]
}
},
{
"full_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": "$size",
"controls": [
{
"warning_line": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 10 ],
"controls": [
{
"warning_text@common.minecraftTenLabel": {
"size": [ "default", "100%" ],
"max_size": [ "50%", "100%" ],
"text": "$warnings_text",
"font_scale_factor": 0.8,
"color": "$warning_text_color"
}
},
{
"warning_number@common.minecraftTenLabel": {
"size": [ "default", "100%" ],
"max_size": [ "50%", "100%" ],
"text": "#num_warnings",
"font_scale_factor": 0.8,
"color": "$main_header_text_color",
"bindings": [
{
"binding_name": "#num_warnings",
"binding_collection_name": "$button_collection_name",
"binding_type": "collection"
}
]
}
}
],
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "#has_warnings",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"error_line": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 10 ],
"controls": [
{
"error_text@common.minecraftTenLabel": {
"size": [ "default", "100%" ],
"max_size": [ "50%", "100%" ],
"text": "$errors_text",
"font_scale_factor": 0.8,
"color": "$error_text_color"
}
},
{
"error_number@common.minecraftTenLabel": {
"size": [ "default", "100%" ],
"max_size": [ "50%", "100%" ],
"text": "#num_errors",
"font_scale_factor": 0.8,
"color": "$main_header_text_color",
"bindings": [
{
"binding_name": "#num_errors",
"binding_collection_name": "$button_collection_name",
"binding_type": "collection"
}
]
}
}
],
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "#has_errors",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"expired_line": {
"type": "panel",
"size": [ "100%", 10 ],
"controls": [
{
"expired_text@common.minecraftTenLabel": {
"size": [ "100%", "100%" ],
"text": "$expired_text",
"font_scale_factor": 0.8,
"color": "$realms_text_color"
}
}
],
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "#has_expired",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"description_panel": {
"layer": 4,
"type": "panel",
"size": "$inner_size",
"controls": [
{
"selected_pack_description_label@resource_packs.selected_pack_description_label": {
"layer": 1,
"size": "$description_size",
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}
}
]
}
}
]
}
}
]
},
"invalid_text_panel": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_right",
"anchor_to": "top_right",
"offset": [ -1, 1 ],
"size": [ "100% - 48px", "100%c" ],
"$size|default": [ "100%", 32 ],
"$inner_size|default": [ "100%", "fill" ],
"$description_size|default": [ "100%", "100%" ],
"controls": [
{
"full_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": "$size",
"controls": [
{
"error_line": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%cm" ],
"controls": [
{
"error_text@common.minecraftTenLabel": {
"size": [ "default", "default" ],
"max_size": [ "50%", "default" ],
"text": "$errors_text",
"font_scale_factor": 0.8,
"color": "$error_text_color"
}
},
{
"error_number@common.minecraftTenLabel": {
"size": [ "default", "default" ],
"max_size": [ "50%", "default" ],
"text": "#num_errors",
"font_scale_factor": 0.8,
"bindings": [
{
"binding_name": "#num_errors",
"binding_collection_name": "$invalid_pack_items",
"binding_type": "collection"
}
]
}
}
],
"bindings": [
{
"binding_collection_name": "$invalid_pack_items",
"binding_name": "#has_errors",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}
}
]
},
"available_pack_button_layout": {
"type": "panel",
"size": [ "100%", "100%cm + 2px" ],
"$name_collection_name": "$available_pack_items",
"controls": [
{
"available_icon_image@resource_packs.available_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.available_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full@resource_packs.available_text_panel": {
"$description_size": [ "100%", "default" ],
"$inner_size": [ "100%", "100%c" ],
"$size": [ "100% - 60px", "100%c" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"available_pack_button_layout_hover": {
"type": "panel",
"size": [ "100%", "100%cm" ],
"$name_collection_name": "$available_pack_items",
"controls": [
{
"hover_small@common.focus_border_white": {
"size": [ "100%", 44 ],
"offset": [ 0, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"available_icon_image@resource_packs.available_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.available_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full_hover": {
"type": "panel",
"size": [ "100%", "100%c + 2px" ],
"controls": [
{
"text_panel_full@resource_packs.available_text_panel": {
"$description_size": [ "100%", "default" ],
"$inner_size": [ "100%", "100%c" ],
"$size": [ "100% - 60px", "100%c" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"available_pack_button@resource_packs.common_pack_button": {
"$pressed_button_name": "$button.available_pack",
"controls": [
{ "default@resource_packs.available_pack_button_layout": {} },
{ "pressed@resource_packs.available_pack_button_layout_hover": {} },
{ "hover@resource_packs.available_pack_button_layout_hover": {} }
],
"bindings": [
{
"binding_collection_name": "$available_pack_items",
"binding_type": "collection_details"
}
]
},
"realms_pack_button_layout": {
"type": "panel",
"size": [ "100%", "100%cm + 2px" ],
"$name_collection_name": "$realms_pack_items",
"controls": [
{
"realms_icon_image@resource_packs.realms_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.realms_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full@resource_packs.realms_text_panel": {
"$size": [ "100% - 60px", "default" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"realms_pack_button_layout_hover": {
"type": "panel",
"size": [ "100%", "100%cm" ],
"$name_collection_name": "$realms_pack_items",
"controls": [
{
"hover_small@common.focus_border_white": {
"size": [ "100%", 44 ],
"offset": [ 0, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"realms_icon_image@resource_packs.realms_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.realms_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full_hover": {
"type": "panel",
"size": [ "100%", "100%c + 2px" ],
"controls": [
{
"text_panel_full@resource_packs.realms_text_panel": {
"$size": [ "100% - 60px", "default" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"realms_pack_button@resource_packs.common_pack_button": {
"$pressed_button_name": "$button.realms_pack",
"controls": [
{ "default@resource_packs.realms_pack_button_layout": {} },
{ "pressed@resource_packs.realms_pack_button_layout_hover": {} },
{ "hover@resource_packs.realms_pack_button_layout_hover": {} }
],
"bindings": [
{
"binding_collection_name": "$realms_pack_items",
"binding_type": "collection_details"
}
]
},
"unowned_pack_button_layout": {
"type": "panel",
"size": [ "100%", "100%cm + 2px" ],
"$name_collection_name": "$unowned_pack_items",
"controls": [
{
"unowned_icon_image@resource_packs.unowned_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.unowned_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full@resource_packs.unowned_text_panel": {
"$size": [ "100% - 60px", "default" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"unowned_pack_button_layout_hover": {
"type": "panel",
"size": [ "100%", "100%cm" ],
"$name_collection_name": "$unowned_pack_items",
"controls": [
{
"hover_small@common.focus_border_white": {
"size": [ "100%", 44 ],
"offset": [ 0, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"unowned_icon_image@resource_packs.unowned_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.unowned_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full_hover": {
"type": "panel",
"size": [ "100%", "100%c + 2px" ],
"controls": [
{
"text_panel_full@resource_packs.unowned_text_panel": {
"$size": [ "100% - 60px", "default" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"unowned_pack_button@resource_packs.common_pack_button": {
"$pressed_button_name": "$button.unowned_pack",
"controls": [
{ "default@resource_packs.unowned_pack_button_layout": {} },
{ "pressed@resource_packs.unowned_pack_button_layout_hover": {} },
{ "hover@resource_packs.unowned_pack_button_layout_hover": {} }
],
"bindings": [
{
"binding_collection_name": "$unowned_pack_items",
"binding_type": "collection_details"
}
]
},
"invalid_pack_button_layout": {
"type": "panel",
"size": [ "100%", "100%cm + 2px" ],
"$name_collection_name": "$invalid_pack_items",
"controls": [
{
"invalid_icon_image@resource_packs.invalid_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel@resource_packs.invalid_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
}
]
}
}
]
},
"invalid_pack_button_layout_hover": {
"type": "panel",
"size": [ "100%", "100%cm" ],
"$name_collection_name": "$invalid_pack_items",
"controls": [
{
"hover_small@common.focus_border_white": {
"size": [ "100%", 44 ],
"offset": [ 0, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
}
]
}
},
{
"invalid_icon_image@resource_packs.invalid_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_full_hover": {
"type": "panel",
"size": [ "100%", "100%c + 2px" ],
"controls": [
{
"text_panel@resource_packs.invalid_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
}
]
}
}
]
}
}
]
},
"invalid_pack_button@resource_packs.common_pack_button": {
"$pressed_button_name": "$button.invalid_pack",
"controls": [
{ "default@resource_packs.invalid_pack_button_layout": {} },
{ "pressed@resource_packs.invalid_pack_button_layout_hover": {} },
{ "hover@resource_packs.invalid_pack_button_layout_hover": {} }
],
"bindings": [
{
"binding_collection_name": "$invalid_pack_items",
"binding_type": "collection_details"
}
]
},
"empty_resource_pack_button": {
"type": "panel",
"size": [ 0, 0 ]
}, //empty pack, no edit
"resource_pack_button_padding": {
"$resource_pack_button_variable|default": "",
"type": "panel",
// If the button we are padding is the empty button, we shouldn't be visible.
"visible": "(not ($resource_pack_button_variable = 'resource_packs.empty_resource_pack_button'))",
"size": "$resource_pack_button_padding_size",
"bindings": [
{
"binding_type": "view",
"source_control_name": "$resource_pack_button_variable",
"source_property_name": "#visible",
"target_property_name": "#visible",
"resolve_sibling_scope": true
}
]
},
"input_button_panel": {
"type": "input_panel",
"modal": true,
"inline_modal": true,
"focus_enabled": false,
// We need to set the visibility false or we try to set focus to this object since it's modal.
"visible": false,
"layer": 1,
"size": [ "100%", 24 ],
"controls": [
{
"border_image": {
"type": "image",
"size": [ "100%", "100%" ],
"texture": "textures/ui/packs_border",
"alpha": 0.4,
"layer": 2,
"$resource_pack_button_0|default": "resource_packs.empty_resource_pack_button",
"$resource_pack_button_1|default": "resource_packs.empty_resource_pack_button",
"$resource_pack_button_2|default": "resource_packs.empty_resource_pack_button",
"$resource_pack_button_3|default": "resource_packs.empty_resource_pack_button",
"$resource_pack_button_4|default": "resource_packs.empty_resource_pack_button",
"$resource_pack_button_5|default": "resource_packs.empty_resource_pack_button",
"$resource_pack_button_padding_size|default": [ 2, "100%" ],
"controls": [
{
"button_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100% - 8px", 18 ],
"controls": [
{ "$resource_pack_button_0@$resource_pack_button_0": {} },
{
"padding_0@resource_packs.resource_pack_button_padding": {
"$resource_pack_button_variable": "$resource_pack_button_1"
}
},
{ "$resource_pack_button_1@$resource_pack_button_1": {} },
{
"padding_1@resource_packs.resource_pack_button_padding": {
"$resource_pack_button_variable": "$resource_pack_button_2"
}
},
{ "$resource_pack_button_2@$resource_pack_button_2": {} },
{
"padding_2@resource_packs.resource_pack_button_padding": {
"$resource_pack_button_variable": "$resource_pack_button_3"
}
},
{ "$resource_pack_button_3@$resource_pack_button_3": {} },
{
"padding_3@resource_packs.resource_pack_button_padding": {
"$resource_pack_button_variable": "$resource_pack_button_4"
}
},
{ "$resource_pack_button_4@$resource_pack_button_4": {} },
{
"padding_4@resource_packs.resource_pack_button_padding": {
"$resource_pack_button_variable": "$resource_pack_button_5"
}
},
{ "$resource_pack_button_5@$resource_pack_button_5": {} }
]
}
}
]
}
},
{
"background": {
"type": "image",
"size": [ "100% - 2px", "100% - 2px" ],
"texture": "textures/ui/packs_middle",
"alpha": 0.1,
"tiled": true,
"layer": 1
}
}
],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "$button.deselected_pack",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_select",
"to_button_id": "$button.deselected_pack",
"mapping_type": "global",
"consume_event": false
},
{
"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"
}
],
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "#direction_button_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
},
{
"binding_name": "#is_using_gamepad",
"binding_name_override": "#modal",
"binding_type": "global"
}
]
},
"selected_pack_button_layout": {
"type": "panel",
"size": [ "100%", "100%cm + 2px" ],
"$name_collection_name": "$selected_pack_items",
"controls": [
{
"selected_icon_image@resource_packs.selected_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.selected_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full@resource_packs.selected_text_panel": {
"$description_size": [ "100%", "default" ],
"$inner_size": [ "100%", "100%c" ],
"$size": [ "100% - 60px", "100%c" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}, //active pack button inside layout
"selected_pack_button_layout_hover": {
"type": "panel",
"size": [ "100%", "100%cm" ],
"$name_collection_name": "$selected_pack_items",
"controls": [
{
"hover_small@common.focus_border_white": {
"size": [ "100%", 44 ],
"offset": [ 0, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"selected_icon_image@resource_packs.selected_icon_image": {
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 42, 42 ],
"offset": [ 1, 0 ]
}
},
{
"text_panel_small@resource_packs.selected_text_panel": {
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"text_panel_full_hover": {
"type": "panel",
"size": [ "100%", "100%c + 2px" ],
"controls": [
{
"text_panel_full@resource_packs.selected_text_panel": {
"$description_size": [ "100%", "default" ],
"$inner_size": [ "100%", "100%c" ],
"$size": [ "100% - 60px", "100%c" ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}
},
{
"read_more_button_panel@common_buttons.read_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$single_line_label_text": "store.mashup.readMore",
"$pressed_button_name": "$button.read_toggle",
"$offset": [ -6, -1 ],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_more",
"binding_name_override": "#visible",
"binding_type": "collection"
}
],
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_type": "view",
"source_property_name": "#using_ellipses",
"target_property_name": "#visible"
}
]
}
},
{
"read_less_button_panel@common_buttons.read_button": {
"$offset": [ -6, -1 ],
"$single_line_label_text": "store.mashup.readLess",
"$pressed_button_name": "$button.read_toggle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#is_read_less",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"selected_pack_button@resource_packs.common_pack_button": {
"$pressed_button_name": "$button.selected_pack",
"controls": [
{ "default@resource_packs.selected_pack_button_layout": {} },
{ "pressed@resource_packs.selected_pack_button_layout_hover": {} },
{ "hover@resource_packs.selected_pack_button_layout_hover": {} }
],
"bindings": [
{
"binding_collection_name": "$selected_pack_items",
"binding_type": "collection_details"
}
]
},
"selected_pack_movement_button@common_buttons.light_glyph_button": {
"$pressed_button_name": "$button.selected_pack",
"$visible_binding_name|default": "(not #is_selected)",
"$visible_binding_type|default": "collection",
"$enabled_binding_name|default": "#is_selected",
"$enabled_binding_type|default": "collection",
// If $visible_binding_name isn't set we won't use that bind.
"variables": [
{
"requires": "($visible_binding_name = '' and $visible_binding_type = collection)",
"$visible_binding_type": "none"
},
{
"requires": "($enabled_binding_name = '' and $enabled_binding_type = collection)",
"$enabled_binding_type": "none"
}
],
"size": [ 18, 18 ],
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$button_collection_name",
"binding_name": "$visible_binding_name",
"binding_name_override": "#visible",
"binding_type": "$visible_binding_type"
},
{
"binding_collection_name": "$button_collection_name",
"binding_name": "$enabled_binding_name",
"binding_name_override": "#enabled",
"binding_type": "$enabled_binding_type"
}
]
},
"selected_pack_transparent_movement_button@common_buttons.transparent_content_button": {
"$pressed_button_name": "$button.selected_pack",
"$visible_binding_name|default": "(not #is_selected)",
"$visible_binding_type|default": "collection",
"$default_button_texture": "",
"$hover_button_texture": "",
"$pressed_button_texture": "",
"$locked_button_texture": "",
// If $visible_binding_name isn't set we won't use that bind.
"variables": [
{
"requires": "($visible_binding_name = '' and $visible_binding_type = collection)",
"$visible_binding_type": "none"
}
],
"size": [ 18, 18 ],
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$button_collection_name",
"binding_name": "$visible_binding_name",
"binding_name_override": "#visible",
"binding_type": "$visible_binding_type"
}
]
},
"selected_pack_minus_button@resource_packs.selected_pack_movement_button": {
"size": [ "fill", 18 ],
"default_focus_precedence": 1,
"$pressed_button_name": "$button.move_left",
"$button_content": "resource_packs.minus_text",
"$visible_binding_name": "#can_move"
}, //button to remove pack from active, edit text and size
"selected_pack_plus_button@resource_packs.selected_pack_movement_button": {
"size": [ "fill", 18 ],
"default_focus_precedence": 1,
"$pressed_button_name": "$button.move_left",
"$button_content": "resource_packs.plus_text",
"$visible_binding_name": "#can_move",
"$enabled_binding_name": "(not $platform_locked)"
}, //button to add pack to active, edit text and size
"selected_pack_store_button@resource_packs.selected_pack_movement_button": {
"size": [ 70, 18 ],
"default_focus_precedence": 1,
"$pressed_button_name": "$button.store",
"$button_content": "resource_packs.store_text",
"$visible_binding_name": "#can_go_to_store"
}, //button to remove pack from active, edit text and size
"selected_pack_store_button_fill@resource_packs.selected_pack_movement_button": {
"size": [ "fill", 18 ],
"default_focus_precedence": 1,
"$pressed_button_name": "$button.store",
"$button_content": "resource_packs.store_text",
"$visible_binding_name": "#can_go_to_store"
}, //button to remove pack from active, edit text and size
"selected_pack_up_button@resource_packs.selected_pack_transparent_movement_button": {
"$button_pressed_offset": [ 0, 0 ],
"$pressed_button_name": "$button.sort_up",
"$button_content": "resource_packs.up_arrow_wrapper",
"$visible_binding_name": "#can_sort_up",
"$button_content_offset": [ 1, 1 ]
}, //button with up arrow, remove outline
"selected_pack_down_button@resource_packs.selected_pack_transparent_movement_button": {
"$button_pressed_offset": [ 0, 0 ],
"$pressed_button_name": "$button.sort_down",
"$button_content": "resource_packs.down_arrow_wrapper",
"$visible_binding_name": "#can_sort_down",
"$button_content_offset": [ 1, 1 ]
}, //button with down arrow, remove outline
"selected_pack_warning_button@common_buttons.transparent_content_button": {
"$pressed_button_name": "$button.report_errors",
"$button_content": "resource_packs.warning_image_wrapper",
"size": [ 16, 16 ],
"$default_button_texture": "",
"$hover_button_texture": "",
"$pressed_button_texture": "",
"$locked_button_texture": "",
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_type": "collection_details"
},
{
"binding_collection_name": "$button_collection_name",
"binding_name": "(not #report_generating)",
"binding_name_override": "#enabled",
"binding_type": "collection"
},
{
"binding_collection_name": "$button_collection_name",
"binding_name": "#report_button_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}, //far right button with check/warning/loading glyph, remove button and move to settings button
"selected_pack_options_button@common_buttons.transparent_content_button": {
"size": [ 18, 14 ],
"$pressed_button_name": "$button.pack_settings",
"$button_type_panel": "resource_packs.options_wrapper",
"$default_button_texture": "",
"$hover_button_texture": "",
"$pressed_button_texture": "",
"$locked_button_texture": "",
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "$button_collection_name",
"binding_name": "#has_pack_settings",
"binding_name_override": "#visible"
},
{
"binding_type": "collection_details",
"binding_collection_name": "$button_collection_name"
}
]
},
//---------------------------------------------------------------------------
// Common Text Labels
//---------------------------------------------------------------------------
"white_label": {
"type": "label",
"color": "$main_header_text_color"
}, //white text, no edit
"gray_label": {
"type": "label",
"color": "$dark_button_secondary_default_text_color"
}, //grey text,
"suggested_content_offers_title_label@resource_packs.white_label": {
"text": "$suggested_content_offers_label_text",
"$suggested_content_offers_binding_type|default": "global",
"bindings": [
{
"binding_type": "$suggested_content_offers_binding_type",
"binding_name": "$suggested_content_offers_label_text"
}
]
},
"available_packs_title_content@resource_packs.selected_packs_title_content": {
"$title_text": "$available_label_text",
"$icon_texture": "textures/items/book_normal",
"$count_name": "#available_count",
"$name_collection_name": "$available_pack_items",
"$grid_visible": "#available_grid_visible"
},
"realms_packs_title_content@resource_packs.selected_packs_title_content": {
"variables": [
{
"$title_text": "resourcePack.realmsPlus.title.packs.contentSub",
"$icon_texture": "textures/ui/sidebar_icons/csb_sidebar_icon"
}
],
"$title_text": "resourcePack.realmsPlus.title.packs.contentSub",
"$icon_texture": "textures/ui/sidebar_icons/csb_sidebar_icon",
"$count_name": "#realms_count",
"$name_collection_name": "$realms_pack_items",
"$grid_visible": "#realms_grid_visible"
},
"unowned_packs_title_content@resource_packs.selected_packs_title_content": {
"$title_text": "$unowned_label_text",
"$icon_texture": "textures/blocks/grass_side_carried",
"$count_name": "#unowned_count",
"$name_collection_name": "$unowned_pack_items",
"$grid_visible": "#unowned_grid_visible"
},
"selected_packs_title_content": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100% - 6px", 15 ],
"$title_text|default": "$selected_label_text",
"$icon_texture|default": "textures/blocks/grass_side_carried",
"$count_name|default": "#selected_count",
"$name_collection_name|default": "$selected_pack_items",
"$grid_visible|default": "#selected_grid_visible",
"controls": [
{
"selected_packs_title_label@common.minecraftTenLabel": {
"size": [ "default", 10 ],
"max_size": [ "50%", 10 ],
"text": "$title_text",
"color": "$text_color"
}
},
{
"fill_pad": {
"type": "panel",
"size": [ "fill", "100%" ]
}
},
{
"icon_panel": {
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"block_icon": {
"type": "image",
"size": [ 9, 9 ],
"texture": "$icon_texture"
}
}
]
}
},
{
"pad_0": {
"type": "panel",
"size": [ 4, "100%" ]
}
},
{
"count@common.minecraftTenLabel": {
"size": [ "default", 10 ],
"max_size": [ "50%", 10 ],
"text": "$count_name",
"color": "$text_color",
"bindings": [
{
"binding_name": "$count_name",
"binding_collection_name": "$name_collection_name",
"binding_type": "collection"
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ 15, "100%" ]
}
},
{
"plus_panel": {
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"plus@resource_packs.plus_image": {
"size": [ 10, 10 ],
"offset": [ -2, 0 ],
"color": "$text_color"
}
}
],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_name": "(not $grid_visible)",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"minus_panel": {
"type": "panel",
"size": [ "100%c", "100%" ],
"controls": [
{
"minus@resource_packs.minus_image": {
"size": [ 10, 10 ],
"offset": [ -2, 0 ],
"color": "$text_color"
}
}
],
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_name": "$grid_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
},
"available_packs_title_button@common_buttons.light_content_button": {
"size": [ "fill", 20 ],
"$button_content": "resource_packs.available_packs_title_content",
"$pressed_button_name": "$button.expand_available"
},
"realms_packs_title_button@common_buttons.light_content_button": {
"size": [ "100%", 20 ],
"$button_content": "resource_packs.realms_packs_title_content",
"$pressed_button_name": "$button.expand_realms"
},
"unowned_packs_title_button@common_buttons.light_content_button": {
"size": [ "100%", 20 ],
"$button_content": "resource_packs.unowned_packs_title_content",
"$pressed_button_name": "$button.expand_unowned"
},
"selected_packs_title_button@common_buttons.light_content_button": {
"size": [ "fill", 20 ],
"$button_content": "resource_packs.selected_packs_title_content",
"$pressed_button_name": "$button.expand_selected"
},
"name_label@resource_packs.white_label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"text": "#name"
}, //pack name text,
"size_label@resource_packs.white_label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"text": "#size",
"font_type": "smooth"
}, //pack size text,
"description_label@resource_packs.white_label": {
"text": "$bottom_description_text",
"font_type": "smooth"
}, //white text for description, no edit
"pack_label@resource_packs.white_label": {
"text": "#description",
"font_type": "smooth"
}, //grey text for description,
"selected_pack_description_label@resource_packs.pack_label": {
"$desc_collection_name": "$selected_pack_items",
"notify_on_ellipses": [
"read_more_button"
],
"bindings": [
{
"binding_collection_name": "$desc_collection_name",
"binding_name": "#description",
"binding_type": "collection"
}
]
}, //pack description text when active, no edit
"available_pack_description_label@resource_packs.selected_pack_description_label": {
"$desc_collection_name": "$available_pack_items"
}, //pack description text when available, no edit
"realms_pack_description_label@resource_packs.selected_pack_description_label": {
"$desc_collection_name": "$realms_pack_items"
},
"unowned_pack_description_label@resource_packs.selected_pack_description_label": {
"$desc_collection_name": "$unowned_pack_items"
},
"selected_pack_name_label@resource_packs.name_label": {
"$name_collection_name": "$selected_pack_items",
"bindings": [
{
"binding_collection_name": "$name_collection_name",
"binding_name": "#name",
"binding_type": "collection"
}
]
}, //pack name text when active, no edit
"selected_file_size_label@resource_packs.size_label": {
"$size_collection_name": "$selected_pack_items",
"bindings": [
{
"binding_collection_name": "$size_collection_name",
"binding_name": "#size",
"binding_type": "collection"
}
]
}, //pack size text when active, no edit
"available_pack_name_label@resource_packs.selected_pack_name_label": {
"$name_collection_name": "$available_pack_items"
}, //pack name text when available, no edit
"available_file_size_label@resource_packs.selected_file_size_label": {
"$size_collection_name": "$available_pack_items"
}, //pack size text when available, no edit
"realms_pack_name_label@resource_packs.selected_pack_name_label": {
"$name_collection_name": "$realms_pack_items"
},
"realms_file_size_label@resource_packs.selected_file_size_label": {
"$size_collection_name": "$realms_pack_items"
},
"unowned_pack_name_label@resource_packs.selected_pack_name_label": {
"$name_collection_name": "$unowned_pack_items"
},
"unowned_file_size_label@resource_packs.selected_file_size_label": {
"$size_collection_name": "$unowned_pack_items"
},
"invalid_pack_name_label@resource_packs.selected_pack_name_label": {
"$name_collection_name": "$invalid_pack_items"
}, //pack name text when invalid, no edit
"invalid_pack_description_label@resource_packs.selected_pack_description_label": {
"$desc_collection_name": "$invalid_pack_items"
},
//---------------------------------------------------------------------------
// Page Layout
//---------------------------------------------------------------------------
"available_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "50%-4px", "100%-1px" ],
"offset": [ 3, 0 ],
"controls": [
{
"selected_packs@common.scrolling_panel": {
"$scrolling_content": "resource_packs.available_stack_panel",
"$scroll_pane_name": "available_packs_pane",
"$scrolling_pane_size": [ "100%-2px", "100%" ],
"$scrolling_pane_offset": [ 2, 0 ],
"$show_background": false,
"$scroll_size": [ 6, "100%-4px" ],
"variables": [
{
"requires": "$pocket_screen",
"$touch": true
}
]
}
}
]
}, //screen for pocket view, no edit
"checkbox_visuals@common.toggle_visuals": {
"size": [ 30, "100%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}, //checkbox toggle
"header_control@common.checkbox": {
"size": [ "100%", "100%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$toggle_name": "force_user_agreement_level",
"$toggle_state_binding_name": "#force_user_agreement_level",
"$toggle_enabled_binding_name": "#force_user_agreement_level_enabled",
"$enabled|default": false,
"enabled": "$enabled",
"tts_control_type_order_priority": 100,
"tts_value_order_priority": 101,
"variables": [
{
"requires": "$show_checkbox",
"$toggle_enabled_binding_type": "global",
"$enabled": true
}
],
"controls": [
{
"header_description_stack_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"$header_text": "resourcePack.header.behavior",
"$text_offset": [ 5, 3 ],
"variables": [
{
"requires": "$show_checkbox",
"$header_text": "resourcePack.header.level",
"$text_offset": [ -2, 3 ]
}
],
"controls": [
{
"checkbox_visuals@resource_packs.checkbox_visuals": {
"visible": "$show_checkbox"
}
},
{
"buffer_panel": {
"type": "panel",
"layer": 3,
"size": [ "fill", "100%" ],
"controls": [
{
"label@resource_packs.description_label": {
"size": [ "100%-6px", "default" ],
"text": "$header_text",
"anchor_from": "center",
"anchor_to": "center"
}
}
]
}
}
]
}
}
]
}, //checkbox text at top of page for realms only
"panel_bg": {
"type": "panel",
"controls": [
{ "black_background@resource_packs.black_image": { "layer": 1 } },
{
"gray@resource_packs.gray_image": {
"size": [ "100%-2px", "100%-2px" ],
"layer": 2
}
}
]
},
"error_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"black_background@resource_packs.black_image": {
"layer": 1,
"size": [ "100%", "100%c+2px" ],
"controls": [
{
"gray@resource_packs.gray_image": {
"size": [ "100%-2px", "100%c" ],
"layer": 2,
"controls": [
{
"panel": {
"type": "panel",
"size": [ "100%-10px", "100%c" ],
"controls": [
{
"error_label": {
"type": "label",
"color": "$light_grid_item_text_color",
"size": [ "100%", "default" ],
"text": "$in_game_error_text",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 3
}
}
]
}
}
]
}
}
]
}
}
]
},
"selected_stack_panel": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"world_template_option_lock_panel": {
"ignored": "(not $is_world_create and not $is_template_create and not $is_world_edit)",
"type": "panel",
"size": [ "100%", "100%c + 6px" ],
"bindings": [
{
"binding_name": "#is_world_template_locked",
"binding_name_override": "#visible"
}
],
"controls": [
{
"option_info_label@settings_common.option_info_label": {
"$used_fonttype": "smooth",
"$container_text_binding_name": "#world_template_option_locked_warning_text",
"$show_option_label": false
}
}
]
}
},
{
"top_panel": {
"type": "panel",
"visible": "$show_checkbox",
"size": [ "100%", 30 ],
"$force_pack_download_binding_type|default": "none",
"controls": [
{ "panel_bg@resource_packs.panel_bg": {} },
{ "header_control@resource_packs.header_control": {} }
],
"bindings": [
{
"binding_name": "#force_pack_download_enabled_level",
"binding_name_override": "#visible",
"binding_type": "$force_pack_download_binding_type"
},
{
"binding_name": "#force_pack_download_locked_level",
"binding_name_override": "#enabled",
"binding_type": "$force_pack_download_binding_type"
}
]
}
},
{
"offset_0": {
"type": "panel",
"size": [ "100%", "2px" ]
}
},
{
"selected_packs_title_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 20 ],
"$button_collection_name": "$selected_pack_items",
"controls": [
{
"selected_packs_title_button@resource_packs.selected_packs_title_button": {}
},
{
"tooltip": {
"type": "panel",
"size": [ 25, 20 ],
"visible": false,
"controls": [
{
"button@common_buttons.light_content_button": {
"size": [ 20, 20 ],
"sound_volume": 0.0,
"$button_pressed_offset": [ 0, 0 ],
"$button_content": "resource_packs.tooltip_image_wrapper",
"$hover_button_texture|default": "$default_button_texture",
"$pressed_button_texture|default": "$default_button_texture",
"$locked_button_texture|default": "$default_button_texture",
"$hover_state_border_visible|default": false,
"$pressed_state_border_visible|default": false,
"$locked_state_border_visible|default": false,
"$pressed_button_name": "button.ignore_me"
}
}
//TODO: Fix tooltip issues [Bug 249940]
//{
// "tooltip_popup@common.button": {
// "size": [ 90, 30 ],
// "sound_volume": 0.0,
// //"$tooltip_button_content_size|default": [ "100%", "100%" ],
// "$tooltip_background_texture": "textures/ui/tooltip_default_background",
// "$pressed_button_name": "button.ignore_me",
// "$tooltip_button_collection_name": "",
// "$tooltip_button_binding_type": "none",
// "$tooltip_text_binding_name": "#warn_or_error",
// "$tooltip_text_binding_type": "none",
// "$tooltip_popup_override_image_panel": "resource_packs.tooltip_image_wrapper",
// "$override_tooltip_popup_image": true,
// "$tooltip_chevron_anchor": "top_right",
// "button_mappings": [
// {
// "from_button_id": "button.menu_select",
// "to_button_id": "$pressed_button_name",
// "mapping_type": "pressed"
// },
// {
// "from_button_id": "button.menu_ok",
// "to_button_id": "$pressed_button_name",
// "mapping_type": "focused"
// }
// ],
// "controls": [
// {
// "default@common.empty_panel": {}
// },
// {
// "hover@common.static_tooltip_popup_with_image_and_text": {}
// },
// {
// "pressed@common.static_tooltip_popup_with_image_and_text": {}
// }
// ],
// "bindings": [
// {
// "binding_name": "#warn_or_error",
// "binding_collection_name": "$button_collection_name",
// "binding_type": "collection"
// }
// ]
// }
//}
],
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_type": "collection",
"binding_name": "#any_exceptions",
"binding_name_override": "#visible"
}
]
}
}
]
}
},
{
"selected_pack_section": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"offset": {
"type": "panel",
"size": [ "100%", "6px" ]
}
},
{
"selected_pack_grid@resource_packs.selected_pack_grid": {
"size": [ "100%", "default" ]
}
},
{
"default_item": {
"type": "panel",
"size": [ "100%-2px", "44px" ],
"controls": [
{
"icon_image@resource_packs.icon_image": {
"layer": 4,
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"size": [ 42, 42 ],
"offset": [ 1, 0 ],
"type": "image",
"bindings": [
{
"binding_name": "$default_item_texture",
"binding_name_override": "#texture"
},
{
"binding_name": "$default_item_file_system",
"binding_name_override": "#texture_file_system"
},
{
"binding_name": "$default_item_zip",
"binding_name_override": "#zip_folder"
}
]
}
},
{
"name_panel": {
"layer": 5,
"type": "panel",
"anchor_from": "top_right",
"anchor_to": "top_right",
"size": [ "100% - 48px", 10 ],
"offset": [ -2, 2 ],
"controls": [
{
"white_label@resource_packs.white_label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"text": "$default_item_title",
"layer": 1
}
}
]
}
},
{
"description_panel": {
"layer": 4,
"type": "panel",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"size": [ "100%-50px", 30 ],
"offset": [ -1, -1 ],
"controls": [
{
"white_label@resource_packs.white_label": {
"layer": 1,
"size": [ "100%-2px", "100%" ],
"text": "$default_item_description",
"font_type": "smooth",
"offset": [ 1, 0 ]
}
}
]
}
}
]
}
},
{
"filler_panel": {
"type": "panel",
"size": [ "100%", "100%c + 3px" ],
"controls": [
{
"description_label@resource_packs.description_label": {
"size": [ "100%", "default" ]
}
}
]
}
}
],
"bindings": [
{
"binding_collection_name": "$selected_pack_items",
"binding_name": "#selected_grid_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"offset_1": {
"type": "panel",
"size": [ "100%", "6px" ]
}
},
{
"available_packs_title_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", 20 ],
"$button_collection_name": "$available_pack_items",
"controls": [
{
"available_packs_title_button@resource_packs.available_packs_title_button": {}
},
{
"tooltip": {
"type": "panel",
"size": [ 25, 20 ],
"visible": false,
"controls": [
{
"button@common_buttons.light_content_button": {
"size": [ 20, 20 ],
"sound_volume": 0.0,
"$button_pressed_offset": [ 0, 0 ],
"$button_content": "resource_packs.tooltip_image_wrapper",
"$hover_button_texture|default": "$default_button_texture",
"$pressed_button_texture|default": "$default_button_texture",
"$locked_button_texture|default": "$default_button_texture",
"$hover_state_border_visible|default": false,
"$pressed_state_border_visible|default": false,
"$locked_state_border_visible|default": false,
"$pressed_button_name": "button.ignore_me"
}
}
//TODO: Fix tooltip issues [Bug 249940]
//{
// "tooltip_popup@common.button": {
// "size": [ 90, 30 ],
// "sound_volume": 0.0,
// //"$tooltip_button_content_size|default": [ "100%", "100%" ],
// "$tooltip_background_texture": "textures/ui/tooltip_default_background",
// "$pressed_button_name": "button.ignore_me",
// "$tooltip_button_collection_name": "",
// "$tooltip_button_binding_type": "none",
// "$tooltip_text_binding_name": "#warn_or_error",
// "$tooltip_text_binding_type": "none",
// "$tooltip_popup_override_image_panel": "resource_packs.tooltip_image_wrapper",
// "$override_tooltip_popup_image": true,
// "$tooltip_chevron_anchor": "top_right",
// "button_mappings": [
// {
// "from_button_id": "button.menu_select",
// "to_button_id": "$pressed_button_name",
// "mapping_type": "pressed"
// },
// {
// "from_button_id": "button.menu_ok",
// "to_button_id": "$pressed_button_name",
// "mapping_type": "focused"
// }
// ],
// "controls": [
// {
// "default@common.empty_panel": {}
// },
// {
// "hover@common.static_tooltip_popup_with_image_and_text": {}
// },
// {
// "pressed@common.static_tooltip_popup_with_image_and_text": {}
// }
// ],
// "bindings": [
// {
// "binding_name": "#warn_or_error",
// "binding_collection_name": "$button_collection_name",
// "binding_type": "collection"
// }
// ]
// }
//}
],
"bindings": [
{
"binding_collection_name": "$invalid_pack_items",
"binding_type": "collection",
"binding_name": "#has_errors",
"binding_name_override": "#visible"
}
]
}
}
]
}
},
{
"available_packs_section": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"offset": {
"type": "panel",
"size": [ "100%", "6px" ],
"bindings": [
{
"binding_name": "(not $no_available_packs_visibility_binding)",
"binding_name_override": "#visible"
}
]
}
},
{
"empty_panel": {
"ignored": "$education_edition",
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"no_packs_panel": {
"type": "panel",
"size": [ "100%", "100%c + 3px" ],
"controls": [
{
"no_packs_text@common.minecraftTenLabel": {
"size": [ "default", 10 ],
"max_size": [ "100%", 10 ],
"text": "$no_packs_text",
"color": "$main_header_text_color"
}
}
]
}
},
{
"to_store_button@common_buttons.light_text_button": {
"size": [ "100%", 15 ],
"$button_text": "resourcePack.available.none.store",
"$pressed_button_name": "$button.more_suggested_content_offers",
"bindings": [
{
"binding_name": "$unowned_visible",
"binding_name_override": "#visible"
}
]
}
}
],
"bindings": [
{
"binding_name": "$no_available_packs_visibility_binding",
"binding_name_override": "#visible"
}
]
}
},
{
"available_pack_grid@resource_packs.available_pack_grid": {
"size": [ "100%", "default" ],
"$available_grid_visible_binding_name": "(not $no_available_packs_visibility_binding)",
"$available_grid_visible_binding_type": "global"
}
},
{
"invalid_pack_grid@resource_packs.invalid_pack_grid": {
"size": [ "100%", "default" ]
}
}
],
"bindings": [
{
"binding_collection_name": "$available_pack_items",
"binding_name": "#available_grid_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"offset_3": {
"type": "panel",
"size": [ "100%", "6px" ]
}
},
{
"realms_packs_title_button@resource_packs.realms_packs_title_button": {
"bindings": [
{
"binding_collection_name": "$realms_pack_items",
"binding_name": "#realms_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"realms_packs_section": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"offset": {
"type": "panel",
"size": [ "100%", "6px" ],
"bindings": [
{
"binding_name": "(not $no_realms_packs_visibility_binding)",
"binding_name_override": "#visible"
}
]
}
},
{
"realms_pack_grid@resource_packs.realms_pack_grid": {
"size": [ "100%", "default" ],
"$realms_grid_visible_binding_name": "(not $no_realms_packs_visibility_binding)",
"$realms_grid_visible_binding_type": "global"
}
},
{
"offset_4": {
"type": "panel",
"size": [ "100%", "10px" ]
}
}
],
"bindings": [
{
"binding_collection_name": "$realms_pack_items",
"binding_name": "#realms_grid_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"offset_4": {
"type": "panel",
"size": [ "100%", "6px" ],
"bindings": [
{
"binding_collection_name": "$realms_pack_items",
"binding_name": "#realms_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"unowned_packs_title_button@resource_packs.unowned_packs_title_button": {
"ignored": "$education_edition",
"bindings": [
{
"binding_name": "$unowned_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"unowned_packs_section": {
"ignored": "$education_edition",
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"offset": {
"type": "panel",
"size": [ "100%", "6px" ],
"bindings": [
{
"binding_name": "(not $no_unowned_packs_visibility_binding)",
"binding_name_override": "#visible"
}
]
}
},
{
"unowned_pack_grid@resource_packs.unowned_pack_grid": {
"size": [ "100%", "default" ],
"$unowned_grid_visible_binding_name": "(not $no_unowned_packs_visibility_binding)",
"$unowned_grid_visible_binding_type": "global"
}
},
{
"to_store_button@common_buttons.light_text_button": {
"size": [ "100%", 15 ],
"$button_text": "resourcePack.suggestedContent.button.viewMore",
"$pressed_button_name": "$button.more_suggested_content_offers"
}
},
{
"offset_4": {
"type": "panel",
"size": [ "100%", "10px" ]
}
}
],
"bindings": [
{
"binding_collection_name": "$unowned_pack_items",
"binding_name": "#unowned_grid_visible",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
}
]
}, //whole screen, make dropdown toggle with title
"available_stack_panel": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"available_packs_title_button@resource_packs.available_packs_title_button": {}
},
{
"available_pack_grid@resource_packs.available_pack_grid": {
"size": [ "100%", "default" ]
}
}
]
}, //section for available packs for pocket view, make dropdown toggle with title
"pack_background": {
"type": "panel",
"controls": [
{
"white_image@resource_packs.white_image": {
"layer": 2,
"bindings": [
{
"binding_name": "#is_selected",
"binding_name_override": "#visible",
"binding_collection_name": "$collection_name",
"binding_type": "collection"
}
]
}
},
{
"gray_image@resource_packs.gray_image": {
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"size": [ "100%-45px", "42px" ],
"offset": [ -1, 0 ],
"layer": 3
}
}
]
},
"selected_pack_panel": {
"type": "stack_panel",
"size": [ "100%-2px", "100%c" ],
"min_size": [ "100% - 2px", "50px" ],
"$button_collection_name": "$selected_pack_items",
"$resource_pack_button_0": "resource_packs.selected_pack_minus_button",
"$resource_pack_button_1": "resource_packs.selected_pack_store_button",
"$resource_pack_button_2": "resource_packs.selected_pack_options_button",
"$resource_pack_button_3": "resource_packs.selected_pack_up_button",
"$resource_pack_button_4": "resource_packs.selected_pack_down_button",
"$resource_pack_button_5": "resource_packs.selected_pack_warning_button",
"controls": [
{
"selected_pack_button@resource_packs.selected_pack_button": {
"layer": 1
}
},
{
"pad_0": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"center_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"visibility_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"selected_pack_direction_buttons@resource_packs.input_button_panel": {
}
}
]
}
}
]
}
},
{
"divider@common.horizontal_divider": {
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "(not #direction_button_visible)",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"available_pack_panel": {
"type": "stack_panel",
"size": [ "100%-2px", "100%c" ],
"min_size": [ "100% - 2px", "50px" ],
"$button_collection_name": "$available_pack_items",
"$resource_pack_button_0": "resource_packs.selected_pack_plus_button",
"$resource_pack_button_1": "resource_packs.selected_pack_store_button",
"$resource_pack_button_2": "resource_packs.selected_pack_warning_button",
"controls": [
{
"available_pack_button@resource_packs.available_pack_button": {
"layer": 1
}
},
{
"pad_0": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"center_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"available_pack_direction_buttons@resource_packs.input_button_panel": {
}
}
]
}
},
{
"divider@common.horizontal_divider": {
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "(not #direction_button_visible)",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"realms_pack_panel": {
"type": "stack_panel",
"size": [ "100%-2px", "100%c" ],
"min_size": [ "100% - 2px", "50px" ],
"$button_collection_name": "$realms_pack_items",
"$resource_pack_button_0": "resource_packs.selected_pack_plus_button",
"$resource_pack_button_1": "resource_packs.selected_pack_store_button",
"$resource_pack_button_2": "resource_packs.selected_pack_warning_button",
"controls": [
{
"realms_pack_button@resource_packs.realms_pack_button": {
"layer": 1
}
},
{
"pad_0": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"center_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"realms_pack_direction_buttons@resource_packs.input_button_panel": {
}
}
]
}
},
{
"divider@common.horizontal_divider": {
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "(not #direction_button_visible)",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"unowned_pack_panel": {
"type": "stack_panel",
"size": [ "100%-2px", "100%c" ],
"min_size": [ "100% - 2px", "50px" ],
"$button_collection_name": "$unowned_pack_items",
"$resource_pack_button_1": "resource_packs.selected_pack_store_button_fill",
"controls": [
{
"unowned_pack_button@resource_packs.unowned_pack_button": {
"layer": 1
}
},
{
"pad_0": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"center_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"realms_pack_direction_buttons@resource_packs.input_button_panel": {
}
}
]
}
},
{
"divider@common.horizontal_divider": {
"bindings": [
{
"binding_collection_name": "$button_collection_name",
"binding_name": "(not #direction_button_visible)",
"binding_name_override": "#visible",
"binding_type": "collection"
}
]
}
},
{
"pad_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"invalid_pack_panel": {
"type": "stack_panel",
"size": [ "100%-2px", "100%c" ],
"min_size": [ "100% - 2px", "50px" ],
"controls": [
{
"invalid_pack_button@resource_packs.invalid_pack_button": {
"layer": 1
}
},
{
"pad_0": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{
"divider@common.horizontal_divider": {}
},
{
"pad_1": {
"type": "panel",
"size": [ "100%", 4 ]
}
}
]
},
"selected_pack_grid": {
"type": "stack_panel",
"orientation": "vertical",
"factory": {
"name": "selected_pack_factory",
"control_name": "resource_packs.selected_pack_panel"
},
"collection_name": "$selected_pack_items",
"bindings": [
{
"binding_name": "$selected_grid_dimensions",
"binding_name_override": "#collection_length"
}
]
}, //space for active packs to populate
"available_pack_grid": {
"type": "stack_panel",
"orientation": "vertical",
"factory": {
"name": "available_pack_factory",
"control_name": "resource_packs.available_pack_panel"
},
"collection_name": "$available_pack_items",
"$available_grid_visible_binding_name|default": "",
"$available_grid_visible_binding_type|default": "none",
"bindings": [
{
"binding_name": "$available_grid_dimensions",
"binding_name_override": "#collection_length"
},
{
"binding_name": "$available_grid_visible_binding_name",
"binding_name_override": "#visible",
"binding_type": "$available_grid_visible_binding_type"
}
]
}, //space for available packs to populate
"realms_pack_grid": {
"type": "stack_panel",
"orientation": "vertical",
"visible": false,
"factory": {
"name": "realms_pack_factory",
"control_name": "resource_packs.realms_pack_panel"
},
"collection_name": "$realms_pack_items",
"$realms_grid_visible_binding_name|default": "",
"$realms_grid_visible_binding_type|default": "none",
"bindings": [
{
"binding_name": "$realms_grid_dimensions",
"binding_name_override": "#collection_length"
},
{
"binding_name": "$realms_grid_visible_binding_name",
"binding_name_override": "#visible",
"binding_type": "$realms_grid_visible_binding_type"
}
]
},
"unowned_pack_grid": {
"type": "stack_panel",
"orientation": "vertical",
"visible": false,
"factory": {
"name": "unowned_pack_factory",
"control_name": "resource_packs.unowned_pack_panel"
},
"collection_name": "$unowned_pack_items",
"$unowned_grid_visible_binding_name|default": "",
"$unowned_grid_visible_binding_type|default": "none",
"bindings": [
{
"binding_name": "$unowned_grid_dimensions",
"binding_name_override": "#collection_length"
},
{
"binding_name": "$unowned_grid_visible_binding_name",
"binding_name_override": "#visible",
"binding_type": "$unowned_grid_visible_binding_type"
}
]
},
"invalid_pack_grid": {
"type": "stack_panel",
"orientation": "vertical",
"factory": {
"name": "invalid_pack_factory",
"control_name": "resource_packs.invalid_pack_panel"
},
"collection_name": "$invalid_pack_items",
"bindings": [
{
"binding_name": "$invalid_grid_dimensions",
"binding_name_override": "#collection_length"
}
]
} //space for invalid packs to populate
}