Skip to content

Commit 900e623

Browse files
v1.6 - reduced blur on portraits
1 parent 00536ea commit 900e623

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
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.5.2.0</Version>
7+
<Version>1.6.0.0</Version>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<LangVersion>9.0</LangVersion>
1010
</PropertyGroup>

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# Changelog
2+
## v1.6
3+
- Changed textures to point filter to reduce blur.
4+
25
## v1.5.2
3-
- Enabled fix for evolveParams and some other disabled options
6+
- Enabled fix for evolveParams and some other disabled options.
47

58
## v1.5.1
6-
- Fix to accessing private instance for regions
9+
- Fix to accessing private instance for regions.
710

811
## v1.5
912
### Not compatible with v1.4
10-
- Changed all references to API including guid
13+
- Changed all references to API including guid.
1114

1215
## v1.4
1316
- Set up support for customising and adding regions.
@@ -16,10 +19,10 @@
1619
- Set up project to work as a library for other plugins to use.
1720

1821
## v1.2.1.1
19-
- Fixed previous patch
22+
- Fixed previous patch.
2023

2124
## v1.2.1
22-
- Fixed cards not being inserted into the card pool on chapter select
25+
- Fixed cards not being inserted into the card pool on chapter select.
2326

2427
## v1.2
2528
### Not compatible with v1.1

Plugin.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Plugin : BaseUnityPlugin
1414
{
1515
private const string PluginGuid = "cyantist.inscryption.api";
1616
private const string PluginName = "API";
17-
private const string PluginVersion = "1.5.2.0";
17+
private const string PluginVersion = "1.6.0.0";
1818

1919
internal static ManualLogSource Log;
2020

@@ -210,12 +210,14 @@ public CardInfo AdjustCard(CardInfo card)
210210
if (this.tex is not null)
211211
{
212212
tex.name = "portrait_" + name;
213+
tex.filterMode = FilterMode.Point;
213214
card.portraitTex = Sprite.Create(tex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
214215
card.portraitTex.name = "portrait_" + name;
215216
}
216217
if (this.altTex is not null)
217218
{
218219
altTex.name = "portrait_" + name;
220+
altTex.filterMode = FilterMode.Point;
219221
card.alternatePortrait = Sprite.Create(altTex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
220222
card.alternatePortrait.name = "portrait_" + name;
221223
}
@@ -226,6 +228,7 @@ public CardInfo AdjustCard(CardInfo card)
226228
if (this.pixelTex is not null)
227229
{
228230
pixelTex.name = "portrait_" + name;
231+
pixelTex.filterMode = FilterMode.Point;
229232
card.pixelPortrait = Sprite.Create(pixelTex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
230233
card.pixelPortrait.name = "portrait_" + name;
231234
}
@@ -321,12 +324,14 @@ public NewCard(string name, List<CardMetaCategory> metaCategories, CardComplexit
321324
if (tex is not null)
322325
{
323326
tex.name = "portrait_" + name;
327+
tex.filterMode = FilterMode.Point;
324328
card.portraitTex = Sprite.Create(tex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
325329
card.portraitTex.name = "portrait_" + name;
326330
}
327331
if (altTex is not null)
328332
{
329333
altTex.name = "portrait_" + name;
334+
altTex.filterMode = FilterMode.Point;
330335
card.alternatePortrait = Sprite.Create(altTex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
331336
card.alternatePortrait.name = "portrait_" + name;
332337
}
@@ -337,6 +342,7 @@ public NewCard(string name, List<CardMetaCategory> metaCategories, CardComplexit
337342
if (pixelTex is not null)
338343
{
339344
pixelTex.name = "portrait_" + name;
345+
pixelTex.filterMode = FilterMode.Point;
340346
card.pixelPortrait = Sprite.Create(pixelTex, new Rect(0.0f, 0.0f, 114.0f, 94.0f), new Vector2(0.5f, 0.5f));
341347
card.pixelPortrait.name = "portrait_" + name;
342348
}

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.5.2",
3+
"version_number": "1.6.0",
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 inject them into the card pool, or modify existing cards in the card pool.",
66
"dependencies": [

0 commit comments

Comments
 (0)