NuiImage( json, json, json, json )
From NWN Lexicon
Jump to navigationJump to searchA image, with no border or padding.
Returns
json Element
Parameters
- jResRef
- Resref of the image file
- jAspect
- NUI_ASPECT_*
- jHAlign
- NUI_HALIGN_*
- jVAlign
- NUI_VALIGN_*
Description
A image, with no border or padding.
Image file formats supported, in this priority order:
- JPG - JPEG file a lossy photo-like image file, but much lower size then PNG or TGA/DDS
- TGA - Used for a lot of NWN textures (although DDS is now more common)
- PNG - standard high quality lossless compressed image format
- GIF - can be animated, but otherwise a lossy compressed image format
- WBM - WebM files, technically video so can be animated, but won't play sound.
Note DDS and PLT are not supported by the NUI image loader.
Remarks
You can't rotate images so for something like a minimap replacement you will need to duplicate all images 4 times for all directions.
Version
This function was added in 1.85.8193.31 of NWN:EE.
Example
See Also
functions: |