已处理 limitControl对文本组件无效

状态
不接受进一步回复。
详情请看


YAML:
扩展 折叠 复制
ui:
  match: "re"
  # 这俩记得打开,不然交互不了HUD
  transfer: true # 传递交互
  isHud: false
  background: false
  through: true # 穿透
  action:
    open: |-
      var.yaw = Player.getYaw()%360
      if(var.yaw < 0 ){
        var.yaw += 360
      }
      Message.chat(var.yaw + "|" + Player.getYaw())
    tick: |-
      if(var.yaw < 0 ){
        var.yaw += 360
      }
      if(var.yaw > 360 ){
        var.yaw = var.yaw%360
      }
      var.yaw += 0.1
    seconds: |-
      Message.chat(var.yaw + "|" + val.指针.x + "| yaw:" + Player.getYaw())
controls:
  adaptive:
    type: adaptive
    attribute:
      point: ~bottom_left
      width: 1440
      height: 900
    children:
      背景:
        val: 背景
        type: texture
        attribute:
          point: ~top_center
          width: 700
          height: 50
          x: 35
          y: 0
          normal: ~0,0,0,160
        children:
          限制显示:
            val: 限制
            type: texture
            attribute:
              x: (700 - self.width)/2
              y: -10
              width: val.指针.width/3
              height: 60
              normal: ~255,255,255,100
          指针:
            val: 指针
            type: text
            attribute:
              texts: ~N | | | | | | | | | | E | | | | | | | | | | S | | | | | | | | | | W | | | | | | | | | | N | | | | | | | | | | E | | | | | | | | | | S | | | | | | | | | | W | | | | | | | | | | N | | | | | | | | | | E | | | | | | | | | | S | | | | | | | | | | W | | | | | | | | | | N
              fontSize: 36
              x: self.width/360/3*2*((var.yaw/360)*-180)-self.width/3 + 138
              y: 20
              limitControl:
 
状态
不接受进一步回复。