Skip to content

Commit

Permalink
Merge branch 'v2.x' into v3.x
Browse files Browse the repository at this point in the history
# Conflicts:
#	assets/UI/Homepage.fxml
#	build.gradle
#	core/src/cn/harryh/arkpets/Const.java
#	docs/scripts/ExePacking.iss
  • Loading branch information
isHarryh committed Jan 28, 2024
2 parents bd3d776 + d18c124 commit 7a64f88
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 33 deletions.
13 changes: 6 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# 更新日志 / CHANGELOG

***目前最新可用版本:***
[<img alt="GitHub latest release" src="https://img.shields.io/github/v/release/isHarryh/Ark-Pets?display_name=tag&label=Version&sort=semver&include_prereleases">](https://github.com/isHarryh/Ark-Pets/releases)

## v2.4
| **新增** | |
|:------------|:----------------------------------------------------|
Expand All @@ -24,9 +21,10 @@
| [`f6139c3`] | 重构了**模型资源**的代码逻辑。 |
| [`#47`]<br>[`7db99c3`] | 优化了 Windows 安装程序的默认安装目录和在控制面板卸载页面中的表现。 |

| **补丁** | |
|:------------------------|:-----------------------|
| `v2.4.1`<br>[`f2683f9`] | 修复了首次启动桌宠后的提示弹窗未生效的问题。 |
| **补丁** | |
|:------------------------|:--------------------------------------------|
| `v2.4.1`<br>[`f2683f9`] | 修复了首次启动桌宠后的提示弹窗未生效的问题。 |
| `v2.4.2`<br>[`5e15d00`] | 修复了渲染《明日方舟》2.1.41 及以后的新模型时 Alpha 图层表现异常的问题。 |

## v2.3
| **新增** | |
Expand Down Expand Up @@ -304,4 +302,5 @@
[`7db99c3`]: https://github.com/isHarryh/Ark-Pets/commit/7db99c32f44d86ff23b9857fec21e5e024f8a9b8
[`a5c7b9a`]: https://github.com/isHarryh/Ark-Pets/commit/a5c7b9a99f4fd79d4f92497a7a855c71ba112dcb
[`727a34e`]: https://github.com/isHarryh/Ark-Pets/commit/727a34eed5d1a41ee3e6f153726f2bcf92a28958
[`f2683f9`]: https://github.com/isHarryh/Ark-Pets/commit/f2683f9d40bfb09fdacee719df9a001f55fa9d8f
[`f2683f9`]: https://github.com/isHarryh/Ark-Pets/commit/f2683f9d40bfb09fdacee719df9a001f55fa9d8f
[`5e15d00`]: https://github.com/isHarryh/Ark-Pets/commit/5e15d000bd77006da596696de2e41024fb4183d4
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,21 @@

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

***目前最新可用版本:***
[<img alt="GitHub latest release" src="https://img.shields.io/github/v/release/isHarryh/Ark-Pets?display_name=tag&label=Version&sort=semver&include_prereleases">](https://github.com/isHarryh/Ark-Pets/releases)
| **[目前最新版本](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 7+](https://img.shields.io/badge/7%2B-blue?logo=Windows&label=Windows) |

### 快速上手

1.[**前往此页面**](https://github.com/isHarryh/Ark-Pets/releases)下载最新的 **ArkPets-Setup.exe** 安装包。
2. 下载完成后,请运行所下载的安装包以进行软件的安装。
3. 安装完成后,请通过桌面快捷方式等途径,打开 ArkPets 启动器。
4. 打开启动器后,首次使用需要 **下载模型文件** 。请进入启动器“选项”页面,在“模型下载”处点击“全部下载”。
5. 最后,进入启动器“模型”页面即可检索并选中想要作为桌宠启动的角色,然后点击左下角“启动”按钮即可。
2. 运行安装包并进行软件的安装。安装完成后,打开 ArkPets 启动器。
3. 首次使用时需要**下载模型文件**。请进入启动器 “选项” 页面,在模型下载处点击 “全部下载” 按钮。
4. 进入启动器 “模型” 页面即可检索并选中想要作为桌宠启动的角色,最后点击左下角 “启动” 按钮即可。

> 提示:
> - 本程序当前只支持在`Windows`系统上运行
> - 如需更新软件到 v2.x 的更高版本,无需预先手动卸载,直接运行安装包即可
> - 如需关闭已启动的桌宠,请右键点击系统托盘中的 ArkPets 图标,然后选择“退出”
> - 如需关闭已启动的桌宠,请右键单击桌宠或系统托盘中的 ArkPets 图标,然后选择 “退出”
> - 若无法在软件内下载模型,可以访问 [ArkModels 模型仓库](https://github.com/isHarryh/Ark-Models)页面。手动下载模型压缩包后,在 “选项” 页面点击 “导入压缩包” 按钮后导入即可
> - 如需更新软件到 v2.x 的更高版本,无需预先手动卸载,直接运行新版安装包即可
### 额外说明

Expand Down Expand Up @@ -121,7 +121,7 @@

### 许可证

本项目基于**GPL3协议**。任何人都可以自由地使用和修改项目内的源代码,前提是要在源代码或版权声明中保留作者说明和原有协议,且使用相同的许可证进行开源。
本项目基于 **GPL3协议**。任何人都可以自由地使用和修改项目内的源代码,前提是要在源代码或版权声明中保留作者说明和原有协议,且使用相同的许可证进行开源。

### 参与贡献

Expand Down
Empty file added assets/UI/Homepage.fxml
Empty file.
23 changes: 12 additions & 11 deletions assets/UI/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

/* Drop shadow for Nodes */
.shadowed {
-fx-effect: dropshadow(gaussian, #00000040, 10, 0.2, 0, 1);
/* Note: dropshadow(type, color, radius, spread, x, y) */
-fx-effect: dropshadow(gaussian, #00000040, 10, 0.1, 0, 0.5);
}

/* Fluorescent strokes for Shapes */
Expand Down Expand Up @@ -125,7 +126,7 @@ JFXButton {
-fx-border-style: solid;
}

.menu-btn-active, .menu-btn-active:hover, .menu-btn-active:focused {
.menu-btn-active {
/* Active */
-fx-text-fill: #FFFFFF;
-fx-background-color: #204880;
Expand All @@ -136,7 +137,7 @@ JFXButton {
-fx-fill: #204880;
}

.menu-btn-active SVGPath, .menu-btn-active:hover SVGPath, .menu-btn-active:focused SVGPath {
.menu-btn-active SVGPath {
/* Hover & Active */
-fx-fill: #FFFFFF;
}
Expand Down Expand Up @@ -247,27 +248,27 @@ JFXButton {
-fx-text-fill: #606060;
}

.Info-primary {
.info-primary {
-fx-font-size: 16px;
-fx-text-fill: #202020;
-fx-font-weight: bold;
-fx-label-padding: 4px 2px 4px 2px;
}

.Info-secondary {
.info-secondary {
-fx-font-size: 12px;
-fx-font-weight: normal;
-fx-text-fill: #808080;
-fx-label-padding: 2px;
}

.Info-tag {
.info-tag {
-fx-font-size: 10px;
-fx-background-radius: 6px;
-fx-label-padding: 2px 4px 2px 4px;
}

.Info-tag-theme {
.info-tag-theme {
-fx-text-fill: #FFFFFF;
-fx-background-color: #4D7999;
}
Expand Down Expand Up @@ -467,11 +468,11 @@ ProgressBar > .bar, ProgressBar:indeterminate > .bar{
-fx-padding: 0;
}

.scroll-pane:focused, .scroll-pane .corner {
-fx-background-insets: 0;
}

.scroll-v {
-fx-hbar-policy: never;
-fx-vbar-policy: as-needed;
}

.scroll-pane:focused, .scroll-pane .corner {
-fx-background-insets: 0;
}
4 changes: 3 additions & 1 deletion core/src/cn/harryh/arkpets/ArkChar.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public ArkChar(String assetLocation, AssetItem.AssetAccessor assetAccessor, floa
batch = new TwoColorPolygonBatch();
fbo = new FrameBuffer(Format.RGBA8888, canvasMaxSize, canvasMaxSize, false);
renderer = new SkeletonRenderer();
renderer.setPremultipliedAlpha(true);
/* Pre-multiplied alpha shouldn't be applied to models released in Arknights 2.1.41 or later,
otherwise you may get a corrupted rendering result. */
renderer.setPremultipliedAlpha(false);
// 2.Geometry setup
position = new TransitionVector3(TernaryFunction.LINEAR, linearEasingDuration);
offsetY = new TransitionFloat(TernaryFunction.LINEAR, linearEasingDuration);
Expand Down
8 changes: 4 additions & 4 deletions core/src/cn/harryh/arkpets/assets/AssetItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ public interface PropertyExtractor<T> extends Function<AssetItem, Set<T>> {
@Override
Set<T> apply(AssetItem assetItem);

PropertyExtractor<String> ASSET_ITEM_TYPE = item -> Set.of(item.type);
PropertyExtractor<String> ASSET_ITEM_STYLE = item -> Set.of(item.style);
PropertyExtractor<String> ASSET_ITEM_SKIN_GROUP_NAME = item -> Set.of(item.skinGroupName);
PropertyExtractor<String> ASSET_ITEM_SORT_TAGS = item -> new HashSet<>(item.sortTags.toJavaList(String.class));
PropertyExtractor<String> ASSET_ITEM_TYPE = item -> item.type == null ? Set.of() : Set.of(item.type);
PropertyExtractor<String> ASSET_ITEM_STYLE = item -> item.style == null ? Set.of() : Set.of(item.style);
PropertyExtractor<String> ASSET_ITEM_SKIN_GROUP_NAME = item -> item.skinGroupName == null ? Set.of() : Set.of(item.skinGroupName);
PropertyExtractor<String> ASSET_ITEM_SORT_TAGS = item -> new HashSet<>(item.sortTags.toJavaList(String.class));
}
}

0 comments on commit 7a64f88

Please sign in to comment.