View Single Post
07-14-19, 01:16 AM   #2
kurapica.igas
A Chromatic Dragonspawn
Join Date: Aug 2011
Posts: 152
Since the first value of the GetShapeshiftFormInfo is the texture, you should use
Lua Code:
  1. local texture = icon

instead of

Lua Code:
  1. local texture = GetSpellTexture(icon);

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:
  1. local scrollFrame = CreateFrame("ScrollFrame")
  2. local container = CreateFrame("Frame", nil, scrollFrame)
  3. scrollFrame:SetScrollChild(container)

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:
  1. scrollFrame:SetVerticalScroll(value)

Last edited by kurapica.igas : 07-14-19 at 01:18 AM.
  Reply With Quote