{ "namespace": "comment", //-------------------------------------------------------------------------------- // Options Dialog Popup //-------------------------------------------------------------------------------- "popup_dialog__options@popup_dialog.popup_dialog": { "size": [ "100%", "100%" ], "controls": [ { "gamepad_helpers@feed_common.gamepad_helpers": {} }, { "faded_background_image@feed_common.faded_background_image": {} }, { "options_popup_dialog_button_panel@comment.options_popup_dialog_button_panel": {} } ] }, "popup_dialog__options_comment@popup_dialog.popup_dialog": { "size": [ "100%", "100%" ], "controls": [ { "gamepad_helpers@feed_common.gamepad_helpers": {} }, { "faded_background_image@feed_common.faded_background_image": {} }, { "comment_feed_options_popup_dialog_button_panel@comment.comment_feed_options_popup_dialog_button_panel": {} } ] }, "options_popup_dialog_button_panel": { "type": "stack_panel", "size": [ "30%", "15%" ], "orientation": "vertical", "anchor_from": "center", "anchor_to": "center", "layer": 3, "controls": [ { "close_button_panel": { "type": "panel", "anchor_from": "top_left", "anchor_to": "top_left", "size": [ 140, "100%c" ], "controls": [ { "close_button_options@common.close_button": { "anchor_from": "right_middle", "anchor_to": "right_middle", "$default_button_alpha": "@feed_common.anim_faded_background_full", "button_mappings": [ { "from_button_id": "button.menu_select", "to_button_id": "button.comment_options_close", "mapping_type": "pressed" }, { "from_button_id": "button.menu_ok", "to_button_id": "button.comment_options_close", "mapping_type": "focused" } ], "bindings": [ { "binding_name": "(not #is_using_gamepad)", "binding_name_override": "#visible" } ] } } ] } }, { "report_to_club_button@feed_common.report_to_club_button": { "$pressed_button_name": "button.report_club", "anchor_from": "top_left", "anchor_to": "top_left", "bindings": [ { "binding_name": "#report_to_club_button_visible_feeditem", "binding_name_override": "#visible", "binding_type": "global" } ] } }, { "report_to_xbox_button@feed_common.report_to_xbox_button": { "$pressed_button_name": "button.report_xbox", "anchor_from": "top_left", "anchor_to": "top_left", "bindings": [ { "binding_name": "#report_to_enforcement_button_visible_feeditem", "binding_name_override": "#visible", "binding_type": "global" } ] } }, { "delete_button@feed_common.delete_button": { "$pressed_button_name": "button.comment_delete_feed_item", "anchor_from": "top_left", "anchor_to": "top_left", "bindings": [ { "binding_name": "#delete_button_visible_feeditem", "binding_name_override": "#visible", "binding_type": "global" } ] } } ] }, "comment_feed_options_popup_dialog_button_panel": { "type": "stack_panel", "size": [ "30%", "15%" ], "orientation": "vertical", "anchor_from": "center", "anchor_to": "center", "layer": 3, "controls": [ { "spacing_and_x": { "size": [ "100%", "17%" ], "type": "stack_panel", "orientation": "horizontal", "controls": [ { "spacing_gap": { "type": "panel", "size": [ 130, 5 ] } }, { "close_button_options@common.close_button": { "anchor_from": "center", "anchor_to": "center", "offset": [ 54, -28 ], "$default_button_alpha": "@feed_common.anim_faded_background_full", "button_mappings": [ { "from_button_id": "button.menu_select", "to_button_id": "button.comment_feed_options_close", "mapping_type": "pressed" }, { "from_button_id": "button.menu_ok", "to_button_id": "button.comment_feed_options_close", "mapping_type": "focused" } ], "bindings": [ { "binding_name": "(not #is_using_gamepad)", "binding_name_override": "#visible" } ] } } ] } }, { "report_to_club_button@feed_common.report_to_club_button": { "$pressed_button_name": "button.comment_feed_report_club", "anchor_from": "top_left", "anchor_to": "top_left", "bindings": [ { "binding_name": "#report_to_club_button_visible_comment", "binding_name_override": "#visible", "binding_type": "global" } ] } }, { "report_to_xbox_button@feed_common.report_to_xbox_button": { "$pressed_button_name": "button.comment_feed_report_xbox", "anchor_from": "top_left", "anchor_to": "top_left", "bindings": [ { "binding_name": "#report_to_enforcement_button_visible_comment", "binding_name_override": "#visible", "binding_type": "global" } ] } }, { "delete_button@feed_common.delete_button": { "$pressed_button_name": "button.comment_delete_feed_item_comment", "anchor_from": "top_left", "anchor_to": "top_left", "bindings": [ { "binding_name": "#delete_button_visible_comment", "binding_name_override": "#visible", "binding_type": "global" } ] } } ] }, //-------------------------------------------------------------------------------- // Comment_grid //-------------------------------------------------------------------------------- "comment_item_scrolling_panel": { "type": "panel", "anchor_to": "bottom_right", "anchor_from": "bottom_right", "size": [ "45%", "100%" ], "offset": [ -4, 0 ], "controls": [ { "comment_item_scrolling_panel_content@comment.comment_item_scrolling_panel_content": { "$scrolling_pane_size": [ "100%", "100%" ], "anchor_to": "bottom_right", "anchor_from": "bottom_right" } } ] }, "comment_item_scrolling_panel_content@common.scrolling_panel": { "anchor_to": "top_right", "anchor_from": "top_right", "$show_background": false, "$scroll_size": [ 5, "100% - 4px" ], "$scrolling_content": "comment.grid_panel", "$comment_panel_size": [ "100% - 1px", "100%c" ] }, "grid_panel": { "type": "stack_panel", "anchor_from": "top_left", "anchor_to": "top_left", "orientation": "vertical", "size": "$comment_panel_size", "offset": [ 0, 0 ], "controls": [ { "top_spacing_gap@feed_common.spacing_gap": { "size": [ "100%", 30 ] } }, { "feed_item_content_details_stack_panel@comment.feed_item_content_details_stack_panel": { } }, { "spacing_gap_2@feed_common.spacing_gap": { "size": [ "100%", 20 ] } }, { "comment_grid_instance@comment.comment_grid": {} }, { "spacing_gap_3@feed_common.spacing_gap": { "size": [ "100%", 20 ] } }, { "pagination_panel@comment.pagination_panel": { "$is_visible_binding_name": "#comment_buttons_visible", "$this_page_index_text": "#comment_page_index_text", "$is_prev_visible": "#comment_prev_button_visible", "$is_next_visible": "#comment_next_button_visible" } } ] }, "pagination_panel@feed_common.pagination_panel": { "$next_button_name": "button.comment_next_button", "$prev_button_name": "button.comment_prev_button", "bindings": [ { "binding_name": "$is_visible_binding_name", "binding_name_override": "#visible", "binding_type": "global" } ] }, "comment_grid": { "type": "grid", "size": [ "100%", "default" ], "anchor_to": "top_left", "anchor_from": "top_left", "grid_item_template": "comment.comment_grid_item", "grid_dimension_binding": "#comment_grid_dimension", "$collection_binding_name": "comment_collection", "collection_name": "comment_collection", "bindings": [ { "binding_name": "#comment_grid_dimension" } ] }, "comment_grid_item": { "type": "stack_panel", "anchor_from": "top_left", "anchor_to": "top_left", "orientation": "vertical", "size": [ "100%", "100%c + 85px" ], "controls": [ { "player_buttons_stack_panel@comment.player_buttons_stack_panel": {} }, { "textpanel@comment.textpanel": {} } ] }, "textpanel": { "type": "panel", "size": [ "100%", "100%c" ], "anchor_from": "top_left", "anchor_to": "top_left", "controls": [ { "grid_comment_text@feed_common.item_label": { "size": [ "100%", "default" ], "font_size": "normal", "anchor_from": "top_left", "anchor_to": "top_left", "text": "#comment_content", "bindings": [ { "binding_name": "#comment_content", "binding_type": "collection", "binding_collection_name": "comment_collection" } ] } } ] }, "player_buttons_stack_panel": { "type": "stack_panel", "anchor_from": "top_left", "anchor_to": "top_left", "orientation": "horizontal", "size": [ "100%", 25 ], "controls": [ { "comment_player_panel@comment.comment_player_panel": {} }, { "like_options_comment_feed_stack_panel@comment.like_options_comment_feed_stack_panel": {} } ] }, "feed_item_content_stack_panel": { "type": "stack_panel", "orientation": "horizontal", "anchor_to": "top_left", "anchor_from": "top_left", "size": [ "100%", "50%" ], "controls": [ { "image_panel_instance@comment.image_panel": { "size": [ "50%", "100%" ] } }, { "feed_item_content_panel@comment.feed_item_content_panel": {} } ] }, "like_options_stack_panel": { "type": "stack_panel", "orientation": "horizontal", "size": [ 300, 27 ], "$collection_binding_name": "feed_collection", "controls": [ { "like_button@feed_common.like_button": { "$button_mapping_id": "button.like_button", "$is_like_visible": "#comment_like_icon_visible", "$focus_id": "like_button_id", "$focus_override_left": "FOCUS_OVERRIDE_STOP", "$focus_override_right": "options_button_id", "bindings": [ { "binding_type": "collection_details", "binding_collection_name": "$collection_binding_name" } ] } }, { "options_button@feed_common.options_button": { "$button_mapping_id": "button.comment_options", "$focus_id": "options_button_id", "$focus_override_left": "like_button_id", "$focus_override_right": "FOCUS_OVERRIDE_STOP" } } ] }, "like_options_comment_feed_stack_panel": { "type": "stack_panel", "orientation": "horizontal", "size": [ 100, 50 ], "anchor_to": "top_right", "anchor_from": "top_right", "controls": [ { "like_button@feed_common.like_button": { "anchor_from": "top_right", "anchor_to": "top_right", "$button_mapping_id": "button.comment_grid_like", "$is_like_visible": "#commentfeed_like_icon_visible", "$focus_id": "like_button_comment_id", "$focus_override_left": "FOCUS_OVERRIDE_STOP", "$focus_override_right": "options_button_comment_id", "bindings": [ { "binding_type": "collection_details", "binding_collection_name": "$collection_binding_name" } ] } }, { "options_button_comment@feed_common.options_button": { "$button_mapping_id": "button.comment_feed_options", "$focus_id": "options_button_comment_id", "$focus_override_left": "like_button_comment_id", "$focus_override_right": "FOCUS_OVERRIDE_STOP", "bindings": [ { "binding_type": "collection_details", "binding_collection_name": "$collection_binding_name" } ] } } ] }, "feed_item_content_details_stack_panel": { "type": "stack_panel", "orientation": "vertical", "anchor_from": "top_left", "anchor_to": "top_left", "controls": [ { "author_player_panel@comment.author_player_panel": {} }, { "comment_text_instance@feed_common.item_label": { "size": [ 200, "default" ], "font_size": "normal", "text": "#content", "anchor_to": "top_left", "anchor_from": "top_left", "bindings": [ { "binding_name": "#content" }, { "binding_name": "#text_visible", "binding_name_override": "#visible" } ] } }, { "like_comment_label_instance@feed_common.item_label": { "size": [ 100, 10 ], "font_size": "normal", "alpha": 0.5, "text": "#likes_and_comments", "bindings": [ { "binding_name": "#likes_and_comments", "binding_type": "collection", "binding_collection_name": "comment_collection" } ] } }, { "like_options_stack_panel@comment.like_options_stack_panel": {} }, { "comment_text_panel@comment.comment_text_panel": {} } ] }, //-------------------------------------------------------------------------------- // Common Controls //-------------------------------------------------------------------------------- "comment_image": { "type": "image", "texture": "#screenshot_texture", "texture_file_system": "#screenshot_texture_source", "anchor_from": "top_left", "anchor_to": "top_left", "size": [ "100%", "100%" ], "bindings": [ { "binding_name": "#screenshot_texture", "binding_name_override": "#texture", "binding_type": "global" }, { "binding_name": "#screenshot_texture_source", "binding_name_override": "#texture_file_system", "binding_type": "global" } ] }, "textpost_content": { "type": "label", "color": "$f_color_format", "text": "#textpost_content", "anchor_from": "center", "anchor_to": "center", "size": [ "80%", "default" ], "text_alignment": "center", "layer": 1, "font_type": "smooth", "bindings": [ { "binding_name": "#textpost_content" }, { "binding_name": "#textpost_visible", "binding_name_override": "#visible" } ] }, "image_panel": { "type": "panel", "anchor_from": "top_left", "anchor_to": "top_left", "offset": [ 0, 30 ], "controls": [ { "comment_image_instance@comment.comment_image": {} }, { "textpost_content@comment.textpost_content": {} } ] }, "submit_icon": { "type": "image", "texture": "textures/ui/send_icon", "size": [ 11, 11 ] }, "comment_text_box@common.transparent_text_edit_box": { "size": [ "100%", 25 ], "max_length": 350, "anchor_from": "top_left", "anchor_to": "top_left", "$text_box_name": "comment_text_box", "$text_edit_box_content_binding_name": "#comment_box_text", "$alpha": 0.3, "$hover_alpha": 0.45, "$place_holder_text": "comment.commentplaceholder", "$place_holder_text_color": [ 0.5, 0.5, 0.5, 1.0 ], "bindings": [ { "binding_name": "#comment_text_box" } ] }, "comment_text_panel": { "type": "stack_panel", "orientation": "horizontal", "size": [ "85%", 25 ], "anchor_from": "top_left", "anchor_to": "top_left", "controls": [ { "comment_text_box@comment.comment_text_box": { "$focus_id": "comment_text_box", "$focus_override_left": "FOCUS_OVERRIDE_STOP", "$focus_override_right": "submit_button" } }, { "submit_button@comment.submit_button": { "$focus_id": "submit_button" } } ] }, "submit_button@common_buttons.transparent_content_button": { "layer": 10, "size": [ 25, 25 ], "anchor_from": "top_right", "anchor_to": "top_right", "$pressed_button_name": "button.submit_comment", "$button_content": "comment.submit_icon", "$default_content_alpha": 1, "$hover_content_alpha": 0.6, "$pressed_alpha": 0.3, "$default_button_alpha": 0, "$default_hover_alpha": 0.15, "$default_pressed_alpha": 0.3 }, //-------------------------------------------------------------------------------- // player related //-------------------------------------------------------------------------------- "player_pic_panel": { "type": "panel", "size": [ 20, 20 ], "anchor_to": "top_left", "anchor_from": "top_left", "offset": [ 20, 23 ], "controls": [ { "player_gamer_pic@comment.player_gamer_pic": {} } ] }, "player_comment_pic_panel": { "type": "panel", "size": [ 20, 20 ], "anchor_to": "top_left", "anchor_from": "top_left", "controls": [ { "player_gamer_pic@comment.player_comment_gamer_pic": {} } ] }, "player_gamer_pic": { "type": "image", "texture": "#gamerpic_texture", "size": [ 18, 18 ], "texture_file_system": "#gamerpic_texture_source", "bindings": [ { "binding_name": "#gamerpic_texture", "binding_name_override": "#texture", "binding_type": "collection", "binding_collection_name": "comment_collection" }, { "binding_name": "#texture_source", "binding_name_override": "#texture_file_system", "binding_type": "collection", "binding_collection_name": "comment_collection" }, { "binding_name": "#gamerpic_visible", "binding_type": "collection", "binding_collection_name": "comment_collection", "binding_name_override": "#visible" } ] }, "player_comment_gamer_pic": { "type": "image", "texture": "#comment_gamerpic_texture", "size": [ 18, 18 ], "texture_file_system": "#comment_gamerpic_texture_source", "bindings": [ { "binding_name": "#comment_gamerpic_texture", "binding_name_override": "#texture", "binding_type": "collection", "binding_collection_name": "comment_collection" }, { "binding_name": "#comment_texture_source", "binding_name_override": "#texture_file_system", "binding_type": "collection", "binding_collection_name": "comment_collection" }, { "binding_name": "#comment_gamerpic_visible", "binding_type": "collection", "binding_collection_name": "comment_collection", "binding_name_override": "#visible" } ] }, "author_player_panel": { "type": "stack_panel", "orientation": "horizontal", "anchor_from": "top_left", "anchor_to": "top_left", "size": [ "100%", 25 ], "controls": [ { "player_pic_panel_instance@comment.player_pic_panel": {} }, { "spacing_gap@feed_common.spacing_gap": { "size": [ 5, "100%" ] } }, { "author_gamertag_panel@comment.author_gamertag_panel": {} } ] }, "comment_player_panel": { "type": "stack_panel", "orientation": "horizontal", "anchor_from": "top_left", "anchor_to": "top_left", "size": [ 100, 50 ], "controls": [ { "player_pic_panel_instance@comment.player_comment_pic_panel": {} }, { "spacing_gap@feed_common.spacing_gap": { "size": [ 5, "100%" ] } }, { "comment_gamertag_panel@comment.comment_gamertag_panel": {} } ] }, "comment_gamertag_panel": { "type": "stack_panel", "orientation": "vertical", "size": [ "50%", "100%" ], "controls": [ { "comment_gamertag_instance@feed_common.item_label": { "size": [ 100, 10 ], "font_size": "normal", "text": "#comment_gamertag", "bindings": [ { "binding_name": "#comment_gamertag", "binding_type": "collection", "binding_collection_name": "comment_collection" } ] } }, { "spacing_gap@feed_common.spacing_gap": { "size": [ "100%", 2 ] } }, { "grid_comment_timesince@feed_common.item_label": { "size": [ 100, 10 ], "font_size": "normal", "alpha": 0.5, "text": "#likes_and_time_since_comment_post", "bindings": [ { "binding_name": "#likes_and_time_since_comment_post", "binding_type": "collection", "binding_collection_name": "comment_collection" } ] } } ] }, "author_gamertag_panel": { "type": "stack_panel", "orientation": "vertical", "size": [ "70%", "100%" ], "controls": [ { "author_gamertag_instance@feed_common.item_label": { "size": [ 100, 10 ], "font_size": "normal", "text": "#author_gamertag", "bindings": [ { "binding_name": "#author_gamertag", "binding_type": "collection", "binding_collection_name": "comment_collection" } ] } }, { "spacing_gap@feed_common.spacing_gap": { "size": [ "100%", 2 ] } }, { "feed_item_timesince@feed_common.item_label": { "size": [ 100, 10 ], "font_size": "normal", "alpha": 0.5, "text": "#time_since_feed_post", "bindings": [ { "binding_name": "#time_since_feed_post", "binding_type": "collection", "binding_collection_name": "comment_collection" } ] } } ] }, //-------------------------------------------------------------------------------- // 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": 3 } }, { "return_button@feed_common.return_button": { "$close_button_to_button_id|default": "button.menu_exit", "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" } ] } }, { "comments@feed_common.title_label": { "text": "feed.comments", "layer": 3 } }, { "image_panel_instance@comment.image_panel": { "size": [ "50%", "50%" ] } }, { "comment_item_scrolling_panel@comment.comment_item_scrolling_panel": {} }, { "gamepad_helpers@feed_common.gamepad_helpers": {} }, { "popup_dialog_factory_options_comment": { "type": "factory", "control_ids": { "options": "@comment.popup_dialog__options" } } }, { "popup_dialog_factory_options_comment_feed": { "type": "factory", "control_ids": { "options": "@comment.popup_dialog__options_comment" } } } ] }, "comment_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.comment_next_button", "mapping_type": "global" }, { "from_button_id": "button.menu_tab_left", "to_button_id": "button.comment_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": "comment.comment_screen_content" }, "comment_screen_content@common.common_panel": { "type": "panel", "controls": [ { "transparent_background@feed_common.transparent_background": {} }, { "container": { "type": "panel", "size": [ "100%", "100%" ], "layer": 1, "controls": [ { "content@comment.content": {} } ] } } ] } }