EngineImageGetFiles: Difference between revisions
Jump to navigation
Jump to search
TheNormalnij (talk | contribs) (Fix description. Add example) |
TheNormalnij (talk | contribs) mNo edit summary |
||
Line 9: | Line 9: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[ | {{OOP||[[img]]:getFiles|files}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''imgArchive''': The [[IMG]] file handler you want to get files from. | * '''imgArchive''': The [[IMG]] file handler you want to get files from. |
Latest revision as of 19:39, 10 April 2023
Syntax
table engineImageGetFiles ( img imgArchive )
OOP Syntax Help! I don't understand this!
- Method: img:getFiles(...)
- Variable: .files
Required Arguments
- imgArchive: The IMG file handler you want to get files from.
Returns
Returns array table with files in the IMG element if successfull, false otherwise.
Example
You could use the following code:
local img = engineLoadIMG( "file.img" ) local filesInArchive = engineImageGetFiles( img ) outputChatBox("'file.img' contains files:") for fileId = 1, #filesInArchive do outputChatBox(fileId .. ": " .. filesInArchive[i]) end
See Also
- engineAddImage
- engineApplyShaderToWorldTexture
- engineFreeModel
- engineGetModelFlags
- engineGetModelIDFromName
- engineGetModelLODDistance
- engineGetModelNameFromID
- engineGetModelPhysicalPropertiesGroup
- engineGetModelTextureNames
- engineGetModelTextures
- engineGetModelTXDID
- engineGetModelVisibleTime
- engineGetObjectGroupPhysicalProperty
- engineGetSurfaceProperties
- engineGetVisibleTextureNames
- engineImageGetFilesCount
- engineImageGetFiles
- engineImageGetFile
- engineImageLinkDFF
- engineImageLinkTXD
- engineImportTXD
- engineLoadCOL
- engineLoadDFF
- engineLoadIMG
- engineLoadIFP
- engineLoadTXD
- engineRemoveImage
- engineRemoveShaderFromWorldTexture
- engineReplaceAnimation
- engineReplaceCOL
- engineReplaceModel
- engineRequestModel
- engineResetModelFlags
- engineResetModelLODDistance
- engineResetSurfaceProperties
- engineRestoreAnimation
- engineRestoreCOL
- engineRestoreDFFImage
- engineRestoreModel
- engineRestoreModelPhysicalPropertiesGroup
- engineRestoreObjectGroupPhysicalProperties
- engineRestoreTXDImage
- engineRestreamWorld
- engineSetAsynchronousLoading
- engineSetModelFlag
- engineSetModelFlags
- engineSetModelLODDistance
- engineSetModelPhysicalPropertiesGroup
- engineSetModelVisibleTime
- engineSetObjectGroupPhysicalProperty
- engineSetSurfaceProperties
- engineStreamingFreeUpMemory
- engineStreamingGetUsedMemory