Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function HTTPTextureReplacer:constructor(element, fileName, textureName, options, force)
- if not (fileName and fileName:len() > 0 and (fileName:find(HTTPTextureReplacer.BasePath) or fileName:find(HTTPTextureReplacer.ExternalPath))) then
- outputDebugString("Bad Argument @ HTTPTextureReplacer:constructor #2")
- outputDebugString(fileName)
- end
- TextureReplacer.constructor(self, element, textureName, options, force)
- self.m_PathType = 1
- if fileName:find(HTTPTextureReplacer.ExternalPath) then self.m_PathType = 2 end
- if self.m_PathType == 2 then
- self.m_FileName = fileName:gsub(HTTPTextureReplacer.ExternalPath, "")
- else
- self.m_FileName = fileName:gsub(HTTPTextureReplacer.BasePath, "")
- end
- self.m_PixelFileName = ("%s.pixels"):format(self.m_FileName)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement