Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCS phase merge III #105

Merged
merged 94 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
1ed6c5e
chore: trim idea dir
isHarryh Jan 8, 2025
aeed07c
fix: speed calculation overflow
isHarryh Jan 8, 2025
b71cf2a
docs: update readme and cmdline
isHarryh Jan 8, 2025
424de4c
chore: fix whitespaces
isHarryh Jan 8, 2025
c36ec5e
feat: adjustable transition
isHarryh Jan 8, 2025
cdbc614
chore: update gitignore
isHarryh Jan 11, 2025
f5c09bd
feat: add handbook for transition
isHarryh Jan 11, 2025
97095c9
feat: add listview placeholder
isHarryh Jan 11, 2025
0fa8749
chore: optimize import
isHarryh Jan 13, 2025
47798fe
fix: no strict stage check now
isHarryh Jan 13, 2025
82a5cee
refactor: optimize outline transition
isHarryh Jan 13, 2025
fedd5db
docs: update changelog
isHarryh Jan 13, 2025
13ad718
docs: update readme
isHarryh Jan 13, 2025
52d8a3f
chore: bump to v3.6
isHarryh Jan 14, 2025
aebb7f7
feat: add sleep anim
isHarryh Jan 14, 2025
35d4d74
feat: optimize transition config
isHarryh Jan 14, 2025
8ca21ec
refactor: gui prefabs of colors
isHarryh Jan 15, 2025
2e5ed11
refactor: gui prefabs of icons
isHarryh Jan 15, 2025
9afe074
feat: add window system settings
litwak913 Sep 15, 2024
49069e0
feat(SettingsModule): window system settings ui
litwak913 Sep 16, 2024
adce94e
fix: resize and title bar
litwak913 Sep 16, 2024
2a1bd4b
fix: NullHWndCtrl crash
litwak913 Sep 16, 2024
544a318
fix: handbook
litwak913 Jan 5, 2025
e0bb2b2
chore: style
litwak913 Jan 19, 2025
21caf5f
refactor: need decorated
litwak913 Jan 19, 2025
b01d593
refactor: window system string config
litwak913 Jan 19, 2025
6f967ff
fix: default json
litwak913 Jan 19, 2025
d3676d4
Merge pull request #97 from litwak913/window-system
isHarryh Jan 19, 2025
d7a587c
fix: array cast
litwak913 Jan 19, 2025
71b92fe
refactor: rename asset to model
isHarryh Jan 20, 2025
a43d795
feat: search with pinyin
isHarryh Jan 20, 2025
ce3051d
feat: search with traditional chinese
isHarryh Jan 20, 2025
b1ac694
fix: typo
isHarryh Jan 20, 2025
90f0660
feat: search with skin group name
isHarryh Jan 20, 2025
9d945ca
Merge pull request #99 from isHarryh/v3.x-search
isHarryh Jan 20, 2025
7538a93
Merge pull request #100 from litwak913/window-system
isHarryh Jan 20, 2025
1c80ac4
Merge branch 'v3.x' into v4.x-cross
isHarryh Jan 20, 2025
1798292
build: switch to kotlin
litwak913 Jan 10, 2025
0ce47b1
feat: GNOME Mutter support
litwak913 Sep 16, 2024
9e0dd3f
feat: X11 support
litwak913 Sep 16, 2024
3506f7e
feat: KWin support
litwak913 Sep 16, 2024
c753e5a
refactor: dbus interface and build
litwak913 Sep 17, 2024
c1a9f30
fix: glfw libdecor hang
litwak913 Sep 16, 2024
79ebd3e
fix: cross-platform tray icon
litwak913 Sep 22, 2024
70a1028
fix: cross-platform openurl and dir
litwak913 Sep 25, 2024
ff74471
chore: add dbus-java credit
litwak913 Jan 20, 2025
a2d5b2d
Revert "build: switch to kotlin"
litwak913 Jan 20, 2025
df8e135
chore: style
litwak913 Jan 21, 2025
7f398de
Merge pull request #101 from litwak913/v4.x-cross
isHarryh Jan 21, 2025
e06dc6d
feat: render boxshadow
isHarryh Jan 21, 2025
33af383
perf: optimize shader
isHarryh Jan 21, 2025
c95768a
refactor: offset bind to animtype
isHarryh Jan 21, 2025
c277dae
fix: robust offset and typo
isHarryh Jan 21, 2025
3bc01b9
docs: update credits
isHarryh Jan 21, 2025
36d4301
docs: update changelog
isHarryh Jan 22, 2025
be0c718
docs: update readme
isHarryh Jan 22, 2025
3062845
fix: detect desktop
litwak913 Jan 21, 2025
533583d
fix: xsync and property
litwak913 Jan 21, 2025
1908571
feat: Quartz support
litwak913 Jan 21, 2025
0613b7b
feat: async glfw and swing on macOS
litwak913 Jan 21, 2025
49b4a14
chore: mac icon style
litwak913 Jan 1, 2025
2ca7a43
chore: style
litwak913 Jan 21, 2025
8e1e521
fix: x11 all window
litwak913 Jan 22, 2025
404f7c8
feat: Quartz peer window
litwak913 Jan 22, 2025
c2e2150
Merge remote-tracking branch 'origin/v3.x' into v4.x-cross
isHarryh Jan 23, 2025
2131b9c
Merge remote-tracking branch 'litwak913/v4.x-cross' into v4.x-cross
isHarryh Jan 23, 2025
dc60cf6
feat: macOS style titlebar
litwak913 Jan 23, 2025
fad5d8f
refactor: Modified database foreign key associations so that database…
half-nothing Jan 26, 2025
580c84a
feat: The RepositoryConfig class is added to define a unified configu…
half-nothing Jan 26, 2025
4b217f7
chore: added chinese pinyin library
half-nothing Jan 26, 2025
2993bbc
feat: The external query interface of the database has been prelimina…
half-nothing Jan 26, 2025
bdaddf8
feat: envcheck
litwak913 Dec 29, 2024
c66c552
feat(envcheck): registry check
litwak913 Jan 26, 2025
5ff88b1
feat(envcheck): nvapi setting
litwak913 Jan 28, 2025
eb913c7
feat: run check on first
litwak913 Jan 29, 2025
d4134ad
chore: style
litwak913 Jan 29, 2025
961b410
refactor: move startup to desktop
litwak913 Jan 29, 2025
a2ebc4c
docs: add jvm args
litwak913 Jan 29, 2025
eed0021
refactor: use command args to change titlebar
litwak913 Jan 29, 2025
70c51ba
refactor: ui-style string
litwak913 Jan 30, 2025
eff41ac
fix: ui-style string null
litwak913 Jan 30, 2025
1c452ca
Merge pull request #104 from litwak913/v4.x-cross
isHarryh Jan 30, 2025
150bfd2
chore: bump to v3.7
isHarryh Feb 8, 2025
1b3d05d
feat: delete temp files on exit
isHarryh Feb 8, 2025
08b1bdb
feat: always use pma render
isHarryh Feb 12, 2025
344713c
pref: remove shader side seaming effect
isHarryh Feb 12, 2025
c83888d
Merge branch 'v3.x' into v4.x-cross
isHarryh Feb 17, 2025
31a5761
feat: Complete the formatted query for the resource file
half-nothing Feb 18, 2025
59f3ed3
chore: configure junit5 unit tests
half-nothing Feb 18, 2025
2e660f5
test: add unit tests to the core class
half-nothing Feb 18, 2025
6173d24
build: Synchronize with the v3.0 branch dependencies and prepare for …
half-nothing Feb 18, 2025
bca74b9
Merge remote-tracking branch 'upstream/v3.x' into v4.x-vcs
half-nothing Feb 18, 2025
19c03c8
build: Synchronize with the v4.0-cross branch dependencies and prepar…
half-nothing Feb 18, 2025
9becded
Merge remote-tracking branch 'upstream/v4.x-cross' into v4.x-vcs
half-nothing Feb 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ gradle-*-bin/
out/
tmp*/
temp*/
test*/

# Exclude runtime files
/ArkPetsConfig.json
Expand Down
7 changes: 7 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# 更新日志 / CHANGELOG

## v3.6
| **新增** | |
|:----------------------------------|:------------------------------------------------------|
| [`#20`]<br>[`aebb7f7`] | 新增了对干员基建模型**躺下动作**的支持。<br>新增了可以开启或关闭躺下动作和基建特殊动作的行为选项。 |
| [`#88`]<br>[`#99`]<br>[`a43d795`] | 新增了依据**角色名称的汉语拼音**的全拼或首字母来搜索模型的功能。 |
| [`#99`]<br>[`ce3051d`] | 新增了中文简体与繁体互通搜索的功能。 |
| [`#99`]<br>[`90f0660`] | 新增了依据**时装品牌名称**来搜索模型的功能。 |
| [`e06dc6d`] | 新增了可以渲染桌宠**阴影**的功能,并可以自定义阴影的强度。 |

| **修复** | |
|:-----------------------|:------------------------------|
| [`c95768a`] | 修复了部分角色在进行坐下动作时,窗口上边界表现异常的问题。 |

| **优化** | |
|:-----------------------|:----------------------------------------------------|
| [`35d4d74`] | 优化了缓动函数设置的选项显示,并增加了相关说明。 |
| [`#99`]<br>[`a43d795`] | 优化了搜索模型时的搜索结果排序规则。 |
| [`c277dae`] | 优化了桌宠的渲染偏移(OffsetY)参数,使得某些额外内容得以正常显示(例如对角色脚底的高亮描边)。 |

## v3.5
| **新增** | |
|:--------------------------------------|:----------------------------------------|
| [`#86`]<br>[`e998e4a`]<br>[`7042699`] | 新增了**收藏模型**的功能,现在可以对模型进行收藏并在列表中单独显示它们。 |
| [`88ffa1e`] | 新增了启动器界面的**窗口圆角和窗口阴影**,使得启动器的外观更加现代。 |
| [`#90`]<br>[`8183242`]<br>[`a38e737`] | 新增了命令行选项 `--load-lib` 用于载入外部库。 |
| [`#93`]<br>[`16b34aa`] | 新增了命令行选项 `--enable-snapshot` 用于启用调试性截图。 |
| [`c36ec5e`]<br>[`f5c09bd`] | 新增了可以调节桌宠的动画交叉过渡时长等过渡设置的功能。 |
| [`97095c9`] | 新增了启动器模型页面的列表中“没有符合条件的模型”时的一个提示。 |

| **修复** | |
|:----------------------------------|:------------------------------------------|
| [`#91`]<br>[`#92`]<br>[`dadba6d`] | 修复了特定运行环境下由 Java Access Bridge 导致的软件崩溃问题。 |
| [`aeed07c`] | 修复了特定情况下因物理解算溢出而导致的桌宠异常浮空或位置卡死的问题。 |
| [`47798fe`] | 修复了个别敌方角色因预渲染检查未通过而无法启动的问题。 |

| **优化** | |
|:------------|:------------------------|
| [`1072550`] | 优化了缓动函数的代码逻辑。 |
| [`82a5cee`] | 优化了高亮描边的过渡方式,使之表现得更加自然。 |

## v3.4
| **新增** | |
|:-----------------------|:--------------------------------------|
Expand Down Expand Up @@ -399,6 +439,7 @@
[`5e15d00`]: https://github.com/isHarryh/Ark-Pets/commit/5e15d000bd77006da596696de2e41024fb4183d4

<!-- Links to v3.x References -->
[`#20`]: https://github.com/isHarryh/Ark-Pets/issues/20
[`#28`]: https://github.com/isHarryh/Ark-Pets/issues/28
[`#37`]: https://github.com/isHarryh/Ark-Pets/issues/37
[`#40`]: https://github.com/isHarryh/Ark-Pets/issues/40
Expand All @@ -417,7 +458,14 @@
[`#81`]: https://github.com/isHarryh/Ark-Pets/issues/81
[`#82`]: https://github.com/isHarryh/Ark-Pets/pull/82
[`#83`]: https://github.com/isHarryh/Ark-Pets/pull/83
[`#86`]: https://github.com/isHarryh/Ark-Pets/pull/86
[`#88`]: https://github.com/isHarryh/Ark-Pets/issues/88
[`#89`]: https://github.com/isHarryh/Ark-Pets/pull/89
[`#90`]: https://github.com/isHarryh/Ark-Pets/pull/90
[`#91`]: https://github.com/isHarryh/Ark-Pets/issues/91
[`#92`]: https://github.com/isHarryh/Ark-Pets/pull/92
[`#93`]: https://github.com/isHarryh/Ark-Pets/pull/93
[`#99`]:https://github.com/isHarryh/Ark-Pets/pull/99
[`3253706`]: https://github.com/isHarryh/Ark-Pets/commit/3253706fde859a316b3e08362dd57adb98c1df8c
[`7b2e856`]: https://github.com/isHarryh/Ark-Pets/commit/7b2e8562579ebabbb102b40122cf3130463f03bc
[`ff82a1e`]: https://github.com/isHarryh/Ark-Pets/commit/ff82a1e21ce396c345038b4cb340f10eeca89cf2
Expand Down Expand Up @@ -469,3 +517,25 @@
[`a7db4b0`]: https://github.com/isHarryh/Ark-Pets/commit/a7db4b0e9252e4d08ff1e6e9d4d8b8967ace36bb
[`71b525c`]: https://github.com/isHarryh/Ark-Pets/commit/71b525c77003175f05dc1805f19d038872846acf
[`0d2e6b6`]: https://github.com/isHarryh/Ark-Pets/commit/0d2e6b645717707a2c302ae844614c867fce74bc
[`e998e4a`]: https://github.com/isHarryh/Ark-Pets/commit/e998e4a374ab39424492ce9b1986f0eb35d6e568
[`7042699`]: https://github.com/isHarryh/Ark-Pets/commit/70426997992a969ae59bb05122d6ca2683d2186e
[`88ffa1e`]: https://github.com/isHarryh/Ark-Pets/commit/88ffa1eee50531da4427a4e14c55fa315a7e7743
[`8183242`]: https://github.com/isHarryh/Ark-Pets/commit/8183242e92cafd4fb3b8002f692fc84bb6f529db
[`a38e737`]: https://github.com/isHarryh/Ark-Pets/commit/a38e737b1911c24fe4ebef46f56c28e0c948e0c3
[`1072550`]: https://github.com/isHarryh/Ark-Pets/commit/10725500e19a86d902f192b9607cc3f7ef114e4a
[`16b34aa`]: https://github.com/isHarryh/Ark-Pets/commit/16b34aa38046199ff1c461e5d5f8f2760e311a95
[`dadba6d`]: https://github.com/isHarryh/Ark-Pets/commit/dadba6da2b1aad68e5937bb6bd739db58c97be56
[`aeed07c`]: https://github.com/isHarryh/Ark-Pets/commit/aeed07caebf11568cab09691dcfb8a2a7ad09ae2
[`c36ec5e`]: https://github.com/isHarryh/Ark-Pets/commit/c36ec5e8d65c42a3d07ae8f9957a29bea7d399f8
[`f5c09bd`]: https://github.com/isHarryh/Ark-Pets/commit/f5c09bdda535c75cdba9039d3d38f7cfba1da1df
[`97095c9`]: https://github.com/isHarryh/Ark-Pets/commit/97095c9f27505d556d7cacaafb2092e3766552c9
[`47798fe`]: https://github.com/isHarryh/Ark-Pets/commit/47798fecd17623a18d48c5b92b7246fd02e0b43a
[`82a5cee`]: https://github.com/isHarryh/Ark-Pets/commit/82a5ceedd48c83ee699a036d316f0e44dee39a77
[`aebb7f7`]: https://github.com/isHarryh/Ark-Pets/commit/aebb7f7ef035d7800f607ac43346a9af26c5caf9
[`35d4d74`]: https://github.com/isHarryh/Ark-Pets/commit/35d4d74f6b30140bd8957dcfb679166c3dd78523
[`a43d795`]: https://github.com/isHarryh/Ark-Pets/commit/a43d7956d2d4ec22418bf38639da38248bfe7d39
[`ce3051d`]: https://github.com/isHarryh/Ark-Pets/commit/ce3051d78707293a9aad7d6b30ef9fcb68c66519
[`90f0660`]: https://github.com/isHarryh/Ark-Pets/commit/90f066032122b39619466d8eb98233de44674d73
[`e06dc6d`]: https://github.com/isHarryh/Ark-Pets/commit/e06dc6db09c8d17a63fc85ebe47ba41b0cabf91b
[`c95768a`]: https://github.com/isHarryh/Ark-Pets/commit/c95768aa6200b4bf480519d5b467757277d1b122
[`c277dae`]: https://github.com/isHarryh/Ark-Pets/commit/c277dae858b1e27aeb38712d6e3d090420de3846
41 changes: 28 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
<h1> Ark-Pets </h1>
<img alt="ArkPets icon" width="64" src="https://raw.githubusercontent.com/isHarryh/Ark-Pets/v3.x/assets/icons/icon.png">
<p>
Arknights Desktop Pets | 明日方舟桌宠 <br>
<code><b> v3.5 </b></code>
Arknights Desktop Pets | 明日方舟桌宠 (ArkPets) <br>
<code><b> v3.6 </b></code>
</p>
<p>
<img alt="GitHub Top Language" src="https://img.shields.io/github/languages/top/isHarryh/Ark-Pets?label=Java">
<img alt="GitHub License" src="https://img.shields.io/github/license/isHarryh/Ark-Pets?label=License">
<img alt="Code Factor Grade" src="https://img.shields.io/codefactor/grade/github/isHarryh/Ark-Pets?label=CodeFactor">
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/isHarryh/Ark-Pets/build.yml?label=Build">
</p>
<sub>
Expand All @@ -29,17 +30,17 @@
2. 干员动态立绘(含时装);
3. 敌方战斗小人。
2. **启动器提供图形用户界面以便浏览模型和调整桌宠设置。** <details><summary>查看详情</summary>
1. 可以按名称搜索或按类别筛选以查找模型
1. 可以按名称、拼音、时装品牌搜索,或按类别筛选以查找模型
2. 可以从互联网中下载由社区维护的模型库;
3. 可以自定义桌宠的动作交互、部署位置和物理参数等行为设置;
4. 可以自定义桌宠的图像缩放、最大帧率和窗口边界等显示设置。
3. **支持模拟游戏内干员基建小人的行为。** <details><summary>查看详情</summary>
1. 能够执行行走和坐下的动作
2. 能够被鼠标交互以执行戳一戳动作
3. 拥有特殊基建动作的干员,有概率执行特殊基建动作
1. 支持行走、坐下和躺下的动作
2. 能够被鼠标交互以执行戳一戳或攻击动作
3. 拥有特殊基建动作的干员,有小概率触发这类动作
4. **支持模拟游戏内敌方小人的行为。** <details><summary>查看详情</summary>
1. 拥有行走动作的敌人,能够执行行走动作
2. 拥有攻击动作的敌人,能够被鼠标交互
1. 拥有行走动作的敌人能够行走
2. 拥有攻击动作的敌人能够被鼠标交互
5. **实现了模拟平面重力场** <details><summary>查看详情</summary>
1. 桌宠支持自由落体等物理现象;
2. 桌宠可以被拖拽到扩展显示屏上;
Expand Down Expand Up @@ -68,7 +69,8 @@

以下内容可能在遥远的将来被实现:

- 国际化
- 国际化与响应布局
- 支持按需下载资源
- 支持干员语音功能
- 全面更新依赖库的版本
- 支持透明模式等配置的记忆
Expand All @@ -81,9 +83,9 @@

## 使用方法 <sub>Usage</sub>

| **[目前最新版本](https://github.com/isHarryh/Ark-Pets/releases)** | **支持的操作系统** |
|:--------------------------------------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------:|
| ![GitHub Latest Release](https://img.shields.io/github/v/release/isHarryh/Ark-Pets?display_name=tag&label=Release&sort=semver&include_prereleases) | ![Windows](https://img.shields.io/badge/7%2B-blue?logo=Windows&label=Windows) |
| **目前最新版本** | **支持的操作系统** |
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------:|
| [![GitHub Latest Release](https://img.shields.io/github/v/release/isHarryh/Ark-Pets?display_name=tag&label=Release&sort=semver&include_prereleases)](https://github.com/isHarryh/Ark-Pets/releases) | ![Windows](https://img.shields.io/badge/7%2B-blue?logo=Windows&label=Windows) |

### 快速上手

Expand All @@ -99,10 +101,13 @@

### 其他特性

以下列出了一部分额外的功能,更多内容请在启动器中自行探索。

- **检查模型库更新** :我们的模型库不定期更新,如果您想体验新实装进游戏的模型,可以在 “模型库管理” 面板点击 “检查更新” 按钮。如果提示有更新,则可点击 “重新下载” 按钮来下载模型。
- **开机自启动** :进入启动器 “选项” 页面可以设置开机自启动,设置后下一次电脑开机会自动生成最后一次启动的桌宠。
- **透明模式** :为防止用户在游戏、观看视频等情景下误触到桌宠,特增加了此模式。在托盘菜单中打开 “透明模式”,即可屏蔽桌宠和鼠标的一切交互(点击、拖动操作都将穿透到下层窗口),并且桌宠会变得透明。
- **下边界距离** :桌宠在部分用户的电脑上无法正常检测任务栏位置(桌宠会沉入任务栏),此时您可以手动设置任务栏高度。进入启动器 “行为” 页面可以调整下边界距离,通常会将其设置为15的正整数倍。
- **高亮描边与阴影** :高亮描边效果旨在复现游戏中基建系统的角色选中特效,阴影效果则提供了更加立体的视觉体验。在启动器 “选项” 中禁用这两种渲染特效可以降低性能消耗。

### 高级用法

Expand All @@ -114,7 +119,7 @@
- 如果您想添加自定义的模型,[点击查看](docs/CustomModel.md)说明。
- 如果您想使用直播流软件捕捉桌宠窗口,可以在启动器 “选项” 页面禁用 “桌宠作为后台程序启动”。

由于需要调用 Win32 特有的 API,目前本程序不支持在其他操作系统运行
目前本程序不支持在其他操作系统运行。好消息是,对于 MacOS 和 Linux 的支持已处于开发阶段,敬请期待

## 关 于 <sub>About</sub>

Expand All @@ -134,6 +139,16 @@

- 另见 ~~很久没更新的~~ [开发者 Wiki](https://github.com/isHarryh/Ark-Pets/wiki)

### 友情链接

以下项目是 ArkPets 的关联或衍生项目:

- [isHarryh / Ark-Models](https://github.com/isHarryh/Ark-Models):明日方舟 Spine 模型库
- [litwak913 / Ark-Pets-Integration](https://github.com/litwak913/Ark-Pets-Integration):ArkPets 针对其他桌面系统的集成库
- [fuyufjh / ArkPets-Web](https://github.com/fuyufjh/ArkPets-Web):ArkPets 在网页渲染器上的独立实现
- [isHarryh / Ark-Unpacker](https://github.com/isHarryh/Ark-Unpacker):用于解包游戏资源的实用工具
- [Aloento / SuperSpineViewer](https://github.com/Aloento/SuperSpineViewer):用于查看 Spine 模型的实用工具

-----

<div align="center">
Expand Down
9 changes: 8 additions & 1 deletion assets/ArkPetsConfigDefault.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"behavior_ai_activation":8,
"behavior_allow_interact":true,
"behavior_allow_sit":true,
"behavior_allow_sleep":false,
"behavior_allow_special":true,
"behavior_allow_walk":true,
"behavior_do_peer_repulsion":true,
"canvas_color":"#00000000",
Expand All @@ -24,9 +26,14 @@
"physic_speed_limit_x":1000.0,
"physic_speed_limit_y":1000.0,
"physic_static_friction_acc":500.0,
"render_animation_mixture":0.3,
"render_outline":1,
"render_outline_color":"#FFFF00FF",
"render_outline_width":2.0,
"render_shadow_color":"#000000BB",
"transition_duration":0.3,
"transition_type":"EASE_OUT_CUBIC",
"window_style_toolwindow":true,
"window_style_topmost":true
"window_style_topmost":true,
"window_system":"AUTO"
}
21 changes: 21 additions & 0 deletions assets/UI/BehaviorModule.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<JFXCheckBox fx:id="configBehaviorAllowWalk" mnemonicParsing="false" text="允许行走"/>
<JFXCheckBox fx:id="configBehaviorAllowSit" mnemonicParsing="false" text="允许坐下"/>
</HBox>
<HBox>
<JFXCheckBox fx:id="configBehaviorAllowSleep" mnemonicParsing="false" text="允许躺下"/>
<JFXCheckBox fx:id="configBehaviorAllowSpecial" mnemonicParsing="false" text="允许特殊动作"/>
</HBox>
<HBox>
<Label text="动作活跃度"/>
<JFXSlider fx:id="configBehaviorAiActivation"/>
Expand Down Expand Up @@ -69,6 +73,23 @@
<Canvas fx:id="configDeployPosition" height="150.0" width="150.0"/>
</HBox>
<Separator/>
<Label styleClass="config-group-title" text="过渡"/>
<HBox>
<Label fx:id="configTransitionAnimationLabel" text="动画交叉过渡"/>
<JFXComboBox fx:id="configTransitionAnimation" prefWidth="120.0"/>
<JFXButton fx:id="configTransitionAnimationHelp"/>
</HBox>
<HBox>
<Label fx:id="configTransitionDurationLabel" text="常规属性过渡"/>
<JFXComboBox fx:id="configTransitionDuration" prefWidth="120.0"/>
<JFXButton fx:id="configTransitionDurationHelp"/>
</HBox>
<HBox>
<Label fx:id="configTransitionFunctionLabel" text="缓动函数"/>
<JFXComboBox fx:id="configTransitionFunction" prefWidth="120.0"/>
<JFXButton fx:id="configTransitionFunctionHelp"/>
</HBox>
<Separator/>
<Label styleClass="config-group-title" text="物理"/>
<HBox>
<Label text="重力加速度"/>
Expand Down
17 changes: 14 additions & 3 deletions assets/UI/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,6 @@ JFXSlider {
-fx-border-color: -theme-color;
}

.config-field {}

.config-field JFXComboBox {
-fx-font-size: 12px;
-fx-text-fill: -text-normal;
Expand Down Expand Up @@ -477,7 +475,7 @@ ProgressBar:indeterminate>.bar {

#Loading-failure-tip,
#Loading-waiting-tip {
-fx-background-color: #F4F4F4D0;
-fx-background-color: #F4F4F4;
}

#Loading-failure-tip-text {
Expand All @@ -493,6 +491,10 @@ ProgressBar:indeterminate>.bar {
-fx-font-weight: bold;
}

#Loading-empty-tip>* {
-fx-fill: dimgray;
}

#Title-bar {
-fx-background-color: -theme-color;
-fx-background-radius: 8px 8px 0 0;
Expand Down Expand Up @@ -521,6 +523,15 @@ ProgressBar:indeterminate>.bar {
-fx-background-color: #305890;
}

#Title-minimize-btn-mac,
#Title-close-btn-mac {
-fx-fill: inherit;
}

#Title-close-btn-mac {
-fx-background-radius: 8px 0 0 0;
}

#Title-close-btn:hover,
#Title-close-btn:focused {
-fx-background-color: #CC2211;
Expand Down
Loading
Loading