I'm trying to make something like map editor for my project. I'm rather new in Blender Python scripting and I have some troubles.
I made "Material" panel and I want to set "textureName" property for my object. What I need is to make some list of loaded in blender images (like in UV Editor you can load image and it appears on list).
In my panel I want just to choose one image and assign name of that image to my property. I can list loaded images by bpy.data.images but I can't dynamically add new images to property (for now I'm using EnumProperty assigned to bpy.types.Object.textureName). I was trying to make same UI widget like blender have (http://i.imgur.com/6VJVAsN.png) but I have no idea how it works.
Can somebody help me with this?