mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 12:26:14 +00:00
a3b394c507
Initial layout
641 lines
18 KiB
JSON
641 lines
18 KiB
JSON
{
|
|
"namespace": "manage_feed",
|
|
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Manage_Feed_grid
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"manage_feed_item_scrolling_panel": {
|
|
"type": "panel",
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"layer": 0,
|
|
"controls": [
|
|
{
|
|
"manage_feed_item_scrolling_panel_content@manage_feed.manage_feed_item_scrolling_panel_content": {
|
|
"$scrolling_pane_size": [ "100% - 4px", "100%" ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"manage_feed_item_scrolling_panel_content@common.scrolling_panel": {
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"$show_background": false,
|
|
"$scroll_size": [ 5, "100% - 4px" ],
|
|
"$scrolling_content": "manage_feed.grid_panel",
|
|
"$feed_panel_size": [ "100%", "100%c" ]
|
|
},
|
|
|
|
"grid_panel": {
|
|
"type": "stack_panel",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"orientation": "vertical",
|
|
"size": "$feed_panel_size",
|
|
"offset": [ 0, 0 ],
|
|
"controls": [
|
|
{ "top_spacing_gap@feed_common.spacing_gap": {} },
|
|
{ "manage_feed_loading_grid_item@manage_feed.manage_feed_loading_grid_item": {} },
|
|
{ "manage_feed_grid@manage_feed.manage_feed_grid": {} },
|
|
{ "spacing_gap2@feed_common.spacing_gap": {} },
|
|
{
|
|
"pagination_panel@manage_feed.pagination_panel": {
|
|
"$is_visible_binding_name": "#manage_feed_buttons_visible",
|
|
"$this_page_index_text": "#manage_feed_page_index_text",
|
|
"$is_prev_visible": "#manage_feed_prevButton_visible",
|
|
"$is_next_visible": "#manage_feed_nextButton_visible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"pagination_panel@feed_common.pagination_panel": {
|
|
"$next_button_name": "button.manage_feed_next_button",
|
|
"$prev_button_name": "button.manage_feed_prev_button",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$is_visible_binding_name",
|
|
"binding_name_override": "#visible",
|
|
"binding_type": "global"
|
|
}
|
|
]
|
|
},
|
|
|
|
"manage_feed_grid": {
|
|
"type": "grid",
|
|
"size": [ "100%", "default" ],
|
|
"grid_item_template": "manage_feed.manage_feed_grid_item",
|
|
"grid_dimension_binding": "#manage_feed_grid_dimension",
|
|
"$collection_binding_name": "manage_feed_collection",
|
|
"collection_name": "manage_feed_collection",
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#manage_feed_grid_dimension"
|
|
}
|
|
]
|
|
},
|
|
|
|
"manage_feed_grid_item": {
|
|
"type": "panel",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%", 190 ],
|
|
"controls": [
|
|
{
|
|
"image_panel_instance@manage_feed.image_panel": {
|
|
"size": [ "60%", "80%" ]
|
|
}
|
|
},
|
|
{ "manage_feed_buttons_panel@manage_feed.manage_feed_buttons_panel": {} },
|
|
{
|
|
"manage_feed_text_instance@feed_common.item_label": {
|
|
"size": [ 100, 30 ],
|
|
"font_size": "normal",
|
|
"offset": [ 140, 0 ],
|
|
"text": "#manage_content",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#manage_content",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
},
|
|
{
|
|
"binding_name": "#manage_feed_text_visible",
|
|
"binding_name_override": "#visible",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"feed_timesince_instance@feed_common.item_label": {
|
|
"size": [ 100, 10 ],
|
|
"font_size": "normal",
|
|
"offset": [ 164, -30 ],
|
|
"alpha": 0.5,
|
|
"text": "#time_since_manage_feed_post",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#time_since_manage_feed_post",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"nr_of_reports@feed_common.item_label": {
|
|
"size": [ 150, 10 ],
|
|
"font_size": "normal",
|
|
"offset": [ 165, 30 ],
|
|
"alpha": 0.5,
|
|
"text": "#nrreports",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#nrreports",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"manage_player_pic_panel@manage_feed.manage_player_pic_panel": {
|
|
"offset": [ 100, -35 ],
|
|
"layer": 0
|
|
}
|
|
},
|
|
{
|
|
"manage_feed_gamertag_instance@feed_common.item_label": {
|
|
"size": [ 100, 10 ],
|
|
"font_size": "normal",
|
|
"offset": [ 164, -40 ],
|
|
"text": "#manage_gamertag",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#manage_gamertag",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"manage_feed_buttons_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"anchor_from": "bottom_right",
|
|
"anchor_to": "bottom_right",
|
|
"offset": [ -29, 0 ],
|
|
"size": [ "30%", "30%" ],
|
|
"controls": [
|
|
{
|
|
"ignore_button@manage_feed.ignore_button": {}
|
|
},
|
|
{
|
|
"delete_button@manage_feed.delete_button": {}
|
|
}
|
|
]
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Grid item for loading manage feed
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"manage_feed_loading_grid_item": {
|
|
"type": "panel",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%", 190 ],
|
|
"$visible_binding_name|default": "#loading_bars_animation_visible",
|
|
"controls": [
|
|
{
|
|
"loading_image_panel@manage_feed.loading_image_panel": {
|
|
"size": [ "65%", "90%" ]
|
|
}
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$visible_binding_name",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"feed_buttons_panel_loading": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"anchor_from": "bottom_right",
|
|
"anchor_to": "bottom_right",
|
|
"offset": [ -10, 0 ],
|
|
"size": [ "30%", "30%" ],
|
|
"controls": [
|
|
{
|
|
"like_button_loading@feed.like_button_loading": {}
|
|
},
|
|
{
|
|
"spacing_gap1": {
|
|
"type": "panel",
|
|
"size": [ 2, "100%" ]
|
|
}
|
|
},
|
|
{ "comment_button_loading@feed.comment_button_loading": {} },
|
|
{
|
|
"spacing_gap2": {
|
|
"type": "panel",
|
|
"size": [ 2, "100%" ]
|
|
}
|
|
},
|
|
{ "options_button_loading@feed.options_button_loading": {} }
|
|
]
|
|
},
|
|
|
|
"like_button_loading": {
|
|
"size": [ 40, 25 ],
|
|
"type": "image",
|
|
"texture": "textures/ui/Black",
|
|
"alpha": 0.5
|
|
},
|
|
|
|
"comment_button_loading": {
|
|
"size": [ 70, 25 ],
|
|
"type": "image",
|
|
"texture": "textures/ui/Black",
|
|
"alpha": 0.5
|
|
},
|
|
|
|
"options_button_loading": {
|
|
"size": [ 25, 25 ],
|
|
"type": "image",
|
|
"texture": "textures/ui/Black",
|
|
"alpha": 0.5
|
|
},
|
|
|
|
"player_pic_panel_loading": {
|
|
"type": "panel",
|
|
"size": [ 20, 20 ],
|
|
"anchor_to": "center",
|
|
"anchor_from": "center",
|
|
"controls": [
|
|
{ "player_gamer_pic_loading@feed.player_gamer_pic_loading": {} }
|
|
]
|
|
},
|
|
|
|
"player_gamer_pic_loading": {
|
|
"type": "image",
|
|
"texture": "textures/ui/Black",
|
|
"size": [ 18, 18 ],
|
|
"alpha": 0.5
|
|
},
|
|
|
|
"loading_image_panel": {
|
|
"type": "panel",
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 0, 0 ],
|
|
"controls": [
|
|
{
|
|
"progress_loading_bars@feed_common.progress_loading_bars": {
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#progress_visible",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{ "manage_feed_image_loading@manage_feed.manage_feed_image_loading": {} },
|
|
{
|
|
"no_feed_item_content@feed_common.no_feed_item_content": {
|
|
"text": "feed.no_reported_item_content"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"manage_feed_image_loading": {
|
|
"type": "image",
|
|
"layer": 0,
|
|
"texture": "textures/ui/Black",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%", "100%" ],
|
|
"alpha": 0.5
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Buttons and others
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"ignore_button@common_buttons.transparent_content_button": {
|
|
"size": [ 70, 25 ],
|
|
"$pressed_button_name": "button.menu_start_realms_world",
|
|
"$button_content": "manage_feed.ignore_content_panel",
|
|
"$default_button_alpha": 0.3,
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_select",
|
|
"to_button_id": "button.manage_feed_ignore",
|
|
"mapping_type": "pressed"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_ok",
|
|
"to_button_id": "button.manage_feed_ignore",
|
|
"mapping_type": "focused"
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"binding_type": "collection_details",
|
|
"binding_collection_name": "$collection_binding_name"
|
|
}
|
|
]
|
|
},
|
|
|
|
"ignore_content_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", "50%" ],
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"controls": [
|
|
{
|
|
"ignore_label@feed_common.smooth_label": {
|
|
"text": "feed.ignore",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"delete_button@common_buttons.transparent_content_button": {
|
|
"size": [ 70, 25 ],
|
|
"$pressed_button_name": "button.menu_start_realms_world",
|
|
"$button_content": "manage_feed.delete_content_panel",
|
|
"$default_button_alpha": 0.3,
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_select",
|
|
"to_button_id": "button.manage_feed_delete",
|
|
"mapping_type": "pressed"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_ok",
|
|
"to_button_id": "button.manage_feed_delete",
|
|
"mapping_type": "focused"
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"binding_type": "collection_details",
|
|
"binding_collection_name": "$collection_binding_name"
|
|
}
|
|
]
|
|
},
|
|
|
|
"delete_content_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", "50%" ],
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"controls": [
|
|
{
|
|
"delete_label@feed_common.smooth_label": {
|
|
"text": "feed.delete",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Common Controls
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"manage_feed_image": {
|
|
"type": "image",
|
|
"layer": 0,
|
|
"texture": "#manage_feed_texture",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%", "100%" ],
|
|
"texture_file_system": "#manage_feed_texture_source",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#manage_feed_texture",
|
|
"binding_type": "collection",
|
|
"binding_name_override": "#texture",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
},
|
|
{
|
|
"binding_name": "#manage_feed_texture_source",
|
|
"binding_name_override": "#texture_file_system",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
}
|
|
]
|
|
},
|
|
|
|
"manage_feed_image_content_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", "100%" ],
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 0, 0 ],
|
|
"controls": [
|
|
{ "manage_feed_image@manage_feed.manage_feed_image": {} },
|
|
{ "textpost_content@manage_feed.textpost_content": {} }
|
|
]
|
|
},
|
|
|
|
"textpost_content": {
|
|
"type": "label",
|
|
"color": "$f_color_format",
|
|
"text": "#manage_textpost_content",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"size": [ "80%", "default" ],
|
|
"text_alignment": "center",
|
|
"layer": 6,
|
|
"font_type": "smooth",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#manage_textpost_content",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
},
|
|
{
|
|
"binding_name": "#manage_textpost_visible",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"image_panel": {
|
|
"type": "panel",
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 0, 0 ],
|
|
"controls": [
|
|
{ "manage_feed_image_content_panel@manage_feed.manage_feed_image_content_panel": {} }
|
|
]
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// player Related
|
|
//--------------------------------------------------------------------------------
|
|
|
|
|
|
"manage_player_pic_panel": {
|
|
"type": "panel",
|
|
"size": [ 20, 20 ],
|
|
"anchor_to": "center",
|
|
"anchor_from": "center",
|
|
"controls": [
|
|
{ "manage_player_gamer_pic@manage_feed.manage_player_gamer_pic": {} }
|
|
]
|
|
},
|
|
|
|
"manage_player_gamer_pic": {
|
|
"type": "image",
|
|
"texture": "#manage_gamerpic_texture",
|
|
"size": [ 18, 18 ],
|
|
"layer": 0,
|
|
"texture_file_system": "#manage_gamerpic_texture_source",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#manage_gamerpic_texture",
|
|
"binding_name_override": "#texture",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
},
|
|
{
|
|
"binding_name": "#manage_gamerpic_texture_source",
|
|
"binding_name_override": "#texture_file_system",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection"
|
|
},
|
|
{
|
|
"binding_name": "#manage_gamerpic_visible",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "manage_feed_collection",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Root Controls
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"content": {
|
|
"type": "panel",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%", "100%" ],
|
|
"offset": [ 5, 0 ],
|
|
"controls": [
|
|
{
|
|
"top_bar_gradient@feed_common.top_bar_gradient": {
|
|
"size": [ "100%", "8%" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"offset": [ -5, 0 ],
|
|
"layer": 9
|
|
}
|
|
},
|
|
{
|
|
"gamepad_helpers@feed_common.gamepad_helpers": {}
|
|
},
|
|
{
|
|
"return_button@feed_common.return_button": {
|
|
"$close_button_to_button_id|default": "button.close_manage_feed",
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_select",
|
|
"to_button_id": "$close_button_to_button_id",
|
|
"mapping_type": "pressed"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_ok",
|
|
"to_button_id": "$close_button_to_button_id",
|
|
"mapping_type": "focused"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"reported_items_label@feed_common.title_label": {
|
|
"layer": 10,
|
|
"text": "feed.reported_label"
|
|
}
|
|
},
|
|
{ "manage_feed_item_scrolling_panel_instance@manage_feed.manage_feed_item_scrolling_panel": {} }
|
|
]
|
|
},
|
|
|
|
"manage_feed_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_tab_right",
|
|
"to_button_id": "button.manage_feed_next_button",
|
|
"mapping_type": "global"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_tab_left",
|
|
"to_button_id": "button.manage_feed_prev_button",
|
|
"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"
|
|
}
|
|
],
|
|
"$default_text_color": [ 0.3, 0.3, 0.3 ],
|
|
"$screen_content": "manage_feed.manage_feed_screen_content"
|
|
},
|
|
|
|
"manage_feed_screen_content@common.common_panel": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{
|
|
"transparent_background@feed_common.transparent_background": {}
|
|
},
|
|
{
|
|
"container": {
|
|
"type": "panel",
|
|
"size": [ "100%", "100%" ],
|
|
"layer": 1,
|
|
"controls": [
|
|
{ "content@manage_feed.content": {} }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|