{
  "namespace": "hud",

  //UI ELEMENTS
  "coin_display": {
    "type": "image",
    "size": ["100%c + 10px", "100%c + 3px"],
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom",
    "offset": [-140, -15],
    "alpha": 0.7,
    "controls": [
      {
        "display": {
          "$update_string": "ammo:",
          "type": "label",
          "font_size": "large",
          "font_type": "MinecraftTen",
          "text": "#text",
          "controls": [
            {
              "data_control_1": {
                "type": "panel",
                "size": [0, 0],
                "bindings": [
                  { "binding_name": "#hud_title_text_string" },
                  {
                    "binding_name": "#hud_title_text_string",
                    "binding_name_override": "#preserved_text",
                    "binding_condition": "visibility_changed"
                  },
                  {
                    "binding_type": "view",
                    "source_property_name": "(not (#hud_title_text_string = #preserved_text) and not ((#hud_title_text_string - $update_string) = #hud_title_text_string))",
                    "target_property_name": "#visible"
                  }
                ]
              }
            }
          ],
          "bindings": [
            {
              "binding_type": "view",
              "source_control_name": "data_control_1",
              "source_property_name": "(#preserved_text - $update_string)",
              "target_property_name": "#text"
            }
          ]
        }
      }
    ]
  },
  "coin_display_2": {
    "type": "image",
    "size": ["100%c + 10px", "100%c + 3px"],
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom",
    "offset": [-105, -11],
    "alpha": 0.7,
    "controls": [
      {
        "display": {
          "$update_string": "ammo2:",
          "type": "label",
          "font_size": "medium",
          "font_type": "MinecraftTen",
          "text": "#text",
          "controls": [
            {
              "data_control_2": {
                "type": "panel",
                "size": [0, 0],
                "bindings": [
                  { "binding_name": "#hud_title_text_string" },
                  {
                    "binding_name": "#hud_title_text_string",
                    "binding_name_override": "#preserved_text",
                    "binding_condition": "visibility_changed"
                  },
                  {
                    "binding_type": "view",
                    "source_property_name": "(not (#hud_title_text_string = #preserved_text) and not ((#hud_title_text_string - $update_string) = #hud_title_text_string))",
                    "target_property_name": "#visible"
                  }
                ]
              }
            }
          ],
          "bindings": [
            {
              "binding_type": "view",
              "source_control_name": "data_control_2",
              "source_property_name": "(#preserved_text - $update_string)",
              "target_property_name": "#text"
            }
          ]
        }
      }
    ]
  },
  "root_panel": {
    "modifications": [
      {
        "array_name": "controls",
        "operation": "insert_front",
        "value": [{ "coin_display@hud.coin_display": {} }, { "coin_display@hud.coin_display_2": {} }]
      }
    ]
  },

  //Removes Main Title Text
  "hud_title_text": {
    "type": "stack_panel",
    "orientation": "vertical",
    "offset": [0, -1000],
    "layer": 1,
    "alpha": "@hud.anim_title_text_alpha_in",
    "propagate_alpha": true,
    "controls": [
      {
        "title_frame": {
          "type": "panel",
          "size": ["100%", "100%cm"],
          "controls": [
            {
              "title_background": {
                "type": "image",
                "size": ["100%sm + 30px", "100%sm + 6px"],
                "texture": "textures/ui/hud_tip_text_background",
                "alpha": "@hud.anim_title_background_alpha_in"
              }
            },
            {
              "title": {
                "type": "label",
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",
                "color": "$title_command_text_color",
                "enable_profanity_filter": true,
                "text": "#text",
                "layer": 31,
                "localize": false,
                "font_size": "extra_large",
                "variables": [
                  {
                    "requires": "(not $title_shadow)",
                    "$show_shadow": false
                  },
                  {
                    "requires": "$title_shadow",
                    "$show_shadow": true
                  }
                ],
                "shadow": "$show_shadow",
                "text_alignment": "center",
                "offset": [0, 6],
                "bindings": [
                  {
                    "binding_name": "#hud_title_text_string",
                    "binding_name_override": "#text",
                    "binding_type": "global"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "subtitle_frame": {
          "type": "panel",
          "size": ["100%", "100%cm"],
          "controls": [
            {
              "subtitle_background": {
                "type": "image",
                "size": ["100%sm + 20px", "100%sm + 5px"],
                "offset": [0, 16],
                "texture": "textures/ui/hud_tip_text_background",
                "variables": [
                  {
                    "requires": "$subtitle_initially_visible",
                    "$subtitle_bg": "@hud.anim_title_background_alpha_in"
                  },
                  {
                    "requires": "(not $subtitle_initially_visible)",
                    "$subtitle_bg": "@hud.anim_subtitle_background_alpha_in"
                  }
                ],
                "alpha": "$subtitle_bg"
              }
            },
            {
              "subtitle": {
                "type": "label",
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",
                "color": "$title_command_text_color",
                "enable_profanity_filter": true,
                "text": "#text",
                "layer": 31,
                "localize": false,
                "font_size": "large",
                "variables": [
                  {
                    "requires": "$subtitle_initially_visible",
                    "$anim_type": 1.0
                  },
                  {
                    "requires": "(not $subtitle_initially_visible)",
                    "$anim_type": "@hud.anim_subtitle_text_alpha_in"
                  },
                  {
                    "requires": "(not $title_shadow)",
                    "$show_shadow": false
                  },
                  {
                    "requires": "$title_shadow",
                    "$show_shadow": true
                  }
                ],
                "shadow": "$show_shadow",
                "alpha": "$anim_type",
                "text_alignment": "center",
                "offset": [1, 19],
                "bindings": [
                  {
                    "binding_name": "#hud_subtitle_text_string",
                    "binding_name_override": "#text",
                    "binding_type": "global"
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
