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/edu_featured.json
Mike Ammerlaan 1c48a87a35 v1.21.20.3
2024-08-13 09:36:05 -07:00

41 lines
1.1 KiB
JSON

{
"namespace": "edu_featured",
"featured_button_content": {
"type": "panel",
"controls": [
{
"button_label@common_buttons.new_ui_binding_button_label": {
"layer": 50
}
}
]
},
// Button definition (used in start_screen.json)
"featured_button@common_buttons.light_content_button": {
"$button_content": "edu_featured.featured_button_content",
"size": [ "100% - 2px", "100% - 2px" ],
// Button name (for EDU will only be "button.featured_category")
"$pressed_button_name": "button.featured_category",
// Button text (newAndFeatured.name is defined in the resource pack)
"$button_text": "newAndFeatured.name",
// Required for button text to function
"$button_text_binding_type": "none",
"$button_binding_condition": "none",
"$button_text_grid_collection_name": "",
// Without this the button contents will shift down slightly when clicked
// to simulate a button being pressed. By setting to [ 0, 0 ], the contents
// will not move when pressed.
"$button_pressed_offset": [ 0, 0 ],
"property_bag": {
"#category": "new_featured"
}
}
}