STS2.Live2D
0.6.1
dotnet add package STS2.Live2D --version 0.6.1
NuGet\Install-Package STS2.Live2D -Version 0.6.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="STS2.Live2D" Version="0.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="STS2.Live2D" Version="0.6.1" />
<PackageReference Include="STS2.Live2D" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add STS2.Live2D --version 0.6.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: STS2.Live2D, 0.6.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package STS2.Live2D@0.6.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=STS2.Live2D&version=0.6.1
#tool nuget:?package=STS2.Live2D&version=0.6.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
STS2 Live2D
《杀戮尖塔 2》的 Live2D 运行时 Mod,同时为其他 Mod 提供稳定的模型控制 API。
运行时 Mod 版本:0.6.1;公共 API 版本:9。
能力
- 导入和管理 Live2D Cubism 模型。
- 分别配置主菜单与游戏内的位置、大小、旋转、透明度和显示状态。
- 播放 Motion、Expression,绑定快捷键并控制 Parameter 与 Part。
- 支持混合模式、颜色滤镜,以及矩形、椭圆和圆角矩形画布蒙版。
- 提供滑条与数字同步输入、颜色选择器和实时模型/蒙版画布预览。
- 中性渲染直接使用模型原始分辨率;需要合成效果时按显示尺寸动态分配高分辨率画布。
- 通过 NuGet 或
ProjectReference为其他 Mod 提供编译期 API。 - 将其他 Mod 自带的
.live2dpack注册到统一模型库。
文档
本地启动文档站:
cd docs
npm install
npm run dev
最小引用
<PackageReference Include="STS2.Live2D" Version="0.6.1" />
NuGet 提供编译期引用程序集。使用者在 Mod 清单中声明 Live2D 运行时依赖;完整示例见
Mod 接入文档。
构建
构建会从 Steam 自动发现游戏目录。若游戏位于无法自动识别的库,可设置 STS2_DIR
环境变量,或在命令行直接传入 Sts2Dir:
正式 Mod 产物由 Godot 导出资源 PCK,再由 dotnet publish 收集程序集、manifest、PCK 和 Cubism 原生文件:
$Godot = "D:\program\Godot\Godot_v4.5.1-stable_mono_win64_console.exe"
$env:STS2_DIR = "D:\SteamLibrary\steamapps\common\Slay the Spire 2"
& $Godot --headless --editor --path $PWD --quit
& $Godot --headless --path $PWD --export-pack Live2D "$PWD\Live2D.pck"
dotnet publish .\Live2D.csproj -c Release -o .\artifacts\Live2D -p:BundleMod=true
将同一次 dotnet publish 生成的 artifacts/Live2D 整个目录复制到游戏的 mods/Live2D。
dotnet build 用于编译检查,dotnet publish 生成完整部署产物。
dotnet build .\Live2D.csproj -c Release -t:RefreshNuGetReference
dotnet pack .\NuGet\STS2.Live2D.Package.csproj -c Release -o .\artifacts
LICENSE
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- GodotSharp (>= 4.5.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.