Skip to content

v2.8.0 - 三个重点 Three Core Principles

Choose a tag to compare

@ChepleBob30 ChepleBob30 released this 17 Feb 06:06
· 19 commits to main since this release
  • 本更新围绕“多维度”“快运行”“好使用”三个重点进行了一系列改进。
    • 修改了RustConstructorResource中modify_tags的定义,现在可以选择是否要清空原有标签;
    • 将position和size从position_size_config中取出,并在BasicFrontResource中添加了display_position``display_size两个新方法;
    • 移除了事件机制及与其相关的所有内容;
    • 将Rust Constructor Extra重新整合到Rust Constructor中(也就是说,添加了Background Switch ResourcePanel三个新资源及其相关方法);
    • 将颜色和透明度拆成了color和alpha两个字段;
    • 移除了Text的truncate,现在Text强制截断文本,且可以通过auto_fit指定是否让渲染层大小(设定size等于实际文本大小还是文本框大小);
    • 改进了ResourcePanel的布局方式,现在只需在ResourcePanel内部定义排版方式即可;
    • 添加了ResourcePanel的滚动条;
    • 修复了ResourcePanel的布局错乱问题;
    • 修复了一些已知问题。

  • This update introduces improvements centered around three key aspects: "Multiple Dimensions", "Fast Execution", and "Ease of Use".
    • Modified modify_tags definition in RustConstructorResource to support optional clearing of existing tags;
    • Extracted position and size from position_size_config, added new methods display_position and display_size in BasicFrontResource;
    • Removed event system and all associated components;
    • Reintegrated Rust Constructor Extra into Rust Constructor (i.e., added three new resources Background, Switch, ResourcePanel with their corresponding methods);
    • Split color property into separate color and alpha fields;
    • Removed truncate from Text, now enforces text truncation with auto_fit parameter controlling render layer sizing behavior (whether size reflects actual text dimensions or bounding box dimensions);
    • Enhanced ResourcePanel layout system - layout strategy can now be defined internally within ResourcePanel;
    • Implemented scrollbars for ResourcePanel;
    • Fixed layout corruption issues in ResourcePanel;
    • Resolved several known bugs.