Skip to content

Releases: way-zer/ContentsTweaker

v3.0.5 🌈

04 Aug 06:54
c99fc0a
Compare
Choose a tag to compare

更新内容

v3.0.4 🌈

29 Feb 11:47
d8b1139
Compare
Choose a tag to compare

更新内容

  • fix UnlockableContent.Stats @way-zer (#38)
  • 优化row语句

v3.0.3 🌈

30 Jan 17:38
a09bb0c
Compare
Choose a tag to compare

更新内容

  • 扩展更多 UIExt的属性 @way-zer (#37)

    • Table.cellDefaults
    • Element.draggable
    • Element.onClick 优化
    • Label.fontScale fontScaleX fontScaleY
    • +TextButton
  • 解锁 更多Cell的属性 @way-zer (#36)
    暴露ReflectResolver.extend(node, objInfo)API供其他模块使用

v3.0.2 🌈

25 Nov 11:06
06f000a
Compare
Choose a tag to compare

更新内容

v3.0.1 🌈

23 Nov 13:20
815b4cd
Compare
Choose a tag to compare

更新内容

v3.0.0 🌈

04 Nov 11:48
8243ba8
Compare
Choose a tag to compare

更新内容

  • 重构核心解析器,增加遍历支持 @way-zer (#32)
    • 新的核心解析器
    • 添加API,支持通过CTNode.children遍历子节点
    • 支持地图通过ContentsPatchCT@{name}内嵌patch文件
    • 修复一些旧解析器无法解决的问题
    • 优化报错显示

Change

  • Array和Map现在索引以#开头,例如xxx.#0.xxx (目前提供后向兼容)

v2.1.2 🌈

07 May 13:03
c58a914
Compare
Choose a tag to compare

更新内容

  • fix Cannot cast java.lang.Float to float @way-zer (#31)

v2.1.1 🌈

07 May 12:04
181914d
Compare
Choose a tag to compare

更新内容

  • 修复一些bug @way-zer (#30)
    • 修复comsumes仍然无法工作问题
  • 修复ReflectNode返回obj过时问题
  • 修复UIExt在服务端运行报错问题

附使用patch实现无中生有示例代码

{block.graphite-press.consumers:{clearItems:1,clearLiquids:1}
block.multi-press.consumers:{clearItems:1,clearLiquids:1}
block.silicon-smelter.consumers:{clearItems:1,clearLiquids:1}
block.silicon-crucible.consumers:{clearItems:1,clearLiquids:1}
block.kiln.consumers:{clearItems:1,clearLiquids:1}
block.plastanium-compressor.consumers:{clearItems:1,clearLiquids:1}
block.phase-weaver.consumers:{clearItems:1,clearLiquids:1}
block.surge-smelter.consumers:{clearItems:1,clearLiquids:1}
block.cryofluid-mixer.consumers:{clearItems:1,clearLiquids:1}
block.pyratite-mixer.consumers:{clearItems:1,clearLiquids:1}
block.blast-mixer.consumers:{clearItems:1,clearLiquids:1}
block.melter.consumers:{clearItems:1,clearLiquids:1}
block.separator.consumers:{clearItems:1,clearLiquids:1}
block.disassembler.consumers:{clearItems:1,clearLiquids:1}
block.spore-press.consumers:{clearItems:1,clearLiquids:1}
block.pulverizer.consumers:{clearItems:1,clearLiquids:1}
block.coal-centrifuge.consumers:{clearItems:1,clearLiquids:1}
block.silicon-arc-furnace.consumers:{clearItems:1,clearLiquids:1}
block.electrolyzer.consumers:{clearItems:1,clearLiquids:1}
block.atmospheric-concentrator.consumers:{clearItems:1,clearLiquids:1}
block.oxidation-chamber.consumers:{clearItems:1,clearLiquids:1}
block.electric-heater.consumers:{clearItems:1,clearLiquids:1}
block.slag-heater.consumers:{clearItems:1,clearLiquids:1}
block.phase-heater.consumers:{clearItems:1,clearLiquids:1}
block.carbide-crucible.consumers:{clearItems:1,clearLiquids:1}
block.slag-centrifuge.consumers:{clearItems:1,clearLiquids:1}
block.surge-crucible.consumers:{clearItems:1,clearLiquids:1}
block.cyanogen-synthesizer.consumers:{clearItems:1,clearLiquids:1}
block.phase-synthesizer.consumers:{clearItems:1,clearLiquids:1}
block.heat-reactor.consumers:{clearItems:1,clearLiquids:1}
block.cultivator.consumers:{clearItems:1,clearLiquids:1}
block.vent-condenser.consumers:{clearItems:1,clearLiquids:1}
block.heat-source.consumers:{clearItems:1,clearLiquids:1}}

v2.1.0 🌈

07 May 10:23
0d86b27
Compare
Choose a tag to compare

更新内容

✨ MOD更新

  • 部分重构及增加UI扩展功能 @way-zer (#29)
  • 整理代码结构,重制Modifiable结构,分离出Storable
    • 修复Blocks.consumes错误

实验特性:UI扩展功能设计

UI节点类似一个Map<id,Component>
往节点下增加元素,即在scene新增UI组件

子节点

  • #id -> 获取UINode
  • +type#id 获取或创建UINode
  • "-" #id 删除ui节点

实现可点击的infoPopup示例

{
 "uiExt.+Table#scoreboard": {
   fillParent: true
//    touchable: childrenOnly
   align: top
   //"actions.+": [{delay:5},{remove:true}] //暂不支持
   "+Table#bg": {
      touchable: enabled
      style: black3,
      pad: [100,100,100,100],
      onClick: "Hello world" //action为往服务器发送信息
      margin: 4
      "+Label#label": {
        text: "Hello world"
        style: outlineLabel
      }
   }
 }
}

实现情况

  • 支持组件Table和Label
  • 支持基础可赋值属性和align margin pad text style onClick

v2.0.2 🌈

03 Oct 07:33
a380a80
Compare
Choose a tag to compare

更新内容

  • 添加ContentsLoader|version网络协议
  • fix 当值为object时不能使用

    sample code:

       "unit.eclipse.abilities.+":{
          "type": "StatusFieldAbility",
          "duration": 120,
          "effect": "overclock",
          "reload": 100,
          "range": 80
    }