View Single Post
03-04-13, 08:37 PM   #32
Kharthus
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 26
In my case I was actually trying to pass a value to another function, but it looks like FauxScrollFrame doesn't like that. I changed the code to this and it's working correctly again.

Lua Code:
  1. <ScrollFrame name="LivestockCritterMenuScrollFrameTemplate" inherits="FauxScrollFrameTemplate" virtual="true">
  2.         <Anchors>
  3.             <Anchor point="TOPLEFT">
  4.                 <Offset>
  5.                     <AbsDimension x="0" y="-8"/>
  6.                 </Offset>
  7.             </Anchor>
  8.             <Anchor point="BOTTOMRIGHT">
  9.                 <Offset>
  10.                     <AbsDimension x="-30" y="8"/>
  11.                 </Offset>
  12.             </Anchor>
  13.         </Anchors>
  14.         <Scripts>
  15.             <OnVerticalScroll>
  16.                 FauxScrollFrame_OnVerticalScroll(self, offset, 15, Livestock.CritterMenuUpdate)
  17.             </OnVerticalScroll>
  18.         </Scripts>
  19.     </ScrollFrame>

Lua Code:
  1. function Livestock.CritterMenuUpdate()
  2.     Livestock.BuildMenu("CRITTER")
  3. end
  Reply With Quote