Skip to main content

Interface ITextureSubstitutionProvider

Service that grants you the ability to replace texture data that is to be loaded by Dalamud.

Assembly: Dalamud.dll
View Source
Declaration
public interface ITextureSubstitutionProvider

Methods

GetSubstitutedPath(string)

Get a path that may be substituted by a subscriber to ITextureSubstitutionProvider.

View Source
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
TypeNameDescription
System.StringoriginalPathThe 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.

View Source
Declaration
void InvalidatePaths(IEnumerable<string> paths)
Parameters
TypeNameDescription
System.Collections.Generic.IEnumerable<System.String>pathsThe paths with a changed substitution status.

Events

InterceptTexDataLoad

Event that will be called once Dalamud wants to load texture data.

View Source
Declaration
event ITextureSubstitutionProvider.TextureDataInterceptorDelegate? InterceptTexDataLoad
Event Type

Dalamud.Plugin.Services.ITextureSubstitutionProvider.TextureDataInterceptorDelegate