0% found this document useful (0 votes)
265 views11 pages

Scoreboards Json

The document describes the configuration of a scoreboard sidebar interface in three parts: 1) It defines two labels ("scoreboard_sidebar_score" and "scoreboard_sidebar_player") to display the player's score and name. 2) It defines a "scoreboard_sidebar" panel to contain the sidebar and display the objective name, player list, and scores list. 3) It defines bindings to control the visibility of the sidebar and length of the player and scores collections.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
265 views11 pages

Scoreboards Json

The document describes the configuration of a scoreboard sidebar interface in three parts: 1) It defines two labels ("scoreboard_sidebar_score" and "scoreboard_sidebar_player") to display the player's score and name. 2) It defines a "scoreboard_sidebar" panel to contain the sidebar and display the objective name, player list, and scores list. 3) It defines bindings to control the visibility of the sidebar and length of the player and scores collections.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 11

//bridge-file-version: #3

{
"namespace": "scoreboard",
"scoreboard_sidebar_score": {
"type": "label",
"layer": 2,
"size": [
"default",
10
],
"text": "#player_score_sidebar",
"text_alignment": "right",
"anchor_from": "top_right",
"anchor_to": "top_right",
"inherit_max_sibling_width": true,
"locked_alpha": 1,
"color": "$player_score_color",
"bindings": [
{
"binding_name": "#player_score_sidebar",
"binding_type": "collection",
"binding_collection_name": "scoreboard_scores"
}
]
},
"scoreboard_sidebar_player": {
"type": "label",
"layer": 2,
"text": "#player_name_sidebar",
"text_alignment": "left",
"size": [
"default",
10
],
"anchor_from": "top_right",
"anchor_to": "top_right",
"inherit_max_sibling_width": true,
"locked_alpha": 1,
"color": "$player_name_color",
"bindings": [
{
"binding_name": "#player_name_sidebar",
"binding_type": "collection",
"binding_collection_name": "scoreboard_players"
}
]
},
"scoreboard_sidebar": {
"type": "panel",
"size": [
"100%cm",
"100%c"
],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"ignored": "$scoreboards_feature_disabled",
"controls": [
{
"main": {
"type": "image",
"texture": "textures/ui/Black",
"alpha": 0.5,
"size": [
"100%cm",
"100%c"
],
"controls": [
{
"displayed_objective": {
"type": "label",
"size": [
"default",
10
],
"text": "#objective_sidebar_name",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"text_alignment": "center",
"inherit_max_sibling_width": true,
"locked_alpha": 1,
"layer": 1,
"color": "$objective_title_color",
"bindings": [
{
"binding_name":
"#objective_sidebar_name",
"binding_type": "global"
}
]
}
},
{
"lists": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"inherit_max_sibling_width": true,
"offset": [
0,
10
],
"size": [
"100%c",
"100%cm"
],
"controls": [
{
"players": {
"type":
"stack_panel",
"anchor_from":
"top_left",
"anchor_to":
"top_left",
"size": [
"100%cm",
"100%c"
],
"orientation":
"vertical",
"collection_name":
"scoreboard_players",
"factory": {
"name":
"player_list_factory",
"control_nam
e": "scoreboard.scoreboard_sidebar_player"
},
"bindings": [
{
"bindi
ng_name": "#scoreboard_sidebar_size",
"bindi
ng_type": "global",
"bindi
ng_name_override": "#collection_length"
}
]
}
},
{
"scores": {
"type":
"stack_panel",
"anchor_from":
"top_right",
"anchor_to":
"top_right",
"size": [
"100%cm",
"100%c"
],
"orientation":
"vertical",
"collection_name":
"scoreboard_scores",
"factory": {
"name":
"player_score_factory",
"control_nam
e": "scoreboard.scoreboard_sidebar_score"
},
"bindings": [
{
"bindi
ng_name": "#scoreboard_sidebar_size",
"bindi
ng_type": "global",
"bindi
ng_name_override": "#collection_length"
}
]
}
}
]
}
}
]
}
}
],
"bindings": [
{
"binding_name": "#scoreboard_sidebar_visible",
"binding_type": "global",
"binding_name_override": "#visible"
}
]
},
"scoreboard_player_list": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [
"100%",
"100%c"
],
"focus_container": true,
"use_last_focus": true,
"focus_nagivation_mode_right": "contained",
"controls": [
{
"[email protected]_padding": {
"size": [
"100%",
4
]
}
},
{
"permissions_button@common_buttons.dark_text_button": {
"ignored": "$education_edition",
"size": [
"100%",
24
],
"$button_text": "permissions.title",
"$pressed_button_name": "button.menu_permission"
}
},
{
"[email protected]_padding": {
"ignored": "$education_edition",
"size": [
"100%",
4
]
}
},
{
"[email protected]_objective_label": {}
},
{
"[email protected]_padding": {
"size": [
"100%",
4
]
}
},
{
"[email protected]_scored_grid_l
ist": {}
},
{
"[email protected]_padding": {
"size": [
"100%",
5
],
"bindings": [
{
"binding_name": "#list_scores_not_empty",
"binding_name_override": "#visible"
}
]
}
},
{
"[email protected]_unscored_gr
id_list": {}
},
{
"[email protected]_padding": {
"size": [
"100%",
5
],
"bindings": [
{
"binding_name": "#unscored_not_empty",
"binding_name_override": "#visible"
}
]
}
},
{
"[email protected]_players_button_pa
nel": {}
},
{
"[email protected]_padding": {
"size": [
"100%",
4
]
}
},
{
"[email protected]
ed_from_multiplayer_label_panel": {}
},
{
"[email protected]_padding": {
"size": [
"100%",
4
]
}
}
]
},
"list_objective_label": {
"type": "label",
"text": "#player_list_title",
"size": [
"100%",
10
],
"color": "$main_header_text_color",
"layer": 1,
"bindings": [
{
"binding_name": "#player_list_title"
}
]
},
"player_rank_panel": {
"type": "panel",
"size": [
"100%y",
"100%"
],
"ignored": "(not $has_score)",
"controls": [
{
"player_rank_bg": {
"type": "image",
"size": [
"100%y",
"100%"
],
"texture": "textures/ui/scoreboard_list_background",
"offset": [
1,
0
],
"controls": [
{
"player_rank": {
"type": "label",
"text_alignment": "center",
"text": "#player_rank",
"color": "$player_list_rank_color",
"layer": 1,
"bindings": [
{
"binding_name":
"#player_rank",
"binding_type":
"collection",
"binding_collection_name
": "$sb_collection_name"
}
]
}
}
]
}
}
]
},
"player_icon_panel": {
"type": "panel",
"size": [
"100%y",
"100%"
],
"controls": [
{
"player_icon": {
"ignored": "$education_edition",
"type": "image",
"size": [
"80%",
"80%"
],
"controls": [
{
"[email protected]_sc
reen_border": {
"size": [
"100% + 2px",
"100% + 2px"
],
"color": [
0,
0,
0
]
}
}
],
"bindings": [
{
"binding_name": "#player_icon",
"binding_type": "collection",
"binding_collection_name":
"$sb_collection_name",
"binding_name_override": "#texture"
},
{
"binding_name":
"#player_icon_filesystem",
"binding_type": "collection",
"binding_collection_name":
"$sb_collection_name",
"binding_name_override":
"#texture_file_system"
}
]
}
},
{
"permission_icon": {
"ignored": "(not $education_edition)",
"type": "image",
"size": [
"80%",
"80%"
],
"bindings": [
{
"binding_name": "#permission_icon",
"binding_type": "collection",
"binding_collection_name":
"$sb_collection_name",
"binding_name_override": "#texture"
}
]
}
}
]
},
"player_name": {
"type": "label",
"text": "#player_name",
"size": [
"100%",
10
],
"offset": [
0,
1
],
"shadow": true,
"layer": 2,
"color": "$player_name_color",
"bindings": [
{
"binding_name": "#player_name",
"binding_type": "collection",
"binding_collection_name": "$sb_collection_name"
}
]
},
"player_score": {
"type": "label",
"text": "#player_score",
"size": [
"100%",
10
],
"offset": [
0,
1
],
"color": "$player_list_score_color",
"shadow": true,
"layer": 2,
"bindings": [
{
"binding_name": "#player_score",
"binding_type": "collection",
"binding_collection_name": "$sb_collection_name"
}
]
},
"player_details": {
"type": "stack_panel",
"orientation": "vertical",
"size": [
"fill",
"90%"
],
"controls": [
{
"name_panel": {
"type": "panel",
"size": [
"100%",
"100%c"
],
"controls": [
{
"[email protected]_name": {
"text_alignment": "left"
}
}
]
}
},
{
"score_panel": {
"type": "panel",
"size": [
"100%",
"100%c"
],
"ignored": "(not $has_score)",
"controls": [
{
"[email protected]_score": {
"text_alignment": "right"
}
}
]
}
}
]
},
"player_content": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [
"100%",
"100%"
],
"controls": [
{
"[email protected]_icon_panel": {}
},
{
"padding": {
"type": "panel",
"size": [
4,
"100%"
]
}
},
{
"[email protected]_details": {}
}
]
},
"base_player_button@common_buttons.dark_content_button": {
"size": [
"fill",
"100% + 1px"
],
"anchor_from": "top_left",
"anchor_to": "top_left",
"$pressed_button_name": "button.score_player_profile_card",
"bindings": [
{
"binding_name": "#button_disabled",
"binding_type": "collection",
"binding_collection_name": "$sb_collection_name",
"binding_name_override": "#visible"
},
{
"binding_name": "#can_click_player_button",
"binding_type": "collection",
"binding_collection_name": "$sb_collection_name",
"binding_name_override": "#enabled"
},
{
"binding_type": "collection_details",
"binding_collection_name": "$sb_collection_name"
}
]
},
"player_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [
"100%",
27
],
"controls": [
{
"rank_base": {
"type": "panel",
"size": [
"100%y",
"100% + 1px"
],
"ignored": "(not $has_score)",
"controls": [
{
"[email protected]_rank_panel
": {}
}
]
}
},
{
"[email protected]_player_button": {
"$button_content": "scoreboard.player_content"
}
}
]
},
"players_grid_list": {
"type": "stack_panel",
"size": [
"100%",
"default"
],
"anchor_to": "top_left",
"anchor_from": "top_left",
"collection_name": "$sb_collection_name",
"$sb_collection_name|default": "empty",
"$has_score|default": false
},
"[email protected]_grid_list": {
"factory": {
"name": "unscored_list_factory",
"control_name": "scoreboard.player_panel"
},
"bindings": [
{
"binding_name": "#unscored_list_size",
"binding_type": "global",
"binding_name_override": "#collection_length"
}
],
"$sb_collection_name": "scoreboard_unscored_list_collection"
},
"[email protected]_grid_list": {
"factory": {
"name": "scored_list_factory",
"control_name": "scoreboard.player_panel"
},
"bindings": [
{
"binding_name": "#scored_list_size",
"binding_type": "global",
"binding_name_override": "#collection_length"
}
],
"$sb_collection_name": "scoreboard_scored_list_collection",
"$has_score": true
}
}

You might also like