mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 06:47:44 +01:00
more
This commit is contained in:
parent
8c7771bf7d
commit
20717cce3d
13 changed files with 213 additions and 199 deletions
|
|
@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
|||
using Dalamud.Game.Text;
|
||||
using Dalamud.Interface.ImGuiNotification;
|
||||
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||
using Dalamud.Interface.Textures.Internal;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Storage.Assets;
|
||||
using Dalamud.Utility;
|
||||
|
|
@ -230,12 +231,14 @@ internal class ImGuiWidget : IDataWindowWidget
|
|||
break;
|
||||
case 7:
|
||||
n.SetIconTexture(
|
||||
DisposeLoggingTextureWrap.Wrap(tm.GetTextureFromGame(this.notificationTemplate.IconText)),
|
||||
DisposeLoggingTextureWrap.Wrap(
|
||||
tm.Shared.GetFromGame(this.notificationTemplate.IconText).GetWrapOrDefault()),
|
||||
this.notificationTemplate.LeaveTexturesOpen);
|
||||
break;
|
||||
case 8:
|
||||
n.SetIconTexture(
|
||||
DisposeLoggingTextureWrap.Wrap(tm.GetTextureFromFile(new(this.notificationTemplate.IconText))),
|
||||
DisposeLoggingTextureWrap.Wrap(
|
||||
tm.Shared.GetFromFile(this.notificationTemplate.IconText).GetWrapOrDefault()),
|
||||
this.notificationTemplate.LeaveTexturesOpen);
|
||||
break;
|
||||
}
|
||||
|
|
@ -306,7 +309,8 @@ internal class ImGuiWidget : IDataWindowWidget
|
|||
foreach (var n in this.notifications)
|
||||
{
|
||||
var i = (uint)Random.Shared.NextInt64(0, 200000);
|
||||
n.IconTexture = DisposeLoggingTextureWrap.Wrap(Service<TextureManager>.Get().GetIcon(i));
|
||||
n.IconTexture = DisposeLoggingTextureWrap.Wrap(
|
||||
Service<TextureManager>.Get().Shared.GetFromGameIcon(new(i)).GetWrapOrDefault());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue