Interface ITextureSubstitutionProvider
Service that grants you the ability to replace texture data that is to be loaded by Dalamud.
Assembly: Dalamud.dll​
Declaration
public interface ITextureSubstitutionProvider : IDalamudService
Methods​
GetSubstitutedPath(string)​
Get a path that may be substituted by a subscriber to ITextureSubstitutionProvider.
Declaration
string GetSubstitutedPath(string originalPath)
Returns​
System.String: The original path, if no subscriber is registered or there is no substitution, or the substituted path.
Parameters​
| Type | Name | Description |
|---|---|---|
System.String | originalPath | The original path to substitute. |
InvalidatePaths(IEnumerable<string>)​
Notify Dalamud about substitution status for files at the specified VFS paths changing. You should call this with all paths that were either previously substituted and are no longer, and paths that are newly substituted.
Declaration
void InvalidatePaths(IEnumerable<string> paths)
Parameters​
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<System.String> | paths | The paths with a changed substitution status. |
Remarks​
This function will not invalidate the copies of the textures loaded from plugins.
Events​
InterceptTexDataLoad​
Event that will be called once Dalamud wants to load texture data.
Declaration
event ITextureSubstitutionProvider.TextureDataInterceptorDelegate? InterceptTexDataLoad
Event Type​
Dalamud.Plugin.Services.ITextureSubstitutionProvider.TextureDataInterceptorDelegate