refactor: use new ITextureProvider
This commit is contained in:
parent
fb7ddd06e8
commit
cfb78de616
@ -5,6 +5,7 @@ using Dalamud.Game.Command;
|
|||||||
using Dalamud.Game.Gui;
|
using Dalamud.Game.Gui;
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
using Dalamud.Plugin;
|
using Dalamud.Plugin;
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
using XivCommon;
|
using XivCommon;
|
||||||
|
|
||||||
namespace QuestMap {
|
namespace QuestMap {
|
||||||
@ -27,6 +28,9 @@ namespace QuestMap {
|
|||||||
[PluginService]
|
[PluginService]
|
||||||
internal GameGui GameGui { get; init; } = null!;
|
internal GameGui GameGui { get; init; } = null!;
|
||||||
|
|
||||||
|
[PluginService]
|
||||||
|
internal ITextureProvider TextureProvider { get; init; } = null!;
|
||||||
|
|
||||||
internal XivCommonBase Common { get; }
|
internal XivCommonBase Common { get; }
|
||||||
internal Configuration Config { get; }
|
internal Configuration Config { get; }
|
||||||
internal Quests Quests { get; }
|
internal Quests Quests { get; }
|
||||||
|
@ -403,7 +403,7 @@ namespace QuestMap {
|
|||||||
return wrap;
|
return wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
wrap = this.Plugin.DataManager.GetImGuiTextureIcon(this.Plugin.ClientState.ClientLanguage, id);
|
wrap = this.Plugin.TextureProvider.GetIcon(id);
|
||||||
if (wrap != null) {
|
if (wrap != null) {
|
||||||
this.Icons[id] = wrap;
|
this.Icons[id] = wrap;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user