Fix alpha
This commit is contained in:
@@ -21,14 +21,13 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include=".gitignore" />
|
<Content Include=".gitignore" />
|
||||||
<Content Include="changelog.md" />
|
<Content Include="changelog.md" />
|
||||||
<Content Include="Media\*.*">
|
<Content Include="Assets\*.*">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
<Visible>false</Visible>
|
<Visible>false</Visible>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Media\Icons\*.*">
|
<Content Include="Assets\Icons\*.*">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
<Visible>false</Visible>
|
<Visible>false</Visible>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Media\Textures\*.*" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 406 B |
@@ -31,7 +31,7 @@ public class ColorPreviewNode : ResNode
|
|||||||
{
|
{
|
||||||
IsVisible = true,
|
IsVisible = true,
|
||||||
TexturePath = GetAlphaTexturePath(),
|
TexturePath = GetAlphaTexturePath(),
|
||||||
WrapMode = WrapMode.Tile,
|
WrapMode = WrapMode.Stretch,
|
||||||
};
|
};
|
||||||
_alphaLayer.AttachNode(this);
|
_alphaLayer.AttachNode(this);
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ public class ColorPreviewNode : ResNode
|
|||||||
private static string GetAlphaTexturePath()
|
private static string GetAlphaTexturePath()
|
||||||
{
|
{
|
||||||
var baseDir = Services.PluginInterface.AssemblyLocation.Directory!.FullName;
|
var baseDir = Services.PluginInterface.AssemblyLocation.Directory!.FullName;
|
||||||
return Path.Combine(baseDir, "Media", "Textures", "alpha_background.png");
|
return Path.Combine(baseDir, "Assets", "alpha_background.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool disposing, bool isNativeDestructor)
|
protected override void Dispose(bool disposing, bool isNativeDestructor)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Globalization;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using AetherBags.Currency;
|
using AetherBags.Currency;
|
||||||
using FFXIVClientStructs.FFXIV.Component.GUI;
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||||
@@ -40,7 +41,7 @@ public class CurrencyNode : SimpleComponentNode
|
|||||||
_iconImageNode.IconId = value.IconId;
|
_iconImageNode.IconId = value.IconId;
|
||||||
_iconImageNode.Position = new Vector2(0f, 2f);
|
_iconImageNode.Position = new Vector2(0f, 2f);
|
||||||
|
|
||||||
_countNode.String = value.Amount.ToString("N0");
|
_countNode.String = value.Amount.ToString("N0", CultureInfo.InvariantCulture);
|
||||||
_countNode.Position = new Vector2(_iconImageNode.Bounds.Right + 2f, 0f);
|
_countNode.Position = new Vector2(_iconImageNode.Bounds.Right + 2f, 0f);
|
||||||
|
|
||||||
// Limit > Capped > Normal
|
// Limit > Capped > Normal
|
||||||
|
|||||||
Reference in New Issue
Block a user