mod-tools

A mod provides a variety of tools for modding. ----------------- Version 1.5.2 ## Highlight - Fixed some serious bugs. - Better experience. - Fixed some bugs. ----------------- ## ShowUIList - Display `icon`, `tex`, `styles`, `colors`, `interps`\ !(./screenshots/UIList.png) ## Tester !(./screenshots/tester.png) - Provide `JS` editor `Tester` - Shortcuts - Press `Ctrl`+`Shift`+`Enter` to `execute` code immediately - Press `Ctrl`+`Shift`+`↑/↓` to switch `history` records - Press `Ctrl`+`Shift`+`D` to `view` detailed information - Press `Alt`+`V` to preview `Texture` - Built-in `unsafe`, `lookup` - Built-in `IntFunc` class (abbreviated as `$`) - `$.xxx` can represent primitive data types (e.g., `$.void` represents `Void.TYPE`;`$.J` represents long.class) - `$p` represents `Packages` - Code: [JSFunc](https://github.com/i-hope1/mod-tools/src/modtools/utils/JSFunc.java) - Long press on code in the favorites to add to startup items\ !(./screenshots/startup.png) - Quick switch history\ ![Screenshot 2024-03-10 14-45-37](https://github.com/I-hope1/mod-tools/assets/78016895/4918af35-19af-4fab-b961-70bdc8679fe8) - `$.item`, `$.liquid`, `$.unit` and so on. ## UnitSpawn - Multiple team selection - Support for fixed point spawning - Display `name` and `localizedName` - Rightclick the name Label to copy save as JS var. ## Selection - Selector - Supports `Tile`, `Building`, `Bullet`, `Unit` - Kill - Set Item/Liquid/Team - Press `Ctrl`+`Alt` to fix Focus Window ## ReviewElement - Display element list, double-click to copy element to js variable - `Ctrl`+`Shift`+`C` to Inspect Element - `Ctrl`+`Alt`+`D` to display bounds of Element - Select untouchable elements - Mobile: Filter current element with two fingers - PC: Press `F` to filter current element - Functions shortcuts for Element - `i`: display details (open ShowInfoWindow)\ - `p`(for Image): show `DrawablePicker` - `del`: (`shift` to ignore confirmation), delete element - `<` / `>`: collapse Group - `f`: fix floating Info column - `r`: invoke element's method - ![reviewElement](./screenshots/review_element.png) # Frag - Double-click the blue part of Frag to minimize/restore Frag - In the minimized state, click the blue part, it will behave like a floating ball ## Window - Press `Ctrl`+`Tab` to switch windows - Press `Shift`+`F4` to close current window - RClick the close button to move and scl window. ## ShowInfoWindow - Show all fields, methods, constructors and nested classes of a obj. - Field can be modified. - Method can be Invoked(Special). - Constructor can be invoked to new a instance. ## Others ### Extensions - Http Redirect > Redirect some websites, such as: github\ > Configuration file: b0kkihope/http_redirect.properties

24k Downloads 23 Stars
Created 2 years agoUpdated 1 month ago

Authors:

1.5.2 | 1.5.2


What's Changed

  • 修复了绑定按键时的崩溃 by @I-hope1 in https://github.com/I-hope1/mod-tools/pull/18 修复 be 没有 ItemImage 导致的 bug 更好的更新器

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.5.1...1.5.2

1.5.1 | 1.5.1


主要更新

  • 修复一点小bug
  • 添加暂停act的功能

Highlight

  • Fix some minor bugs
  • Add the function of pausing act(delta) Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.5...1.5.1

1.5 | 1.5


What's Changed

  • feat(ui): 修复NoMarkupLabel&MyLabel类prefsize不对的问题 by @I-hope1 in https://github.com/I-hope1/mod-tools/pull/14

Highlight

  • Fixed a lot of bugs
  • Better ReviewElement, Selection, Tester, ContentList
  • Optimize a lot
  • New Content: KeyCodeSetter
  • More tips for functions.
  • Completely new ValueLabel (ShowInfoWindow)
  • Better experience on mobile.

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.6.7...1.5

1.4.6.7 | 1.4.6.7


Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.6.6...1.4.6.7

  • Fixed some bug about ValueLabel
  • Fixed the problem of not being able to get the offset of hidden class fields
  • Removes some test code.

1.4.6.6 | 1.4.6.6


Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.6.5...1.4.6.6

HighLight

  • #12
  • Colorful ValueLabel

1.4.6.5 | 1.4.6.5


  • 🐛 Fixed a lot of bugs
  • ✨ Supported ValueLabel to operate the sub item.

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.6.4...1.4.6.5

1.4.6.4 | 1.4.6.4


Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.6.3...1.4.6.4🌟 Updater启用 ⌨️ Tester的历史切换:Ctrl+Shift+↑/↓ -> Ctrl+Shift+Alt+↑/↓ 🐛 修复Selection面对uiIcon为null时的报错 🐛 修复httpRedirect导致其他url无法访问的问题 🐛 修复Tester无法部分补全 & 支持'([{'多余报错 🐛 修复Frag在强制横屏下异位的bug 🐛 修复DrawablePicker有时没有alpha的bug(a没有除以255) & 颜色消失的bug ✨ 完成ISettings的switch ✨ Tester的JS更多功能 ✨ Better Updater & TopGroup 🚚 Icon文件移到sprites下 ♻️ 代码部分重构 & 优化代码

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.6.3...1.4.6.4

| 1.4.6.3


Some bug fixes

  • 修复ShowInfo按钮导致jvm崩溃的bug

Feature

  • More util for JS

1.4.6.2 | 1.4.6.2


Bug Fixes

  • Fixed the bug ShowInfoWindow class button was covered by label
  • UnitSpawn automatically cancels the redundant selections.
  • Fixed the bug caused by async set block (Selection)
  • Fixed a crash led by ISettings
  • Fixed a great number of bugs about DrawablePicker
  • Fixed the abnormal keyboard focus of ReviewElement
  • Fixed a bug about enter and exit
  • More bug

Features

  • Tester you can use $.contentName to get Content
  • Better ReviewElement to inspect element and cell
  • More key-shots for plenty of functions
  • Interp can be added by customization
  • Added some tips
  • Better LogDisplay
  • DrawString draw escape string
  • Ability to customize Styles
  • Image Preview can view the AtlasRegion name and page

Adjustment & Optimization

  • Adjust the info's key and value scale
  • Better performance for Tester
  • Review some code

错误修复

  • 修复了 ShowInfoWindow 类按钮被标签覆盖的bug
  • 修复了 UnitSpawn 不能自动取消多余的选择的bug
  • 修复了 Selection 异步设置 block 引起的bug
  • 修复了ISettings导致的崩溃
  • 修复了DrawablePicker的大量错误
  • 修复了ReviewElement键盘焦点异常
  • 修复了有关enterexit的错误
  • 更多错误

功能

  • 测试者可以使用 $.contentName 来获取Content
  • 更好的 ReviewElement 来检查元素和单元格
  • 更多功能的快捷键
  • 可以通过自定义添加 Interp
  • 添加了一些提示
  • 更好的 LogDisplay
  • DrawString 绘制转义字符串
  • 能够自定义样式
  • 图像预览可以查看 AtlasRegion 名称和页面

调整和优化

  • 调整信息的键和值比例
  • 为测试人员提供更好的性能
  • 重构一些代码

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.6.1...1.4.6.2

1.4.6.1 | 1.4.6.1


  • Fixed #9
  • 修复发包异常的bug
  • 修复Tester无法使用的bug
  • ReviewElement的UI小改动
  • 修复HiddenTopWindow隐藏top缺少动画的bug
  • 审查元素对按f固定元素信息的显示
  • 修复LerpFun不自动删除的bug(true -> false)
  • 更新特效渲染区域减小
  • 优化代码逻辑和性能
  • 数据目录b0kkihope -> mod_tools
  • 修复一些bug
  • Ctrl+Alt+D 来debug边界
  • 优化代码结构
  • 更流畅的动画

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.5.5...1.4.6.1

1.4.5.5 | 1.4.5.5


  • Resolve Scrolling issue #3

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.5.4...1.4.5.5

1.4.5.4 | 1.4.5.4


  • Some bug fixes
  • Added some shortcut key for ReviewElement and Tester
  • Better compatibility fro Background
  • Better experience for ShowInfoWindow
  • Optimization
  • Preview feature for ReviewElement (easy to carsh)

What's Changed

  • docs test by @I-hope1 in https://github.com/I-hope1/mod-tools/pull/8

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.5.3...1.4.5.4

1.4.5.3 | 1.4.5.3


Bug Fixes

  • Fixed the bug that Window was blocking TextField input
  • Consider TimeoutException as an internal error (No external error handling enabled, but TimeoutException can be caught)
  • Fixed the potential error that may occur during autocompletion in TextAreaTab
  • Fixed the bug where Underline remains during search
  • Fixed the issue where fonts in the UI may not display completely

New Features

  • Added color differentiation for Touchable in ReviewElement
  • Automatically capture rendering errors of Window

Bug修复

  • 修复Window阻塞TextField输入的bug
  • TimeoutException视为内部错误 (没有开启捕获外部错误,也可以捕获TimeoutException
  • 修复TextAreaTab补全时可能发生报错
  • 修复Underline搜索时仍保留的bug
  • 修复设置ui中的字体可能显示不全

新特性

  • ReviewElement添加Touchable颜色区分
  • 自动捕获Window的渲染报错

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.5.2...1.4.5.3

1.4.5.2 | 1.4.5.2


  • :bug: 修复安卓无法正常使用的bug

  • :sparkles: 添加captureLogger设置开关
  • :sparkles: ReviewElement支持Info fill & expand

  • :lipstick: 一些小细节优化

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.5.1...1.4.5.2

1.4.5.1 | 1.4.5.1


1.4.5 | 1.4.5


Bug Fixes

  • 修复UnitSpawn无法选择指定坐标的bug
  • 修复Selection解析错误数字崩溃的bug
  • Selection支持ValueLabel焦点
  • 修复Settings无法自动更新字段的bug

  • Fixed a bug that UnitSpawn could not select the specified coordinates.
  • Fixed the bug of number crash caused by Selection parsing error.
  • Selection supports ValueLabel focus.
  • Fixed a bug where Settings could not automatically update fields.

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.4...1.4.5

1.4.4 | 1.4.4


What's Changed

  • Eb fix by @I-hope1 in https://github.com/I-hope1/mod-tools/pull/2
  • Create LICENSE by @I-hope1 in https://github.com/I-hope1/mod-tools/pull/1

New Contributors

  • @I-hope1 made their first contribution in https://github.com/I-hope1/mod-tools/pull/2

Full Changelog: https://github.com/I-hope1/mod-tools/compare/1.4.3...1.4.4

  • 兼容性更好
  • Better compatibility
  • 审查元素更新
  • Updated ReviewElement
  • 新的UI
  • New UI
  • 图标更新
  • Icon Updated
  • 部分支持网络同步
  • Partial support for server

1.4.3 | 1.4.3


update 2023.2.4: f2f94e6

  • 把trash上传
  • 修复一些bug
  • 暂时取消window的动画
  • 优化代码结构+效率
  • 捕获js报错(可能还是会崩溃)
  • 添加语言翻译
  • 优化语法高亮器
  • 修复tester lineshow不能自动更新宽度

修复JSFun的ui布局问题: 57f3c61

update 2023.1.31: 33d4897

  • 修复WorldDraw一个渲染bug
  • 修复tester的一个bug
  • 添加常量高亮
  • 重置ReviewElement
  • 重写元素结构
  • 修复JSFunc设置值在安卓上的bug
  • 修改Selection的设置UnlockContent+amount的ui(更方便)

...: adb68b7

  • 改一下审查元素名称
  • Updated README.md

update a liitle: 4cae374

  • 修复tester的一些bug
  • 修复长按事件的bug
  • Updated README.md

update 2023.1.21: cb14a49

  • 优化代码
  • 更好的语法高亮
  • 减少在Scroll Pane元素过多的卡顿
  • 异步添加和遍历Selection
  • 添加JSFunc的一些编辑

update 2023.1.12: 4f3d581

  • 修复一些已知bug
    • WorldDraw退出世界还显示
    • 长按得松开才触发
  • JSFunc添加修改字段的功能
  • 优化代码

update 2023.1.11: 829a518

  • 修复一些bug
  • 优化代码

update 2023.1.10: 108adc4

  • 清理代码
  • 修复JSSyntax的一些bug
  • 优化JSSyntax
  • 添加JSSyntax的函数名高亮

Fixed a little bug: f571acb

2023.1.9 11:00: 3b659b7

  • 修复Tester输入时,仍触发事件
  • 适配135
  • 调整文件结构
  • 重命名:ElementShow->ReviewElement
  • 优化代码
  • 添加ctrl+Tab切换窗口
  • Selection:Function.list如果为null自动隐藏
  • 微调ShowInfo窗口
  • 添加Window窗口动画

update 2023.1.5: 78e974d

  • Adapter 135.
  • Fixed some known issues.
  • Optimize code.
  • Add actions debug content (unfinished).

update a little: ecdbe64

  • Fixed dclick.
  • Fixed some other bugs.
  • Default font turns to Fonts.def.
  • Optimized some details.

update 2022.12.9: 2e2a7b8

  • Fixed some bugs.
  • Changed the background.
  • Optimized the code.
  • Adjusted code structure
  • Improved bundles.
  • Better user interface.

1.4 | 1.4


  1. added focus feedback on Element Show & Selection.
  2. fixed a bug memory bug which didn't remove window when it's close.
  3. changed mod data directory.
  4. optimized code.
  5. fixed some of other small bugs.

  1. 添加 审查元素 和 选择器 的焦点反馈.
  2. 修复窗口关闭时仍占内存的bug.
  3. 修改的mod数据目录.
  4. 优化代码.
  5. 修复其他一些bug.

1.2.3 | 1.2.3


  • 修复bug
    • 语言文件bug
  • 添加功能
    • elementShow搜索
  • 适配手机端
  • showInfo更强大

| 1.2.1


  • 修复bug
    • textarea输入bug
    • Frag超出屏幕bug
    • 修复TextAreaTable行与内容不对齐的bug
    • 修复TextAreaTable跟踪光标问题
  • 添加更多功能
    • elementShow显示父元素
    • JSFunc添加showElement

1.2 | 1.2


  • 修复bug
    • 修复设置bug
  • 添加异步
  • 更改LinesShow颜色
  • 添加更多功能
    • Tester添加left,right按钮
    • Tester添加Reflect
  • 优化代码
  • 完善功能
    • 全新Tester的TextArea

| 1.1


| 1.0