已处理 ui贴图资源无法对齐

状态
不接受进一步回复。
客户端ModLoader以及版本
forge-1.21.1
服务端核心版本
paper-1.21.1
1769847575786.webp
完全贴合的两张贴图,在ui中会出现缝隙
配置如下:
YAML:
扩展 折叠 复制
ui:
  hide:
    - player_state
    - player_health
    - armor_level
    - food_level
    - air_level
    - experience_bar
    - hotbar
    - item_name
  isHud: true     # 标识为HUD类型 [默认: false] [非脚本]
controls:
  adaptive:
    type: adaptive
    attribute:
      point: ~middle_center
      width: 1920
      height: 1080
    children:
      经验条边框:
        type: texture
        attribute:
          point: ~bottom_center
          width: 700
          height: 16
          y: -68
          normal: ~/ui/hud/经验条边框.png
        children:
          经验条:
            type: progress
            attribute:
              progress: Player.getExp()
              width: 696
              height: 12
              x: 2
              y: 2
              texture: ~/ui/hud/经验条.png
              mode: 0
 

附件

  • 经验条.webp
    经验条.webp
    162 字节 · 查看: 3
  • 经验条边框.webp
    经验条边框.webp
    238 字节 · 查看: 3
状态
不接受进一步回复。