0% found this document useful (0 votes)
94 views30 pages

Sodapdf

This document defines the user interface elements and layout for an in-game hotbar and inventory system. It includes definitions for the hotbar slots, progress bar, item icons, buttons, and other standard UI controls. Bindings are provided to dynamically update values and visibility based on game state.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views30 pages

Sodapdf

This document defines the user interface elements and layout for an in-game hotbar and inventory system. It includes definitions for the hotbar slots, progress bar, item icons, buttons, and other standard UI controls. Bindings are provided to dynamically update values and visibility based on game state.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

{

"namespace": "hud",

//---------------------------------------------------------------------------
// [Octopus] Made by Winsent [Octopus]
//---------------------------------------------------------------------------

"octopus_text": {
"type": "label",
"text": "Latencia (ON)",
"color": "white",
"shadow": "true",
"bindings": [
{
"binding_name": "#octopus_text",
"binding_name_override": "§fFor §cOctopus §fcheat",
"binding_condition": "always_when_visible",
"binding_type": "global"
}
]
},

"player_position_text": {
"type": "label",
"text": "#text",
"color": "white",
"shadow": "true",
"bindings": [
{
"binding_name": "#player_position_text",
"binding_name_override": "#text",
"binding_condition": "always_when_visible",
"binding_type": "global"
}
]
},
"hotbar_renderer": {
"type": "custom",
"renderer": "hotbar_renderer",
"size": [ 20, 22 ],
"layer": 1,
"bindings": [
{
"binding_collection_name": "$hotbar_collection_name",
"binding_type": "collection_details"
}
],
"controls": [
{ "hotbar_slot_image@hotbar_slot_image": { } }
]
},

"cooldown_renderer": {
"type": "custom",
"renderer": "hotbar_cooldown_renderer",
"size": [ 20, 22 ],
"layer": 1,
"bindings": [
{
"binding_collection_name": "$hotbar_collection_name",
"binding_type": "collection_details"
}
]
},

"heart_renderer": {
"type": "custom",
"size": [ 1, 1 ],
"renderer": "heart_renderer",
"layer": 1
},

"horse_heart_renderer": {
"type": "custom",
"size": [ 1, 1 ],
"renderer": "horse_heart_renderer",
"layer": 1
},

"armor_renderer": {
"type": "custom",
"size": [ 1, 1 ],
"renderer": "armor_renderer",
"layer": 1
},

"exp_progress_bar_and_hotbar": {
"type": "panel",
"size": [ "100%c", 31 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": "$xp_control_offset",
"controls": [
{
"resizing_xp_bar_with_hotbar": {
"type": "panel",
"size": [ "100%c", 5 ],
"controls": [
{
"empty_progress_bar@empty_progress_bar": {
"size": [ "100%c", 5 ],
"layer": 1,
"controls": [
{
"full_progress_bar@full_progress_bar": {
"size": [ "100%c + 10px", 5 ],
"layer": 2,
"controls": [
{
"progress_bar_nub@progress_bar_nub": {
"size": [ "100%c - 10px", 5 ],
"max_size": [ 172, 5 ],
"layer": 3,
"controls": [
{
"hotbar@hotbar_chooser": {
"offset": [ 3, 16 ]
}
}
]
}
}
]
}
}
]
}
},
{
"progress_text_label@progress_text_label": {
"offset": [ 0, 3 ],
"layer": 7
}
}
],
"bindings": [
{
"binding_name": "#is_not_creative_mode",
"binding_name_override": "#visible"
}
]
}
},
// For when we hide the XP bar in Creative Move we still want to display the HUD
{
"hotbar@hotbar_chooser": {
"offset": [ 3, 16 ],
"bindings": [
{
"binding_name": "#is_creative_mode",
"binding_name_override": "#visible"
}
]
}
},
{
"item_text_factory": {
"size": [ 100, 10 ],
"type": "factory",
"control_ids": {
"survival_item_text": "@hud.survival_item_name_text",
"survival_item_text_above_interact_button": "@hud.survival_above_interact_button_item_text",
"creative_item_text": "@hud.creative_item_name_text",
"create_item_text_above_interact_button": "@hud.creative_above_interact_button_item_text"
}
}
}
]
},

"full_progress_bar": {
"type": "image",
"texture": "textures/gui/achievements/hotdogfull",
"uv": [ 0, 0 ],
"uv_size": [ 13, 5 ],
"nineslice_size": [ 1.0, 0.0, 1.0, 0.0 ],
"clip_direction": "left",
"clip_pixelperfect": false,
"bindings": [
{
"binding_name": "#exp_progress",
"binding_name_override": "#clip_ratio",
"binding_type": "global"
}
]
},

"empty_progress_bar": {
"type": "image",
"texture": "textures/gui/achievements/hotdogempty",
"uv": [ 0, 0 ],
"uv_size": [ 13, 5 ],
"nineslice_size": [ 6.0, 1.0, 6.0, 1.0 ]
},

"progress_bar_nub": {
"type": "image",
"texture": "textures/gui/achievements/nub",
"uv": [ 0, 0 ],
"uv_size": [ 11, 5 ],
"tiled": true
},

"progress_text_label": {
"type": "label",
"shadow": true,
"text": "#level_number",
"color": [ 0.5, 1.0, 0.125, 1 ],
"anchor_from": "top_middle",
"anchor_to": "bottom_middle",
"bindings": [
{
"binding_name": "#level_number",
"binding_type": "global"
},
{
"binding_name": "#level_number_visible",
"binding_type": "global",
"binding_name_override": "#visible"
}
]
},

"horse_jump_renderer": {
"type": "custom",
"size": [ 1, 1 ],
"renderer": "horse_jump_renderer",
"layer": 1
},

"hunger_renderer": {
"type": "custom",
"size": [ 1, 1 ],
"renderer": "hunger_renderer",
"layer": 1
},

"bubbles_renderer": {
"type": "custom",
"size": [ 1, 1 ],
"renderer": "bubbles_renderer",
"layer": 1
},

"mob_effects_renderer": {
"type": "custom",
"renderer": "mob_effects_renderer",
"layer": 1
},

"vignette_renderer": {
"type": "custom",
"renderer": "vignette_renderer",
"layer": 4
},

"cursor_renderer": {
"type": "custom",
"size": [ 16, 16 ],
"renderer": "cursor_renderer",
"layer": 4
},

"debug_overlay_renderer": {
"type": "custom",
"renderer": "debug_overlay_renderer",
"layer": 1
},

"progress_indicator_renderer": {
"type": "custom",
"renderer": "progress_indicator_renderer",
"layer": 4
},
"camera_renderer": {
"type": "custom",
"renderer": "camera_renderer",
"layer": 1
},

"[email protected]_renderer": {
"offset": [ 1.5, 0 ],
"$item_collection_name": "$hotbar_collection_name",
"property_bag": {
"force_update": true
}
},

"elipses_image": {
"type": "image",
"texture": "textures/gui/gui",
"anchor_from": "center",
"anchor_to": "center",
"size": [ 13, 4 ],
"layer": 30,
"alpha": 0.65,
"uv": [ 228, 248 ],
"uv_size": [ 28, 8 ]
},

"bound_button_label@button_label": {
"text": "$label_bind_name",
"bindings": [
{
"binding_name": "$label_bind_name",
"binding_type": "global"
}
]
},

"default_borderless_button_layout": {
"type": "image",
"nineslice_size": 1,
"texture": "textures/gui/newgui/buttons/borderless/light",
"uv": [ 0, 0 ],
"uv_size": [ 4, 4 ],
"alpha": 0.45
},

"hover_borderless_button_layout@default_borderless_button_layout": {
"texture": "textures/gui/newgui/buttons/borderless/lighthover"
},

"pressed_borderless_button_layout@default_borderless_button_layout": {
"texture": "textures/gui/newgui/buttons/borderless/lightpressed"
},

"[email protected]": {
"controls": [
{
"default@default_borderless_button_layout": { }
},
{
"hover@hover_borderless_button_layout": { }
},
{
"pressed@pressed_borderless_button_layout": { }
},
{
"elipses@elipses_image": { }
}
]
},

"hotbar_elipses_button@borderless_button": {
"$pressed_button_name": "button.hotbar_inventory_button",
"anchor_from": "center",
"anchor_to": "center",
"size": [ 16, 16 ],
"layer": 3,
"focus_enabled": false,
"default_focus_precedence": 10,
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$pressed_button_name",
"mapping_type": "pressed"
}
],
"bindings": [
{
"binding_name": "#inventory_touch_button",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},

"start_cap_image": {
"type": "image",
"texture": "textures/gui/gui",
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 1, -1 ],
"layer": 4,
"alpha": 0.65,
"uv": [ 0, 0 ],
"uv_size": [ 2, 22 ],
"visible": true
},

"end_cap_image@start_cap_image": {
"uv": [ 180, 0 ],
"offset": [ -1, -1 ]
},

"hotbar_start_cap": {
"type": "panel",
"size": [ 2, 22 ],
"controls": [
{ "start_cap_image@start_cap_image": { } }
]
},

"hotbar_end_cap@hotbar_start_cap": {
"controls": [
{ "end_cap_image@end_cap_image": { } }
]
},

"heart_image": {
"type": "image",
"texture": "textures/gui/icons",
"size": [ 9, 9 ],
"layer": 1,
"alpha": 0.65,
"uv": [ 16, 0 ],
"uv_size": [ 9, 9 ]
},

"hotbar_slot_image": {
"type": "image",
"texture": "textures/gui/gui",
"offset": [ 1, 0 ],
"size": [ 20, 22 ],
"layer": 1,
"alpha": 0.65,
"uv": [ 2, 0 ],
"uv_size": [ 20, 22 ]
},

"hotbar_slot_selected_image": {
"type": "image",
"texture": "textures/gui/gui",
"size": [ 24, 22 ],
"layer": 8,
"uv": [ 0, 22 ],
"offset": [ 0, -1 ],
"uv_size": [ 24, 22 ],
"bindings": [
{
"binding_name": "#slot_selected",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$hotbar_collection_name"
}
]
},
"gui_hotbar_slot_button_prototype": {
"type": "button",

"$hotbar_select|default": "button.hotbar_select",

"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,

"layer": 2,
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$hotbar_select",
"mapping_type": "pressed",
"button_up_right_of_first_refusal": true
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.hotbar_ok",
"mapping_type": "focused"
},
{
"to_button_id": "button.slot_pressed",
"mapping_type": "pressed"
}
],
"bindings": [
{
"binding_collection_name": "$hotbar_collection_name",
"binding_type": "collection_details"
}
]
},

"anim_chat_txt_alpha": {
"anim_type": "alpha",
"easing": "in_quart",
"duration": 1,
"from": 1,
"to": 0
},

"anim_chat_txt_wait": {
"anim_type": "wait",
"duration": 9,
"next": "@hud.anim_chat_txt_alpha"
},

"anim_chat_bg_alpha": {
"anim_type": "alpha",
"easing": "in_quart",
"destroy_at_end": "chat_grid_item",
"duration": 1,
"from": 0.5,
"to": 0
},

"anim_chat_bg_wait": {
"anim_type": "wait",
"duration": 9,
"next": "@hud.anim_chat_bg_alpha"
},

"chat_label": {
"type": "label",
"layer": 31,
"text": "#text",
"size": [ "100%", "default" ],
"shadow": true,
"localize": false,
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"anims": [
"@hud.anim_chat_txt_wait"
],
"bindings": [
{
"binding_name": "#chat_text",
"binding_name_override": "#text",

"binding_type": "collection",
"binding_collection_name": "chat_text_grid",
"binding_condition": "once"
}
]
},

"chat_grid_item": {
"type": "panel",
"layer": 1,
"size": [ "100%-2px", "100%c" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"chat_background": {
"type": "image",
"texture": "textures/gui/newgui/Black",
"nineslice_size": 1,
"alpha": 0.5,
"size": [ "100%", "100%c" ],
"anims": [
"@hud.anim_chat_bg_wait"
],
"controls": [
{
"chat_text@chat_label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 2, 0 ]
}
}
]
}
}
]
},

"chat_panel": {
"type": "panel",
"clips_children": true,
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%c" ],
"max_size": [ "100%", "50%" ],

"controls": [
{
"stack_panel": {
"type": "stack_panel",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"factory": {
"name": "chat_item_factory",
"max_children_size": 50,
"control_name": "@hud.chat_grid_item"
}
}
}
]
},

"[email protected]_bar": {
"$durability_bar_required|default": true,
"$item_collection_name": "$hotbar_collection_name"
},

"gui_hotbar_grid_item": {
"type": "panel",
"layer": 1,
"size": [ 20, 20 ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"$stack_count_required|default": true,
"$durability_bar_required|default": true,
"controls": [
{ "hotbar_slot_selected_image@hotbar_slot_selected_image": { } },
{ "hotbar_renderer@hotbar_renderer": { } },
{
"hotbar_parent": {
"type": "panel",
"size": [ 18, 18 ],
"controls": [
{
"item_icon@hotbar_hud_item_icon": {
"size": [ 17, 17 ]
}
},
{
"[email protected]_count_label": {
"$item_collection_name": "$hotbar_collection_name",
"$stack_count_collection_name": "$hotbar_collection_name",
"bindings": [
{
"binding_name": "#inventory_stack_count",
"binding_type": "collection",
"binding_collection_name": "$stack_count_collection_name"
},
{
"binding_name": "#stack_count_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$stack_count_collection_name"
}
]
}
},
{ "item_dura@item_durability": { } }
]
}
},
{ "cooldown_renderer@cooldown_renderer": { "layer": 10} },
{ "hotbar_slot_button@gui_hotbar_slot_button_prototype": { } }
]
},

"fixed_inventory_grid_item@gui_hotbar_grid_item": {
"$hotbar_select": "button.fixed_inventory_hotbar_select",
"property_bag": {
"is_fixed_inventory": true
}
},

"centered_gui_elements": {
"type": "panel",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": [ 180, 50 ],
"controls": [
{ "octopus_txt_text@octopus_text":
{
"offset": [ -293, 0 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle"
}
},

{ "player_pos_text@player_position_text":
{
"offset": [ 0, -45 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle"
}
},
{
"heart_rend@heart_renderer": {
"offset": [ -1, -40 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left"
}
},
{
"horse_heart_rend_0@horse_heart_renderer": {
"offset": [ 180, -56 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"bindings": [
{
"binding_name": "#is_creative_mode",
"binding_name_override": "#visible"
}
]
}
},
{
"horse_heart_rend_1@horse_heart_renderer": {
"offset": [ 180, -50 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"bindings": [
{
"binding_name": "#is_not_creative_mode",
"binding_name_override": "#visible"
}
]
}
},
{
"armor_rend@armor_renderer": {
"offset": [ -1, -40 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left"
}
},
{
"hunger_rend@hunger_renderer": {
"offset": [ 180, -40 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left"
}
},
{
"bubbles_rend_0@bubbles_renderer": {
"offset": [ 180, -50 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"bindings": [
{
"binding_name": "#is_not_riding",
"binding_name_override": "#visible"
}
]
}
},
{
"bubbles_rend_1@bubbles_renderer": {
"offset": [ 180, -70 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"bindings": [
{
"binding_name": "#is_riding",
"binding_name_override": "#visible"
}
]
}
},
{
"horse_jump_rend@horse_jump_renderer": {
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, -30 ],
"layer": 7,
"bindings": [
{
"binding_name": "#is_riding",
"binding_name_override": "#visible"
}
]
}
},
{ "exp_rend@exp_progress_bar_and_hotbar": { } }
],
"bindings": [
{
"binding_name": "#hud_visible_centered",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},
"not_centered_gui_elements": {
"type": "panel",
"controls": [
{ "octopus_text_not_centered@octopus_text":
{
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
},

{ "player_pos_text_not_centered@player_position_text":
{
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
},
{
"heart_rend@heart_renderer": {
"offset": [ 2, 2 ],
"anchor_from": "top_left",
"anchor_to": "top_left"
}
},
{
"horse_heart_rend@horse_heart_renderer": {
"offset": [ -2, 2 ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"layer": 1
}
},
{
"hunger_rend@hunger_renderer": {
"offset": [ -2, 2 ],
"anchor_from": "top_right",
"anchor_to": "top_right"
}
},
{
"armor_rend@armor_renderer": {
"offset": [ 2, 2 ],
"anchor_from": "top_left",
"anchor_to": "top_left"
}
},
{
"bubbles_rend_0@bubbles_renderer": {
"offset": [ -1, 12 ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"bindings": [
{
"binding_name": "#is_not_riding",
"binding_name_override": "#visible"
}
]
}
},
{
"bubbles_rend_1@bubbles_renderer": {
"offset": [ -1, 32 ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"bindings": [
{
"binding_name": "#is_riding",
"binding_name_override": "#visible"
}
]
}
},
{
"horse_jump_rend@horse_jump_renderer": {
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, -28 ],
"layer": 7,
"bindings": [
{
"binding_name": "#is_riding",
"binding_name_override": "#visible"
}
]
}
},
{ "exp_rend@exp_progress_bar_and_hotbar": { } }
],
"bindings": [
{
"binding_name": "#hud_visible_not_centered",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},

"hotbar_chooser": {
"type": "panel",
"size": [ "100%c", "100%c" ],
"$ignore_desktop": true,
"$ignore_pocket": false,
"variables": [
{
"requires": "($desktop_screen and not $education_edition)",
"$ignore_desktop": false,
"$ignore_pocket": true
}
],
"controls": [
{
"desktop_hotbar@hotbar_panel_desktop": {
"ignored": "$ignore_desktop",
"offset": [ -4, 0 ]
}
},
{
"pocket_hotbar@hotbar_panel_pocket": {
"ignored": "$ignore_pocket",
"offset": [ -3, -2 ]
}
}
]
},

"hotbar_elipses_panel_right_pocket": {
"type": "panel",
"layer": 4,
"size": [ 18, 22 ],
"controls": [
{
"slot@hotbar_slot_image": {
"size": [ 20, 22 ],
"offset": [ 1, -1 ],
//Grab the right hand end of the hotbar
"uv": [ 162, 0 ]
}
},
{
"button@hotbar_elipses_button": {
"offset": [ 0, -1 ]
}
}
],
"bindings": [
{
"binding_name": "#hotbar_elipses_right_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},

"hotbar_elipses_panel_right_desktop": {
"type": "panel",
"size": [ 20, 22 ],
"controls": [
{
"slot@hotbar_slot_image": {
"size": [ 20, 22 ],
"offset": [ 1, -1 ],
//Grab the right hand end of the hotbar
"uv": [ 162, 0 ],
"bindings": [
{
"binding_name": "#hotbar_elipses_right_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
}
},
{
"button@hotbar_elipses_button": {
"offset": [ 0, -1 ],
"bindings": [
{
"binding_name": "#hotbar_elipses_right_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
}
}
]
},

"hotbar_elipses_panel_left_pocket": {
"type": "panel",
"size": [ 20, 22 ],
"offset": [ 0, -1 ],
"layer": 4,
//Note - bind the inner controls on the left so that the outer panel ’reserves’ the space
//and the hotbar doesn’t move - see bug #4535
"controls": [
{
"slot@hotbar_slot_image": {
"offset": [ 1, -1 ],
"size": [ 20, 22 ],
"layer": 2,
"uv_size": [ 20, 22 ],
//Grab the left hand end of the hotbar
"uv": [ 2, 0 ]
}
},
{
"button@hotbar_elipses_button": {
"offset": [ 0, -1 ]
}
}
],
"bindings": [
{
"binding_name": "#hotbar_elipses_left_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},

"hotbar_elipses_panel_left_desktop": {
"type": "panel",
"size": [ 20, 22 ],
"offset": [ 0, -1 ],
"layer": 2,
//Note - bind the inner controls on the left so that the outer panel ’reserves’ the space
//and the hotbar doesn’t move - see bug #4535
"controls": [
{
"slot@hotbar_slot_image": {
"offset": [ 1, -1 ],
//Grab the left hand end of the hotbar
"uv": [ 0, 0 ],
"bindings": [
{
"binding_name": "#hotbar_elipses_left_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
}
},
{
"button@hotbar_elipses_button": {
"offset": [ 2, -1 ],
"bindings": [
{
"binding_name": "#hotbar_elipses_left_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
}
}
]
},

"hotbar_panel_pocket": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%c", 18 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"controls": [
{ "hotbar_start_cap@hotbar_start_cap": { } },
{ "hotbar_elipses_panel_left_pocket@hotbar_elipses_panel_left_pocket": { } },
{ "hotbar_grid@hotbar_grid": { } },
{ "hotbar_elipses_panel_right_pocket@hotbar_elipses_panel_right_pocket": { } },
{ "hotbar_end_cap@hotbar_end_cap": { } },
{ "edu_hotbar_fixed_inventory_panel@edu_hotbar_fixed_inventory_panel": { } }
]
},
"hotbar_panel_desktop": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%c", 22 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"controls": [
{ "hotbar_elipses_panel_left_desktop@hotbar_elipses_panel_left_desktop": { } },
{ "hotbar_start_cap@hotbar_start_cap": { } },
{ "hotbar_grid@hotbar_grid": { } },
{ "hotbar_elipses_panel_right_desktop@hotbar_elipses_panel_right_desktop": { } },
{ "edu_hotbar_fixed_inventory_panel@edu_hotbar_fixed_inventory_panel": { } }
]
},

"hotbar_grid": {
"type": "grid",
"$hotbar_collection_name|default": "hotbar_items",
"grid_item_template": "hud.gui_hotbar_grid_item",
"grid_dimension_binding": "#hotbar_grid_dimensions",
"collection_name": "$hotbar_collection_name",
"bindings": [
{
"binding_name": "#hotbar_grid_dimensions",
"binding_type": "global"
}
]
},

"edu_hotbar_grid": {
"type": "grid",
"grid_item_template": "hud.gui_hotbar_grid_item",
"grid_dimension_binding": "#hotbar_grid_dimensions",
"collection_name": "$hotbar_collection_name",
"bindings": [
{
"binding_name": "#hotbar_grid_dimensions",
"binding_type": "global"
}
]
},

"edu_hotbar_fixed_inventory_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%c", "100%" ],
"controls": [
{ "hotbar_start_cap@hotbar_start_cap": { } },
{ "edu_hotbar_fixed_inventory_grid@edu_hotbar_fixed_inventory_grid": { } },
{ "hotbar_end_cap@hotbar_end_cap": { } }
],
"bindings": [
{
"binding_name": "#edu_hotbar_fixed_inventory_visible",
"binding_name_override": "#visible"
}
]
},

"edu_hotbar_fixed_inventory_grid": {
"type": "grid",
"$hotbar_collection_name": "fixed_inventory_items",
"grid_item_template": "hud.fixed_inventory_grid_item",
"grid_dimension_binding": "#hotbar_grid_dimensions_fixed_inventory",
"collection_name": "$hotbar_collection_name",
"bindings": [
{
"binding_name": "#hotbar_grid_dimensions_fixed_inventory",
"binding_type": "global"
}
]
},

"anim_item_name_text_alpha": {
"anim_type": "alpha",
"easing": "in_expo",
"destroy_at_end": "item_text_label",
"duration": 2,
"from": 1.0,
"to": 0
},

"item_name_text": {
"type": "panel",
"size": [ 100, 10 ],
"controls": [
{
"item_text_label": {
"type": "label",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"text_alignment": "center",
"layer": 31,
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"text": "#text",
"shadow": true,
"alpha": "@hud.anim_item_name_text_alpha",
"bindings": [
{
"binding_name": "#item_text",
"binding_name_override": "#text"
}
]
}
}
]
},

"[email protected]_name_text": {
"offset": [ 0, -12 ]
},

"[email protected]_name_text": {
"offset": [ 0, -32 ]
},

"[email protected]_name_text": {
"offset": [ 0, -22 ]
},

"[email protected]_name_text": {
"offset": [ 0, -42 ]
},

"[email protected]_name_text": {
"offset": [ 0, "50%-68px" ],
"controls": [
{
"item_text_label": {
"type": "label",
"layer": 31,
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"text": "#text",
"shadow": true,
"alpha": "@hud.anim_item_name_text_alpha",
"bindings": [
{
"binding_name": "#tip_text",
"binding_name_override": "#text"
}
]
}
}
]
},

"anim_actionbar_text_alpha_out": {
"anim_type": "alpha",
"easing": "in_expo",
"duration": 3,
"from": 1.0,
"to": 0,
"destroy_at_end": "hud_actionbar_text"
},

"hud_actionbar_text": {
"type": "panel",
"size": ["100%", "100%c"],
"offset": [ 0, "50%-68px" ],
"controls": [
{
"actionbar_message": {
"type": "label",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"text": "$actionbar_text",
"localize": false,
"alpha": "@hud.anim_actionbar_text_alpha_out"
}
}
]
},

"anim_title_text_alpha_in": {
"anim_type": "alpha",
"easing": "linear",
"duration": "$title_fade_in_time",
"from": 0,
"to": 1,
"next": "@hud.anim_title_text_alpha_stay"
},

"anim_title_text_alpha_stay": {
"anim_type": "wait",
"duration": "$title_stay_time",
"next": "@hud.anim_title_text_alpha_out"
},

"anim_title_text_alpha_out": {
"anim_type": "alpha",
"easing": "linear",
"duration": "$title_fade_out_time",
"from": 1,
"to": 0,
"destroy_at_end": "hud_title_text"
},

"hud_title_text": {
"type": "stack_panel",
"orientation": "vertical",
"layer": 1,
"controls": [
{
"title_frame": {
"type": "panel",
"size": ["100%", "100%c"],
"controls": [
{
"title": {
"type": "label",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"text": "$title_text",
"localize": false,
"font_size": "extra_large",
"alpha": "@hud.anim_title_text_alpha_in",
"shadow": true
}
}
]
}
},
{
"subtitle_frame": {
"type": "panel",
"size": ["100%", "100%c"],
"controls": [
{
"subtitle": {
"type": "label",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"text": "$subtitle_text",
"localize": false,
"font_size": "large",
"alpha": "@hud.anim_title_text_alpha_in",
"shadow": true
}
}
]
}
}
]
},

"boss_name_panel": {
"type": "panel",
"size": [ "100%", "100%c" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"boss_name": {
"type": "label",
"text": "#bossName",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"shadow": true,
"bindings": [
{
"binding_name": "#bossName",
"binding_type": "collection",
"binding_collection_name": "boss_bars"
}
]
}
}
]
},

"boss_health_panel": {
"type": "panel",
"size": [ 182, 20 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"$progress_bar_collection": "boss_bars",
"controls": [
{
"boss_name@boss_name_panel": { }
},
{
"[email protected]_bar_for_collections": {
"offset": [ 0, 10 ],
"$filled_bar_color": [ 1.0, 0.0, 1.0, 1.0 ]
}
}
],
"bindings": [
{
"binding_name": "#bar_visible",
"binding_type": "collection",
"binding_collection_name": "boss_bars",
"binding_name_override": "#visible"
}
]
},

"boss_health_grid": {
"type": "grid",
"grid_dimension_binding": "#boss_grid_dimension",
"grid_item_template": "hud.boss_health_panel",
"grid_fill_direction": "vertical",
"collection_name": "boss_bars",
"anchor_to": "top_middle",
"anchor_from": "top_middle",
"size": [ 182, "30%" ]
},

"root_panel": {
"type": "panel",
"$xp_control_offset|default": [ 0, -13 ],
"variables": [
{
"requires": "(not $desktop_screen)",
"$xp_control_offset": [ 0, -11 ]
}
],
"controls": [
{ "centered_gui_elements@centered_gui_elements": { } },
{
"centered_ridingvr_gui_elements@centered_gui_elements": {
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"offset": [ 0, 60 ],
"size": [ 180, 50 ],
"bindings": [
{
"binding_name": "#hud_visible_centered_ridingvr",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
}
},
{ "not_centered_gui_elements@not_centered_gui_elements": { } },
{
"hud_tip_text_factory": {
"type": "factory",
"control_name": "@hud.hud_tip_text"
}
},
{
"hud_actionbar_text_area": {
"type": "panel",
"factory": {
"name": "hud_actionbar_text_factory",
"control_ids": {
"hud_actionbar_text": "[email protected]_actionbar_text"
}
}
}
},
{
"hud_title_text_area": {
"type": "panel",
"factory": {
"name": "hud_title_text_factory",
"control_ids": {
"hud_title_text": "[email protected]_title_text"
}
}
}
},
{
"mob_effects_renderer@mob_effects_renderer": {
"size": [ "100%", "75%" ],
"offset": [ 0, 24 ],
"anchor_from": "center",
"anchor_to": "center"
}
},
{ "vignette_rend@vignette_renderer": { } },
{ "curor_rend@cursor_renderer": { } },
{ "debug_overlay_rend@debug_overlay_renderer": { } },
{
"progress_rend@progress_indicator_renderer": {
"offset": [ "50%", "50%" ]
}
},
{
//We need to be able to move chat down the screen when we are in VR and riding.
//SO use a stack panel with a padding that we can ignore at runtime as needed
"chat_stack": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "40%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [

{
"vr_riding_chat_padding": {
"type": "panel",
"size": [ "100%", 132 ],
"visible": "#vr_riding", //Make this visible to move the chat panel down
"bindings": [
{
"binding_name": "#vr_riding",
"binding_name_override": "#visible"
}
]
}
},
{
"vr_chat_padding": {
"type": "panel",
"size": [ "100%", 30 ],
"visible": "#vr_non_riding", //Make this visible to move the chat panel down
"bindings": [
{
"binding_name": "#vr_non_riding",
"binding_name_override": "#visible"
}
]
}
},
{
"non_centered_gui_padding": {
"type": "panel",
"size": [ "100%", 32 ],
"bindings": [
{
"binding_name": "#hud_visible_not_centered",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
}
},
{
"[email protected]_panel": {
"offset": [ 0, 10 ]
}
}
]
}
},
{
"boss_health_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%" ],
"controls": [
{
"boss_hud_padding": {
"type": "panel",
"size": [ "100%", 20 ],
"visible": "#boss_hud_padding", //Make this visible to move the boss hud panel down
"bindings": [
{
"binding_name": "#boss_hud_padding",
"binding_name_override": "#visible"
}
]
}
},
{
"boss_hud_panel": {
"type": "panel",
"controls": [
{
"boss_health_grid@boss_health_grid": {
"offset": [ 0, 2 ]
}
}
]
}
}
]
}
}
],
"bindings": [
{
"binding_name": "#hud_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},

"[email protected]_screen": {
"is_showing_menu": false,
"should_steal_mouse": true,
"low_frequency_rendering": true,
"absorbs_input": false,
"send_telemetry": false,
"button_mappings": [
{
"from_button_id": "button.inventory_left",
"to_button_id": "button.hotbar_inventory_left",
"mapping_type": "global"
},
{
"from_button_id": "button.inventory_right",
"to_button_id": "button.hotbar_inventory_right",
"mapping_type": "global"
},
{
"from_button_id": "button.hide_gui",
"to_button_id": "button.hide_gui_hud",
"mapping_type": "global"
},
{
"from_button_id": "button.slot1",
"to_button_id": "button.slot_1",
"mapping_type": "global"
},
{
"from_button_id": "button.slot2",
"to_button_id": "button.slot_2",
"mapping_type": "global"
},
{
"from_button_id": "button.slot3",
"to_button_id": "button.slot_3",
"mapping_type": "global"
},
{
"from_button_id": "button.slot4",
"to_button_id": "button.slot_4",
"mapping_type": "global"
},
{
"from_button_id": "button.slot5",
"to_button_id": "button.slot_5",
"mapping_type": "global"
},
{
"from_button_id": "button.slot6",
"to_button_id": "button.slot_6",
"mapping_type": "global"
},
{
"from_button_id": "button.slot7",
"to_button_id": "button.slot_7",
"mapping_type": "global"
},
{
"from_button_id": "button.slot8",
"to_button_id": "button.slot_8",
"mapping_type": "global"
},
{
"from_button_id": "button.slot9",
"to_button_id": "button.slot_9",
"mapping_type": "global"
},
{
"from_button_id": "button.slot0",
"to_button_id": "button.slot_0",
"mapping_type": "global"
}
],
"$screen_content": "hud.hud_content"
},

"hud_content": {
"type": "panel",
"controls": [
{ "root_panel@root_panel": { } },
{
"camera_renderer@camera_renderer": {
"ignored": "(not $education_edition)"
}
},
{ "[email protected]_selected_icon_button": { } }
]
}
}

You might also like