Skip to content

Commit

Permalink
Merge pull request #93 from InfernoDragon0/main
Browse files Browse the repository at this point in the history
temp fix for Custom Tarot Sprite
  • Loading branch information
xhayper authored Aug 16, 2024
2 parents 87f6561 + 94b6b21 commit a70e240
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions COTL_API/CustomSkins/CustomSkinManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,8 @@ private static Skin CreateTarotSkin(Skin template, string skinName)
customAttachment.Name = skinName;
customAttachment.SetRegion(atlasRegion, false);
atlasRegion.name = skinName + "/" + atlasRegion.name;
customAttachment.HullLength = 4;
customAttachment.Triangles = [1, 2, 3, 1, 3, 0];
/*customAttachment.HullLength = 4;
customAttachment.Triangles = [1, 2, 3, 1, 3, 0];*/

float pw = atlasRegion.page.width;
float ph = atlasRegion.page.height;
Expand All @@ -684,8 +684,8 @@ private static Skin CreateTarotSkin(Skin template, string skinName)
[
(x + w) / pw, y / ph, (x + w) / pw, (y + h) / ph, x / pw, (y + h) / ph, x / pw, y / ph
];
customAttachment.Vertices = [minY, minX, 1, maxY, minX, 1, maxY, maxX, 1, minY, maxX, 1];
customAttachment.WorldVerticesLength = 8;
/*customAttachment.Vertices = [minY, minX, 1, maxY, minX, 1, maxY, maxX, 1, minY, maxX, 1];
customAttachment.WorldVerticesLength = 8;*/
customAttachment.UpdateUVs();

skin.SetAttachment(front.SlotIndex, front.Name, customAttachment);
Expand Down

0 comments on commit a70e240

Please sign in to comment.