Thread: Load image
View Single Post
  #2  
Unread 08-30-2011, 01:41 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
The image has to be either a .jpg or .tga file and must be in a folder under the Plugins folder (we can only reference paths relative to the Plugins folder). To display the image, you have a number of choices - you can display it as the background of a Window control, or any of the child controls of a Window control. You assign the image to be displayed by passing the relative path to the :SetBackground() method of the window or control. If it's a child control, depending on how you want it to interact with the other controls and it's parent you may also have to use then :SetBlendMode() method of the control. I would suggest researching the Turbine LUA API or downloading a couple of plugins and seeing how other authors have displayed images. The Turbine samples have some good basic examples of displaying images. Links to the Turbine API documentation and samples are here:
http://forums.lotro.com/showthread.p...amples-updated!
Reply With Quote