Skip to content

Commit ccec638

Browse files
v1.8.1 - fix to pixelTex
1 parent 39d402f commit ccec638

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>API</AssemblyName>
66
<Description>An API for inscryption</Description>
7-
<Version>1.7.2.0</Version>
7+
<Version>1.8.1.0</Version>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<LangVersion>9.0</LangVersion>
1010
</PropertyGroup>

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# Changelog
2+
## v1.8.1
3+
- Fix pixelTex dimensions.
4+
5+
## v1.8
6+
### Not compatible with v1.7.2
7+
- Changes to using TypeMapper.
8+
29
## v1.7.2
310
- Fixed error when not adding any abilities.
411

Plugin.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class Plugin : BaseUnityPlugin
1515
{
1616
private const string PluginGuid = "cyantist.inscryption.api";
1717
private const string PluginName = "API";
18-
private const string PluginVersion = "1.7.2.0";
18+
private const string PluginVersion = "1.8.1.0";
1919

2020
internal static ManualLogSource Log;
2121

@@ -76,7 +76,7 @@ public CustomCard(string name)
7676
public CardInfo AdjustCard(CardInfo card)
7777
{
7878
TypeMapper<CustomCard, CardInfo>.Convert(this, card);
79-
79+
8080
if (this.tex is not null)
8181
{
8282
tex.name = "portrait_" + name;
@@ -95,7 +95,7 @@ public CardInfo AdjustCard(CardInfo card)
9595
{
9696
pixelTex.name = "portrait_" + name;
9797
pixelTex.filterMode = FilterMode.Point;
98-
card.pixelPortrait = Sprite.Create(pixelTex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
98+
card.pixelPortrait = Sprite.Create(pixelTex, new Rect(0.0f, 0.0f, 41.0f, 28.0f), new Vector2(0.5f, 0.5f));
9999
card.pixelPortrait.name = "portrait_" + name;
100100
}
101101
Plugin.Log.LogInfo($"Adjusted default card {name}!");
@@ -201,7 +201,7 @@ public static void Add(string name, List<CardMetaCategory> metaCategories, CardC
201201
{
202202
pixelTex.name = "portrait_" + name;
203203
pixelTex.filterMode = FilterMode.Point;
204-
card.pixelPortrait = Sprite.Create(pixelTex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
204+
card.pixelPortrait = Sprite.Create(pixelTex, new Rect(0.0f, 0.0f, 41.0f, 28.0f), new Vector2(0.5f, 0.5f));
205205
card.pixelPortrait.name = "portrait_" + name;
206206
}
207207
if (animatedPortrait is not null)

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "API",
3-
"version_number": "1.7.2",
3+
"version_number": "1.8.1",
44
"website_url": "https://github.com/ScottWilson0903/InscryptionAPI",
55
"description": "This plugin is a BepInEx plugin made for Inscryption as an API. It can currently create custom cards and abilities and inject them into the data pool, or modify existing cards in the card pool.",
66
"dependencies": [

0 commit comments

Comments
 (0)