mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 13:22:20 +01:00
642 lines
17 KiB
JSON
642 lines
17 KiB
JSON
{
|
|
"namespace": "feed_common",
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Renderers
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"top_bar_gradient": {
|
|
"type": "custom",
|
|
"renderer": "gradient_renderer",
|
|
"color1": "$transparent_dark_gradient_start_color",
|
|
"color2": "$transparent_dark_gradient_end_color",
|
|
"variables": [
|
|
{
|
|
"requires": "$is_holographic",
|
|
"visible": false
|
|
}
|
|
]
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Common labels
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"share_label@feed_common.label": {
|
|
"text": "feed.share",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"text_alignment": "center",
|
|
"size": [ "100%", 15 ],
|
|
"offset": [ 0, 2 ]
|
|
},
|
|
|
|
"title_label": {
|
|
"type": "label",
|
|
"size": [ "default", "default" ],
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"color": "$f_color_format",
|
|
"alpha": 0.5,
|
|
"offset": [ 0, 10 ]
|
|
},
|
|
|
|
"label": {
|
|
"type": "label",
|
|
"size": [ "100%", "default" ],
|
|
"color": "$f_color_format",
|
|
"font_type": "smooth",
|
|
"text_alignment": "center"
|
|
},
|
|
|
|
"feed_label": {
|
|
"type": "label",
|
|
"size": [ "80%", "default" ],
|
|
"layer": 0,
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"font_type": "smooth",
|
|
"color": "$f_color_format"
|
|
},
|
|
|
|
"item_label": {
|
|
"type": "label",
|
|
"layer": 0,
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"font_type": "smooth",
|
|
"color": "$f_color_format"
|
|
},
|
|
|
|
"return_label": {
|
|
"type": "label",
|
|
"color": "$f_color_format",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"text": "feed.return",
|
|
"alpha": "$content_alpha",
|
|
"text_alignment": "center",
|
|
"layer": 2,
|
|
"size": [ "100%", 15 ],
|
|
"offset": [ 0, 2 ]
|
|
},
|
|
|
|
"prev_label": {
|
|
"type": "label",
|
|
"size": [ "100%", "default" ],
|
|
"text_alignment": "left",
|
|
"color": "$f_color_format",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"text": "feed.previous",
|
|
"alpha": "$content_alpha",
|
|
"layer": 2
|
|
},
|
|
|
|
"next_label": {
|
|
"type": "label",
|
|
"size": [ "100%", "default" ],
|
|
"text_alignment": "left",
|
|
"color": "$f_color_format",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"text": "feed.next",
|
|
"alpha": "$content_alpha",
|
|
"layer": 2
|
|
},
|
|
|
|
"delete_label@feed_common.label": {
|
|
"text": "feed.delete",
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"alpha": "@feed_common.anim_box_text",
|
|
"offset": [ 6, 2 ],
|
|
"text_alignment": "left",
|
|
"size": [ "100%", 15 ]
|
|
},
|
|
|
|
"report_to_club_label@feed_common.label": {
|
|
"text": "feed.report_club",
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"alpha": "@feed_common.anim_box_text",
|
|
"offset": [ 6, 2 ],
|
|
"text_alignment": "left",
|
|
"size": [ "100%", 15 ]
|
|
},
|
|
|
|
"report_to_xbox_label@feed_common.label": {
|
|
"text": "feed.report_xbox",
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"alpha": "@feed_common.anim_box_text",
|
|
"offset": [ 6, 2 ],
|
|
"text_alignment": "left",
|
|
"size": [ "100%", 15 ]
|
|
},
|
|
|
|
"new_post_header_text": {
|
|
"type": "label",
|
|
"layer": 1,
|
|
"text": "feed.newPost",
|
|
"font_size": "normal",
|
|
"color": "$title_text_color",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center"
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Common Buttons
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"return_button@common_buttons.transparent_content_button": {
|
|
"layer": 10,
|
|
"size": [ 50, 25 ],
|
|
"offset": [ 5, 0 ],
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"$button_content": "feed_common.return_label",
|
|
"$default_content_alpha": 1,
|
|
"$default_button_alpha": 0,
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "(not #gamepad_helper_visible)",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"prev_button@common_buttons.transparent_content_button": {
|
|
"layer": 10,
|
|
"size": [ 60, 25 ],
|
|
"anchor_from": "bottom_left",
|
|
"anchor_to": "bottom_left",
|
|
"$pressed_button_name": "$prev_button_name",
|
|
"$button_content": "feed_common.prev_label",
|
|
"$default_content_alpha": 1,
|
|
"$default_button_alpha": 0.3,
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"$is_prev_visible|default": "#visible",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$is_prev_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"prev_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"$direction_gamepad_button_helper|default": "gamepad_helper@common.gamepad_helper_left_bumper",
|
|
"layer": 10,
|
|
"size": [ 60, 25 ],
|
|
"anchor_from": "bottom_left",
|
|
"anchor_to": "bottom_left",
|
|
"$content_alpha": 1,
|
|
"controls": [
|
|
{
|
|
"$direction_gamepad_button_helper": {
|
|
"offset": [ 0, 4 ],
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"$hide_description|default": true,
|
|
"$gamepad_helper_icon_size|default": [ 18, 18 ]
|
|
}
|
|
},
|
|
{
|
|
"padding_1": {
|
|
"type": "panel",
|
|
"size": [ 3, 0 ]
|
|
}
|
|
},
|
|
{
|
|
"lab_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"controls": [
|
|
{
|
|
"vert_pad": {
|
|
"type": "panel",
|
|
"size": [ 0, 4 ]
|
|
}
|
|
},
|
|
{
|
|
"prevlab@feed_common.prev_label": {}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"next_button@common_buttons.transparent_content_button": {
|
|
"layer": 10,
|
|
"size": [ 40, 25 ],
|
|
"anchor_from": "bottom_right",
|
|
"anchor_to": "bottom_right",
|
|
"$pressed_button_name": "$next_button_name",
|
|
"$button_content": "feed_common.next_label",
|
|
"$default_content_alpha": 1,
|
|
"$default_button_alpha": 0.3,
|
|
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
|
|
"$is_next_visible|default": "#visible",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$is_next_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"next_panel": {
|
|
"type": "stack_panel",
|
|
"orientation": "horizontal",
|
|
"$direction_gamepad_button_helper|default": "gamepad_helper@common.gamepad_helper_right_bumper",
|
|
"layer": 10,
|
|
"size": [ 42, 25 ],
|
|
"anchor_from": "bottom_right",
|
|
"anchor_to": "bottom_right",
|
|
"$content_alpha": 1,
|
|
"controls": [
|
|
{
|
|
"lab_panel2": {
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"size": ["fill", 15],
|
|
"controls": [
|
|
{
|
|
"vert_pad2": {
|
|
"type": "panel",
|
|
"size": [ 0, 4 ]
|
|
}
|
|
},
|
|
{
|
|
"nextlab@feed_common.next_label": {}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"padding_2": {
|
|
"type": "panel",
|
|
"size": [ 2, 0 ]
|
|
}
|
|
},
|
|
{
|
|
"$direction_gamepad_button_helper": {
|
|
"offset": [ 0, 4 ],
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"$hide_description|default": true,
|
|
"$gamepad_helper_icon_size|default": [ 18, 18 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"like_button@common_buttons.transparent_content_button": {
|
|
"size": [ 40, 25 ],
|
|
"$button_content": "feed_common.feed_like_content_panel",
|
|
"$default_button_alpha": 0.3,
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"$button_mapping_id|default": "",
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_select",
|
|
"to_button_id": "$button_mapping_id",
|
|
"mapping_type": "pressed"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_ok",
|
|
"to_button_id": "$button_mapping_id",
|
|
"mapping_type": "focused"
|
|
}
|
|
]
|
|
},
|
|
|
|
"delete_button@common_buttons.transparent_content_button": {
|
|
"size": [ 135, 25 ],
|
|
"$button_content": "feed_common.delete_label",
|
|
"$default_button_texture": "textures/ui/imagetaggedcorner",
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"$default_button_alpha": "@feed_common.anim_faded_background"
|
|
},
|
|
|
|
"report_to_xbox_button@common_buttons.transparent_content_button": {
|
|
"size": [ 135, 25 ],
|
|
"$button_content": "feed_common.report_to_xbox_label",
|
|
"$default_button_texture": "textures/ui/imagetaggedcorner",
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"$default_button_alpha": "@feed_common.anim_faded_background"
|
|
},
|
|
|
|
"report_to_club_button@common_buttons.transparent_content_button": {
|
|
"size": [ 135, 25 ],
|
|
"$button_content": "feed_common.report_to_club_label",
|
|
"$default_button_texture": "textures/ui/imagetaggedcorner",
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"$default_button_alpha": "@feed_common.anim_faded_background"
|
|
},
|
|
|
|
"options_button@common_buttons.transparent_content_button": {
|
|
"size": [ 25, 25 ],
|
|
"layer": 0,
|
|
"$button_content": "feed_common.options_icon",
|
|
"$default_button_alpha": 0.3,
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
|
|
"$button_mapping_id|default": "",
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_select",
|
|
"to_button_id": "$button_mapping_id",
|
|
"mapping_type": "pressed"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_ok",
|
|
"to_button_id": "$button_mapping_id",
|
|
"mapping_type": "focused"
|
|
}
|
|
]
|
|
},
|
|
|
|
"share_button@common_buttons.transparent_content_button": {
|
|
"size": [ 40, 25 ],
|
|
"$default_button_alpha": 0.6,
|
|
"$button_content": "feed_common.share_label",
|
|
"$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
|
|
"$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed"
|
|
},
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// Common Controls
|
|
//--------------------------------------------------------------------------------
|
|
|
|
"spacing_gap": {
|
|
"type": "panel",
|
|
"size": [ "100%", 20 ]
|
|
},
|
|
|
|
"no_feed_item_content": {
|
|
"type": "label",
|
|
"color": "$f_color_format",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"size": [ "80%", "default" ],
|
|
"text_alignment": "center",
|
|
"layer": 1,
|
|
"font_type": "smooth",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#no_feed_item_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"gamepad_helpers@common.gamepad_helpers_a_and_b": {
|
|
"layer": 0,
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"offset": [ 0, "31px" ]
|
|
},
|
|
|
|
"share_text_box@common.transparent_text_edit_box": {
|
|
"size": [ "85%", 25 ],
|
|
"max_length": 350,
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"$box_texture": "textures/ui/White",
|
|
"$text_box_text_color": "$8_color_format",
|
|
"$alpha": 1,
|
|
"$hover_alpha": 0.1,
|
|
"$place_holder_text": "feed.whatup",
|
|
"$place_holder_text_color": "$7_color_format"
|
|
},
|
|
|
|
"progress_loading_bars": {
|
|
"type": "image",
|
|
"layer": 3,
|
|
"texture": "textures/ui/loading_bar",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"size": [ 64, 8 ],
|
|
"uv_size": [ 64, 8 ],
|
|
"uv": "@feed_common.bar_animation",
|
|
"color": [ 0.7, 0.7, 0.7, 1.0 ]
|
|
},
|
|
|
|
"bar_animation": {
|
|
"anim_type": "flip_book",
|
|
"initial_uv": [ 0, 0 ],
|
|
"frame_count": 10,
|
|
"frame_step": 64,
|
|
"fps": 10,
|
|
"reversible": true,
|
|
"easing": "linear",
|
|
"next": "@bar_forward"
|
|
},
|
|
|
|
"popup_dialog_bg": {
|
|
"type": "image",
|
|
"texture": "textures/ui/White",
|
|
"color": "$7_color_format"
|
|
},
|
|
|
|
"pagination_panel": {
|
|
"type": "panel",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%", 30 ],
|
|
"$next_button_name|default": "",
|
|
"$prev_button_name|default": "",
|
|
"controls": [
|
|
{
|
|
"prev_button@feed_common.prev_button": {
|
|
}
|
|
},
|
|
{
|
|
"page_text@feed_common.page_text": {
|
|
|
|
}
|
|
},
|
|
{
|
|
"next_button@feed_common.next_button": {
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"pagination_panel_gamepad": {
|
|
"type": "panel",
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"size": [ "100%", 30 ],
|
|
"controls": [
|
|
{
|
|
"prev_panel@feed_common.prev_panel": {
|
|
}
|
|
},
|
|
{
|
|
"page_text@feed_common.page_text": {
|
|
}
|
|
},
|
|
{
|
|
"next_panel@feed_common.next_panel": {
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"like_image": {
|
|
"type": "image",
|
|
"texture": "textures/ui/heart_new",
|
|
"size": [ "100%", "100%" ],
|
|
"layer": 1,
|
|
"$is_like_visible|default": "#hidden",
|
|
"$is_like_visible_comment|default": "#hidden",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$is_like_visible",
|
|
"binding_name_override": "#visible",
|
|
"binding_type": "collection",
|
|
"binding_collection_name": "$collection_binding_name"
|
|
},
|
|
{
|
|
"binding_name": "$is_like_visible_comment",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"like_image_default": {
|
|
"type": "image",
|
|
"texture": "textures/ui/like_default",
|
|
"size": [ "100%", "100%" ],
|
|
"layer": 0
|
|
},
|
|
|
|
"like_image_panel": {
|
|
"type": "panel",
|
|
"size": [ "50%", "100%" ],
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"controls": [
|
|
{
|
|
"like_image_instance@feed_common.like_image": {
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle"
|
|
}
|
|
},
|
|
{
|
|
"like_image_default@feed_common.like_image_default": {
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"feed_like_content_panel": {
|
|
"type": "stack_panel",
|
|
"size": [ "100%", "50%" ],
|
|
"orientation": "horizontal",
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"controls": [
|
|
{
|
|
"like_image_panel@feed_common.like_image_panel": {
|
|
"size": [ "25%", "100%" ]
|
|
}
|
|
},
|
|
{
|
|
"like_label@feed_common.label": {
|
|
"text": "feed.like",
|
|
"size": [ "fill", 15 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"white_banner": {
|
|
"type": "image",
|
|
"texture": "textures/ui/White"
|
|
},
|
|
|
|
"page_text": {
|
|
"type": "label",
|
|
"text": "$this_page_index_text",
|
|
"color": "$f_color_format",
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"size": [ "default", 30 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$this_page_index_text"
|
|
}
|
|
]
|
|
},
|
|
|
|
"options_icon": {
|
|
"type": "image",
|
|
"layer": 0,
|
|
"texture": "textures/ui/more-dots",
|
|
"size": [ 11, 11 ]
|
|
},
|
|
|
|
"transparent_background": {
|
|
"type": "image",
|
|
"texture": "textures/ui/control",
|
|
"size": [ "100%", "100%" ],
|
|
"alpha": 0.80
|
|
},
|
|
|
|
"black_arrow": {
|
|
"type": "image",
|
|
"texture": "textures/ui/black-arrow",
|
|
"size": [ 10, 10 ],
|
|
"alpha": "@feed_common.anim_faded_background"
|
|
},
|
|
|
|
"faded_background_image": {
|
|
"type": "image",
|
|
"size": [ "110%", "100%" ],
|
|
"texture": "textures/ui/control",
|
|
"alpha": "@feed_common.anim_faded_background"
|
|
},
|
|
|
|
"anim_faded_background": {
|
|
"anim_type": "alpha",
|
|
"easing": "in_expo",
|
|
"duration": 0.4,
|
|
"from": 0,
|
|
"to": 0.7
|
|
},
|
|
|
|
"anim_faded_background_full": {
|
|
"anim_type": "alpha",
|
|
"easing": "in_expo",
|
|
"duration": 0.4,
|
|
"from": 0,
|
|
"to": 1
|
|
},
|
|
|
|
"anim_box_text": {
|
|
"anim_type": "alpha",
|
|
"easing": "in_expo",
|
|
"duration": 0.4,
|
|
"from": 0,
|
|
"to": 1
|
|
}
|
|
} |