MTA Team qaisjp Posted May 24, 2011 MTA Team 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?
karlis Posted May 24, 2011 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)
MTA Team qaisjp Posted May 24, 2011 Author MTA Team Posted May 24, 2011 * Maybe the "image" could be an image element.
diegofkda Posted May 24, 2011 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"
karlis Posted May 24, 2011 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.
DiSaMe Posted May 24, 2011 Posted May 24, 2011 MTA SA 1.1 has client-side file functions, so scripting client-side image conversion is possible.
Recommended Posts