Trouble Showing Icons Inside of Scrolling Frame
I'm still trying to wrap my head around building interfaces and was hoping someone can point me in a direction. I currently have a frame with a scrollbar, and I'm trying to populate rows in that frame with a loop:
Lua Code:
Inside my function to build each row, I'm currently attempting to load the texture for each shapeshift form inside my scrolling frame, but I don't seem to get a single icon to appear. Lua Code:
I'm floundering trying to figure out if I'm incorrectly loading the textures, dealing with frames in an incorrect way, or both. I don't need anything to happen if the texture is pressed, I just want to use it as artwork inside the scroll frame to accompany a font string. While I may need to consider offsets between indicies, I anticipated at least one icon to appear. |
Since the first value of the GetShapeshiftFormInfo is the texture, you should use
Lua Code:
instead of Lua Code:
And about the scroll frame, since the shapeshift form count is little, there is no need to use a scroll frame to contains all them. If you really need, you should create a frame as the scrollframe's child Lua Code:
And then create all list items on the container. Scroll childs in the scroll frame is just moving the container, you can set its location by yourself or just use method: Lua Code:
|
Thanks for your response. I went ahead and tried to give it another shot based off your feedback. I also tried to move all of my interface code into wowlua so I could give the full picture and the framestack of my result.
Unfortunately I'm still not getting an icon so I'm still a bit puzzled. Attached is the result of that. The reason I was thinking of using a ScrollFrame is because I was going to have options for each stance. Here is the code in case anyone would like to try it locally: Lua Code:
|
Lua Code:
A little modification, you need give the container a location and size, so it can be displayed, I attach the container to the topleft and right, so it has width, I update its height in the MyAddOn_BuildStanceListItem, so it has the whole size settings. You can test more with in-game editor. |
All times are GMT -6. The time now is 11:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI