//////////////////////////////
//
//        WorldEdit
//    Made By M7mdTG ;)
//
//////////////////////////////

{
	"namespace": "hud",
	"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",
		"end_event": "hud_title_text_complete"
	},
	"anim_title_background_alpha_in": {
		"variables": [
			{
				"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
				"$we_alpha": 1
			},
			{
				"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
				"$we_alpha": "$title_alpha"
			}
		],
		"anim_type": "alpha",
		"easing": "linear",
		"duration": "$title_fade_in_time",
		"from": 0,
		"to": "$we_alpha",
		"next": "@hud.anim_title_background_alpha_stay"
	},
	"anim_title_background_alpha_stay": {
		"anim_type": "wait",
		"duration": "$title_stay_time",
		"next": "@hud.anim_title_background_alpha_out"
	},
	"anim_title_background_alpha_out": {
		"variables": [
			{
				"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
				"$we_alpha": 1
			},
			{
				"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
				"$we_alpha": "$title_alpha"
			}
		],
		"anim_type": "alpha",
		"easing": "linear",
		"duration": "$title_fade_out_time",
		"from": "$we_alpha",
		"to": 0,
		"destroy_at_end": "hud_title_text",
		"end_event": "hud_title_text_complete"
	},
	"anim_subtitle_text_alpha_in": {
		"variables": [
			{
				"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
				"$we_alpha": 1
			},
			{
				"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
				"$we_alpha": "$title_alpha"
			}
		],
		"anim_type": "alpha",
		"play_event": "anim_subtitle_text_alpha_in_play_event",
		"easing": "linear",
		"duration": "$title_fade_in_time",
		"from": 0,
		"to": "$we_alpha",
		"next": "@hud.anim_subtitle_text_alpha_stay"
	},
	"anim_subtitle_text_alpha_stay": {
		"anim_type": "wait",
		"duration": "$title_stay_time",
		"next": "@hud.anim_subtitle_text_alpha_out"
	},
	"anim_subtitle_text_alpha_out": {
		"variables": [
			{
				"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
				"$we_alpha": 1
			},
			{
				"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
				"$we_alpha": "$title_alpha"
			}
		],
		"anim_type": "alpha",
		"easing": "linear",
		"duration": "$title_fade_out_time",
		"from": "$we_alpha",
		"to": 0,
		"end_event": "hud_subtitle_text_complete"
	},
	"anim_subtitle_background_alpha_in": {
		"variables": [
			{
				"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
				"$we_alpha": 1
			},
			{
				"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
				"$we_alpha": "$title_alpha"
			}
		],
		"anim_type": "alpha",
		"play_event": "anim_subtitle_text_alpha_in_play_event",
		"easing": "linear",
		"duration": "$title_fade_in_time",
		"from": 0,
		"to": "$we_alpha",
		"next": "@hud.anim_subtitle_background_alpha_stay"
	},
	"anim_subtitle_background_alpha_stay": {
		"anim_type": "wait",
		"duration": "$title_stay_time",
		"next": "@hud.anim_subtitle_background_alpha_out"
	},
	"anim_subtitle_background_alpha_out": {
		"variables": [
			{
				"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
				"$we_alpha": 1
			},
			{
				"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
				"$we_alpha": "$title_alpha"
			}
		],
		"anim_type": "alpha",
		"easing": "linear",
		"duration": "$title_fade_out_time",
		"from": "$we_alpha",
		"to": 0,
		"end_event": "hud_subtitle_text_complete"
	},
	"hud_title_text": {
		"variables": [
			{
				"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
				"$we_anchor": "center",
				"$we_offset": [ 0, 30 ]
			},
			{
				"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
				"$we_anchor": "center",
				"$we_offset": [ 0, -19 ]
			}
		],
		"type": "stack_panel",
		"anchor_from": "$we_anchor",
		"anchor_to": "$we_anchor",
		"orientation": "vertical",
		"offset": "$we_offset",
		"layer": 1,
		"alpha": "@hud.anim_title_text_alpha_in",
		"propagate_alpha": true,
		"controls": [
			{
				"title_frame": {
					"type": "panel",
					"size": [
						"100%",
						"100%cm"
					],
					"controls": [
						{
							"title_background": {
								"variables": [
									{
										"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
										"$we_anchor": "top_left",
										"$we_texture": "textures/ui/gui_bg",
										"$we_size": [ "100%sm + 12px", "100%sm + 6px" ]
									},
									{
										"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
										"$we_anchor": "top_middle",
										"$we_texture": "textures/ui/hud_tip_text_background",
										"$we_size": [ "100%sm + 30px", "100%sm + 6px" ]
									}
								],
								"type": "image",
								"anchor_from": "$we_anchor",
								"anchor_to": "$we_anchor",
								"size": "$we_size",
								"texture": "$we_texture",
								"alpha": "@hud.anim_title_background_alpha_in"
							}
						},
						{
							"title": {
								"variables": [
									{
										"requires": "(not $title_shadow)",
										"$show_shadow": false
									},
									{
										"requires": "$title_shadow",
										"$show_shadow": true
									},
									{
										"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
										"$we_anchor": "top_left",
										"$we_offset": [6,6],
										"$we_font_size": "large"
									},
									{
										"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
										"$we_anchor": "top_middle",
										"$we_offset": [0,6],
										"$we_font_size": "extra_large"
									}
								],
								"type": "label",
								"anchor_from": "$we_anchor",
								"anchor_to": "$we_anchor",
								"color": "$title_command_text_color",
								"text": "($title_text - '{!@#$WE}')",
								"layer": 1,
								"localize": false,
								"font_size": "$we_font_size",
								"shadow": "$show_shadow",
								"text_alignment": "center",
								"offset": "$we_offset",
								"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": {
								"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"
									},
									{
										"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
										"$we_anchor": "top_left",
										"$we_texture": "textures/ui/gui_bg"
									},
									{
										"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
										"$we_anchor": "top_middle",
										"$we_texture": "textures/ui/hud_tip_text_background"
									}
								],
								"type": "image",
								"anchor_from": "$we_anchor",
								"anchor_to": "$we_anchor",
								"size": [
									"100%sm + 20px",
									"100%sm + 5px"
								],
								"offset": [
									0,
									16
								],
								"texture": "$we_texture",
								"alpha": "$subtitle_bg"
							}
						},
						{
							"subtitle": {
								"variables": [
									{
										"requires": "$subtitle_initially_visible",
										"$anim_type": 1
									},
									{
										"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
									},
									{
										"requires": "('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL'))",
										"$we_anchor": "top_left",
										"$we_offset": [10, 20],
										"$we_font_size": "medium"
									},
									{
										"requires": "(not ('{!@#$WE}' = ($title_text - '§r§6Settings:' - '§r§6Build Menu:' - '§l§bWorldEdit!' - '§r§aNavigation' - '§r§bPos1 & Pos2' - '§r§aBuild Menu' - '§r§bBrush & Eraser' - '§r§aSettings' - '§r§bHost & Multiplayer' - '§r§aMCPEDL')))",
										"$we_anchor": "top_middle",
										"$we_offset": [1, 19],
										"$we_font_size": "large"
									}
								],
								"type": "label",
								"anchor_from": "$we_anchor",
								"anchor_to": "$we_anchor",
								"color": "$title_command_text_color",
								"text": "#text",
								"layer": 1,
								"localize": false,
								"font_size": "$we_font_size",
								"shadow": "$show_shadow",
								"alpha": "$anim_type",
								"text_alignment": "center",
								"offset": "$we_offset",
								"bindings": [
									{
										"binding_name": "#hud_subtitle_text_string",
										"binding_name_override": "#text",
										"binding_type": "global"
									}
								]
							}
						}
					]
				}
			}
		]
	}
}