UID548063性别保密经验 EP铁粒 粒回帖0主题精华在线时间 小时注册时间2022-8-5最后登录1970-1-1
| 本帖最后由 我是李君子 于 2022-12-30 13:32 编辑
也就是这两天,我把这个客户端以及其ui功能等刷新了一遍,展开了一个测试
测试独立的物品栏以及[携带板]的物品栏ui
但携带办ui不伦修正多少都会出现这样不可避免的问题

比在
发现这个custom相关的文件不包括在vanilla_netease中,这意味着福利物品栏不能实现
而此文件在[主题+客户端]也就是vanilla中主体ui存在
为了可以运行,能够通过名称找到了json内容信息如下:
{
"namespace": "custom_templates",
"lock_icon": {
"type": "image",
"texture": "textures/ui/lock"
},
"templates_scroll_content": {
"type": "input_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%" ],
"focus_container": true,
"use_last_focus": true,
"focus_nagivation_mode_down": "contained",
"focus_nagivation_mode_up": "contained",
"focus_nagivation_mode_right": "contained",
"focus_nagivation_mode_left": "contained",
"controls": [
{
"[email protected]_panel": {
"size": [ "100%-4px", "100% - 4px" ],
"offset": [ 2, 2 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 1,
"$scrolling_pane_size": [ "100% - 1px", "100%" ],
"$scrolling_content": "custom_templates.templates_scroll_panel",
"$scroll_size": [ 5, "100% - 4px" ],
"$show_background": false
}
}
]
},
"templates_scroll_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-4px", "100%c" ],
"offset": [ 2, 0 ],
"controls": [
{
"templates_stack_panel": {
"type": "stack_panel",
"orientation": "vertical",
"size": [ "100%", "100%c" ],
"controls": [
{
"templates_item_grid@custom_templates.templates_item_grid": {}
}
]
}
}
]
},
"templates_item_grid": {
"type": "grid",
"size": [ "100%", "default" ],
"layer": 1,
"anchor_to": "top_left",
"anchor_from": "top_left",
"grid_item_template": "custom_templates.templates_item",
"grid_dimension_binding": "#templates_grid_dimension",
"collection_name": "templates_collection",
"bindings": [
{
"binding_name": "#templates_grid_dimension"
}
]
},
"templates_item": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 1,
"size": [ "100%", 29 ],
"orientation": "horizontal",
"controls": [
{
"template_item_button@custom_templates.template_item_button": {
"size": [ "fill", "100% + 1px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"focus_change_left": "FOCUS_OVERRIDE_STOP",
"focus_change_right": "FOCUS_OVERRIDE_STOP",
"layer": 1
}
}
]
},
"template_item_button@common_buttons.dark_content_button": {
"$button_content": "custom_templates.template_content_panel",
"$pressed_button_name": "button.menu_custom_world_template_clicked",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "templates_collection"
}
]
},
"template_content_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100%", "100%" ],
"variables": [
{
"requires": "$default_state",
"$border_texture": "textures/ui/default_indent"
},
{
"requires": "$hover_state",
"$border_texture": "textures/ui/world_screenshot_focus_border"
},
{
"requires": "$pressed_state",
"$border_texture": "textures/ui/world_screenshot_focus_border"
},
{
"requires": "$locked_state",
"$border_texture": "textures/ui/default_indent"
}
],
"controls": [
{
"template_screenshot@custom_templates.template_screenshot": {}
},
{
"template_text_panel@custom_templates.template_text_panel": {
"size": [ "fill", "100%" ]
}
},
{
"lock_panel": {
"type": "panel",
"size": [ "100%c + 4px", "100%" ],
"controls": [
{
"lock_icon@custom_templates.lock_icon": {
"size": [ 8, 8 ]
}
}
],
"bindings": [
{
"binding_name": "#lock_visible",
"binding_collection_name": "templates_collection",
"binding_type": "collection",
"binding_name_override": "#visible"
}
]
}
}
]
},
"template_screenshot": {
"type": "image",
"size": [ "100%c + 2px", "100%" ],
"texture": "$border_texture",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"layer": 1,
"controls": [
{
"picture": {
"type": "image",
"layer": 1,
"force_texture_reload": true,
"texture": "#screenshot_texture",
"zip_folder": "#screenshot_zip_folder",
"texture_file_system": "#screenshot_file_system",
"size": [ "173.91%y", "100% - 2px" ],
"$screenshot_texture_name|default": "#screenshot_texture",
"$screenshot_zip_folder|default": "#screenshot_zip_folder",
"$screenshot_zip_fol
实验包内容:
创建一个只有剑的类别
成果:失败
还给我弄没了3把剑 |
|