qaisjp Posted May 24, 2011 Share Posted May 24, 2011 Probably an okayish idea: image engineImportTXDImage(element TXD_Element, string filename) This could return an image for use in dxDrawImage and guiCreateImage. Maybe edit ...draw/create image for compatibility for the 'image item' This could allow you to load specific images from a txd and import them for use as a viewable image (and not on a model) What do you think about this idea? Link to comment
karlis Posted May 24, 2011 Share Posted May 24, 2011 i like it, sometimes drawing with dx and .png(only standard format that have transparency) causes problems, need alternative(not sure, does .dds work better, didn't test yet) Link to comment
qaisjp Posted May 24, 2011 Author Share Posted May 24, 2011 * Maybe the "image" could be an image element. Link to comment
diegofkda Posted May 24, 2011 Share Posted May 24, 2011 Yep! but I prefer replace a default GTA:SA TXD without having the file for example image engineImportPNGintoTXD(248, "248.png", "248hi") This would replace the skin 248, importing in the default GTA:SA the png "248.png", and importing it as name "248hi" Link to comment
karlis Posted May 24, 2011 Share Posted May 24, 2011 Yep! but I prefer replace a default GTA:SA TXD without having the filefor example image engineImportPNGintoTXD(248, "248.png", "248hi") This would replace the skin 248, importing in the default GTA:SA the png "248.png", and importing it as name "248hi" wont work that easy... .txd have alpha mask, and its more like image archive, not image. Link to comment
DiSaMe Posted May 24, 2011 Share Posted May 24, 2011 MTA SA 1.1 has client-side file functions, so scripting client-side image conversion is possible. Link to comment
Recommended Posts