View Single Post
12-14-14, 01:39 PM   #8
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
Hmm Interesting ..
Managed to get it not error out in my addon with the following minimal code:

Lua Code:
  1. ObjectiveTrackerFrame:SetAllPoints(frame)
  2. ObjectiveTrackerFrame:SetWidth(frame:GetWidth())
  3. ObjectiveTrackerBlocksFrame:SetWidth(frame:GetWidth())
  4. ObjectiveTrackerBlocksFrame:SetHeight(XObjectivesDB.ScrollHeight)
  5. ObjectiveTrackerBlocksFrame:SetPoint("LEFT",30,0)  
  6. frame:SetScrollChild(ObjectiveTrackerBlocksFrame)

frame being a ScrollFrame parented to UIParent or with nUI Infopanel as necessary.

However, this offsets the tracker lines too far to the left and and makes the POI Icons and check marks not appear properly or at all.

The line that fixes that is :
DEFAULT_OBJECTIVE_TRACKER_MODULE.blockOffsetX = 30
But the moment you use that or any of the specific modules versions it kicks out the error.

Also, the use of these two lines after that code (although not sure if I need it now I'm not re-parenting as such) also produces the error.
ObjectiveTracker_Update()
QuestObjectiveTracker_UpdatePOIs()

The moment I remove those 3 lines from the equation it allows you to click the button.

Edit:
I wonder if creating your own module stops the error. Might have to be something to look into at some point.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 12-14-14 at 01:42 PM.
  Reply With Quote