{
  "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@feed_common.options_close_button_high_contrast": {
                "anchor_from": "right_middle",
                "anchor_to": "right_middle",
                "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_high_contrast": {
                "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": "stack_panel",
    "size": [ "100%", "100%c" ],
    "orientation": "vertical",
    "anchor_to": "top_left",
    "anchor_from": "top_left",

    "factory": {
      "name": "factory",
      "control_ids": {
        "xbox_live": "@comment.comment_msa_item",
        "linked": "@comment.comment_linked_account_item"
      },
      "factory_variables": [
        "$feed_factory_collection_details",
        "$feed_factory_binding_type",
        "$feed_factory_collection_prefix",
        "$collection_binding_name"
      ]
    },
    "$feed_factory_collection_details|default": "collection_details",
    "$feed_factory_binding_type|default": "collection",
    "$feed_factory_collection_prefix|default": "factory",
    "$collection_binding_name": "comment_collection",
    "collection_name": "$collection_binding_name",

    "bindings": [
      {
        "binding_name": "#feed_comment_page_collection_length",
        "binding_name_override": "#collection_length"
      }
    ]
  },

  "comment_msa_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": {}
      }
    ]
  },

  "comment_linked_account_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.linked_player_buttons_stack_panel": {}
      },
      {
        "spacing_gap@feed_common.spacing_gap": {
          "size": [ "100%", 5 ]
        }
      },
      {
        "text_post_spacer": {
          "type": "panel",
          "size": [ "100%", "100%cm" ],
          "controls": [
            {
              "textpanel@comment.textpanel": {
                "offset": [ 17, 0 ]
              }
            }
          ]
        }
      }
    ]
  },

  "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": {}
      }
    ]
  },

  "linked_player_buttons_stack_panel": {
    "type": "stack_panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "orientation": "horizontal",
    "size": [ "100%", 50 ],
    "controls": [
      {
        "comment_player_panel@comment.linked_comment_player_panel": {}
      },
      {
        "spacing_gap@feed_common.spacing_gap": {
          "size": [ 2, "100%" ]
        }
      },
      {
        "platform_icon@feed_common.platform_icon_panel": {
          "$icon_offset": [0, 4]
        }
      },
      {
        "like_options_comment_feed_stack_panel@comment.like_options_comment_feed_stack_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": [ 140, 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",
    "size": [ 140, 155 ],
    "controls": [
      {
        "author_player_panel@comment.author_player_panel": {
          "bindings": [
            {
              "binding_name": "(not #is_author_linked_account)",
              "binding_name_override": "#visible"
            }
          ]
        }

      },
      {
        "linked_author_player_panel@comment.linked_account_author_player_panel": {
          "visible": false,
          "bindings": [
            {
              "binding_name": "#is_author_linked_account",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "spacing_gap@feed_common.spacing_gap": {
          "size": [ "100%", 5 ],
          "visible": false,
          "bindings": [
            {
              "binding_name": "#is_author_linked_account",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "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"
            }
          ]
        }
      },
      {
        "spacing_gap_02@feed_common.spacing_gap": {
          "size": [ "100%", 5 ],
          "visible": false,
          "bindings": [
            {
              "binding_name": "#is_author_linked_account",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "like_comment_label_instance@feed_common.item_label": {
          "size": [ "default", 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",
    "$box_texture": "textures/ui/imagetaggedcornerborder",
    "$place_holder_text": "comment.commentplaceholder",
    "$place_holder_text_color": [ 0.5412, 0.5373, 0.5412, 1.0 ],
    "$place_holder_text_hover_color": [ 1.0, 1.0, 1.0, 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@feed_common.feed_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"
  },

  //--------------------------------------------------------------------------------
  // player related
  //--------------------------------------------------------------------------------

  "player_gamer_pic": {
    "type": "image",
    "$texture_path|default": "#gamerpic_texture",
    "$texture_source|default": "#gamerpic_texture_source",
    "$is_picture_visible|default": "#gamerpic_visible",
    "texture": "$texture_path",
    "size": [ 18, 18 ],
    "texture_file_system": "$texture_source",
    "bindings": [
      {
        "binding_name": "$texture_path",
        "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": "$is_picture_visible",
        "binding_type": "collection",
        "binding_collection_name": "comment_collection",
        "binding_name_override": "#visible"
      }
    ]
  },

  "player_comment_gamer_pic": {
    "type": "image",
    "$texture_path|default": "#comment_gamerpic_texture",
    "$texture_source|default": "#comment_gamerpic_texture_source",
    "$is_picture_visible|default": "#comment_gamerpic_visible",
    "texture": "$texture_path",
    "size": [ 18, 18 ],
    "texture_file_system": "$texture_source",
    "bindings": [
      {
        "binding_name": "$texture_path",
        "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": "$is_picture_visible",
        "binding_type": "collection",
        "binding_collection_name": "comment_collection",
        "binding_name_override": "#visible"
      }
    ]
  },

  "player_platform_pic@comment.player_gamer_pic": {
    "$texture_path": "#platform_profile_pic_texture",
    "$texture_source": "#platform_profile_pic_texture_source",
    "$is_picture_visible": "#platform_pic_visible"
  },

  "player_comment_platform_pic@comment.player_comment_gamer_pic": {
    "$texture_path": "#comment_platform_profile_pic_texture",
    "$texture_source": "#comment_platform_profile_pic_texture_source",
    "$is_picture_visible": "#comment_platform_pic_visible"
  },

  "player_gamerpic_panel": {
    "type": "panel",
    "size": [ 20, 20 ],
    "controls": [
      {
        "player_gamer_pic_instance@comment.player_gamer_pic": {
          "layer": 0
        }
      }
    ]
  },

  "player_pic_panel": {
    "type": "panel",
    "size": [ 20, 20 ],
    "controls": [
      {
        "player_gamer_pic_instance@comment.player_gamer_pic": {
          "layer": 0
        }
      },
      {
        "bevel_bg@feed_common.player_pic_bevel": {
          "layer": 1
        }
      }
    ]
  },

  "player_comment_gamerpic_panel": {
    "type": "panel",
    "size": [ 20, 20 ],
    "controls": [
      {
        "player_gamer_pic_instance@comment.player_comment_gamer_pic": {
          "layer": 0
        }
      }
    ]
  },


  "player_comment_pic_panel": {
    "type": "panel",
    "size": [ 20, 20 ],
    "controls": [
      {
        "player_gamer_pic_instance@comment.player_comment_gamer_pic": {
          "layer": 0
        }
      },
      {
        "bevel_bg@feed_common.player_pic_bevel": {
          "layer": 1
        }
      }
    ]
  },

  "player_platform_pic_panel": {
    "type": "panel",
    "size": [ 20, 20 ],
    "controls": [
      {
        "player_platform_pic_instance@comment.player_platform_pic": {
          "layer": 0
        }
      },
      {
        "bevel_bg@feed_common.player_pic_bevel": {
          "layer": 1
        }
      }
    ]
  },


  "player_comment_platform_pic_panel": {
    "type": "panel",
    "size": [ 20, 20 ],
    "controls": [
      {
        "player_platform_pic_instance@comment.player_comment_platform_pic": {
          "layer": 0
        }
      },
      {
        "bevel_bg@feed_common.player_pic_bevel": {
          "layer": 1
        }
      }
    ]
  },

  "author_linked_accounts_pics": {
    "type": "stack_panel",
    "orientation": "vertical",
    "$platform_account|default": "comment.player_platform_pic_panel",
    "$xboxlive_account|default": "comment.player_pic_panel",

    "size": [ 20, 45 ],
    "controls": [
      {
        "player_platform_pic_panel_instance@$platform_account": {
        }
      },
      {
        "account_link_icon@feed_common.account_link_icon": {
        }
      },
      {
        "player_gamerpic_panel_instance@$xboxlive_account": {}
      }
    ]
  },

  "linked_accounts_comment_pics@comment.author_linked_accounts_pics": {
    "$platform_account": "comment.player_comment_platform_pic_panel",
    "$xboxlive_account": "comment.player_comment_pic_panel"
  },

  "author_player_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", 25 ],
    "controls": [
      {
        "player_pic_panel_instance@comment.player_gamerpic_panel": {}
      },
      {
        "spacing_gap_02@feed_common.spacing_gap": {
          "size": [ 5, "100%" ]
        }
      },
      {
        "author_gamertag_panel@comment.author_gamertag_panel": {}
      }
    ]
  },

  "linked_account_author_player_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", 45 ],
    "controls": [
      {
        "player_pic_panel_instance@comment.author_linked_accounts_pics": {

        }
      },
      {
        "spacing_gap_02@feed_common.spacing_gap": {
          "size": [ 5, "100%" ]
        }
      },
      {
        "author_gamertag_panel@comment.author_linked_account_tags_panel": {

        }
      },
      {
        "spacing_gap_01@feed_common.spacing_gap": {
          "size": [ 2, "100%" ]
        }
      },
      {
        "platform_icon@feed_common.platform_icon_panel": {

        }
      }
    ]
  },


  "comment_player_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ 140, 50 ],
    "controls": [
      {
        "player_pic_panel_instance@comment.player_comment_gamerpic_panel": {}
      },
      {
        "spacing_gap@feed_common.spacing_gap": {
          "size": [ 5, "100%" ]
        }
      },
      {
        "comment_gamertag_panel@comment.comment_gamertag_panel": {}
      }
    ]
  },

  "linked_comment_player_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ 125, 50 ],
    "controls": [
      {
        "player_pic_panel_instance@comment.linked_accounts_comment_pics": {}
      },
      {
        "spacing_gap@feed_common.spacing_gap": {
          "size": [ 5, "100%" ]
        }
      },
      {
        "comment_gamertag_panel@comment.comment_linked_account_tags_panel": {}
      }
    ]
  },

  "comment_linked_account_tags_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "50%", "100%" ],
    "controls": [
      {
        "feed_platformtag_instance@feed_common.item_label": {
          "size": [ "100%", 10 ],
          "font_size": "normal",
          "text": "#comment_platform_tag",
          "bindings": [
            {
              "binding_name": "#comment_platform_tag",
              "binding_type": "collection",
              "binding_collection_name": "comment_collection"
            }
          ]
        }
      },
      {
        "spacing_gap_04": {
          "type": "panel",
          "size": [ "100%", 15 ]
        }
      },
      {
        "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"
            }
          ]
        }
      }
    ]
  },

  "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": [ 140, "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"
            }
          ]
        }
      },
      {
        "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"
            }
          ]
        }
      }
    ]
  },

  "author_linked_account_tags_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "70%", "100%" ],
    "controls": [
      {
        "feed_platformtag_instance@feed_common.item_label": {
          "size": [ "100%", 10 ],
          "font_size": "normal",
          "text": "#author_platform_tag",
          "bindings": [
            {
              "binding_name": "#author_platform_tag",
              "binding_type": "collection",
              "binding_collection_name": "comment_collection"
            }
          ]
        }
      },
      {
        "spacing_gap_04": {
          "type": "panel",
          "size": [ "100%", 15 ]
        }
      },
      {
        "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": {
          "$return_label_text": "feed.goToFeed",
          "$close_button_to_button_id|default": "button.close_comments",
          "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": {} }
          ]
        }
      }
    ]
  }
}
