Skip to content

Commit

Permalink
Merge pull request #13 from zbee/localImage
Browse files Browse the repository at this point in the history
[Core] Use local image
  • Loading branch information
Taurenkey authored Sep 29, 2024
2 parents 5cb6716 + c57078d commit c555c45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion XIVSlothCombo/Window/ConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using ImGuiNET;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using XIVSlothCombo.Attributes;
Expand Down Expand Up @@ -110,7 +111,8 @@ public override void Draw()

using (var leftChild = ImRaii.Child($"###SlothLeftSide", regionSize with { Y = topLeftSideHeight }, false, ImGuiWindowFlags.NoDecoration))
{
if (ThreadLoadImageHandler.TryGetTextureWrap(@"https://github.com/Taurenkey/XIVSlothCombo/blob/main/res/plugin/xivslothcombo.png?raw=true", out var logo))
var imagePath = Path.Combine(Svc.PluginInterface.AssemblyLocation.Directory?.FullName!, "images\\wrathcombo.png");
if (ThreadLoadImageHandler.TryGetTextureWrap(imagePath ?? "", out var logo))
{
ImGuiEx.LineCentered("###SlothLogo", () =>
{
Expand Down
2 changes: 1 addition & 1 deletion XIVSlothCombo/XIVSlothCombo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</PropertyGroup>

<ItemGroup>
<Content Include="..\res\plugin\xivslothcombo.png" Link="images\xivslothcombo.png" CopyToOutputDirectory="PreserveNewest" Visible="false" />
<Content Include="..\res\plugin\wrathcombo.png" Link="images\wrathcombo.png" CopyToOutputDirectory="PreserveNewest" Visible="false" />
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand Down
Binary file added res/plugin/wrathcombo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/plugin/xivslothcombo.png
Binary file not shown.

0 comments on commit c555c45

Please sign in to comment.