User Tools

Site Tools


mod-management-functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mod-management-functions [2022/10/07 11:18] – created - external edit 127.0.0.1mod-management-functions [2025/04/30 19:07] (current) – [overrideTexture] polymorphgames
Line 276: Line 276:
 Overrides an existing core texture with another one Overrides an existing core texture with another one
  
-''void **myMod:overrideTexture**(//oldTexturePath//, //newModTexturePath//, //blendMode//)''+''void **myMod:overrideTexture**(//oldTexturePath//, //newTexturePath//, //blendMode//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
-| //''oldTexturePath''// | ''string'' | the path to the old core game texture | +| //''oldTexturePath''// | ''string'' | the path to the old core game texture
-| //''newModTexturePath''// | ''string'' | the path to the new mod texture | +| //''newTexturePath''// | ''string'' | the path to the texture to use as replacement.\\ Can be a texture from the mod, or the name of a core game texture
-| //''blendMode''// | ''string'' | an option on how the new texture is used. Can be either ''REPLACE'' (to fully replace the old texture with the new one) or ''ALPHA_BLEND'' (to draw the new texture "on top" of the old one|+| //''blendMode''// | ''string''<WRAP> 
 +an option on how the new texture is used. Can be
 +  * ''REPLACE''fully replace the old texture with the new one
 +  * ''ALPHA_BLEND''draw the new texture "on top" of the old one
 +  * ''ADDITIVE'': blend the new texture "on top" of the old one with additive blending. 
 +  * ''SUBTRACTIVE'': blend the new texture "on top" of the old one with subtractive blending. 
 +</WRAP> |
  
mod-management-functions.1665155907.txt.gz · Last modified: 2022/10/07 11:18 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki