开启辅助访问     
收藏本站

站内搜索

搜索

Minecraft(我的世界)苦力怕论坛

[闲聊] 网易ui植入时发生错误

 发表于 2022-12-30 13:25:39 来自手机|显示全部楼层|阅读模式 IP:河北省
本帖最后由 我是李君子 于 2022-12-30 13:32 编辑

也就是这两天,我把这个客户端以及其ui功能等刷新了一遍,展开了一个测试
测试独立的物品栏以及[携带板]的物品栏ui
但携带办ui不伦修正多少都会出现这样不可避免的问题
Screenshot_2022-12-30-11-55-50-156_com.mojang.minecraftpe.jpg
比在
发现这个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把剑
苦力怕论坛,感谢有您~
 发表于 2022-12-30 14:18:10 来自手机|显示全部楼层 IP:山东省
评论复审中...编号:4685635
2#2022-12-30 14:18:10回复收起回复
苦力怕论坛,感谢有您~
 发表于 2023-1-27 21:43:20 来自手机|显示全部楼层 IP:江西省
评论复审中...编号:5369365
3#2023-1-27 21:43:20回复收起回复
苦力怕论坛,感谢有您~
 发表于 2023-7-7 18:08:05 来自手机|显示全部楼层 IP:湖南省
评论复审中...编号:7645187
4#2023-7-7 18:08:05回复收起回复
苦力怕论坛,感谢有您~
 发表于 2023-9-10 18:01:40 来自手机|显示全部楼层 IP:河北省
评论复审中...编号:8917321
5#2023-9-10 18:01:40回复收起回复
苦力怕论坛,感谢有您~
 发表于 2023-12-5 18:28:47 来自手机|显示全部楼层 IP:山东省
评论复审中...编号:9856555
6#2023-12-5 18:28:47回复收起回复
苦力怕论坛,感谢有您~

本版积分规则

本站
关于我们
联系我们
坛史纲要
官方
哔哩哔哩
技术博客
下载
网易版
安卓版
JAVA
反馈
意见建议
教程中心
更多
捐助本站
QQ群
QQ群

QQ群

访问手机版

访问手机版

手机版|小黑屋|系统状态|klpbbs.com

| 由 木韩网络 提供支持 | GMT+8, 2026-6-23 15:26

声明:本站与Mojang以及微软公司没有从属关系

Powered by Discuz! X3.4