View Single Post
Unread 05-03-07, 03:28 PM   #2
ravagernl
Premium Member
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,149
You are overwriting the top textures with the bottom ones. Each texture needs its own place into the table. Change this:
Code:
  --draw the bottom
    for j=1,5 do
    	self["art2"..j] = self.frame:CreateTexture("$parentArt"..j,"BACKGROUND")
        self["art2"..j]:SetWidth(256)
        self["art2"..j]:SetHeight(512)
        self["art2"..j]:SetTexture("Interface\\Addons\\XArt\\Textures\\overlay2"..j)
        self["art2"..j]:ClearAllPoints()
        if j == 1 then
            self["art2"..j]:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", 0, 0)
        else
            self["art2"..j]:SetPoint("BOTTOMLEFT", self["art2"..j-1], "BOTTOMRIGHT", 0, 0)
        end
        self["art2"..j]:Show()
    end
To this:
Code:
  --draw the bottom
    for j=6, 10 do
    	self["art2"..j] = self.frame:CreateTexture("$parentArt"..j,"BACKGROUND")
        self["art2"..j]:SetWidth(256)
        self["art2"..j]:SetHeight(512)
        self["art2"..j]:SetTexture("Interface\\Addons\\XArt\\Textures\\overlay2"..j-5)
        self["art2"..j]:ClearAllPoints()
        if j == 6 then
            self["art2"..j]:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", 0, 0)
        else
            self["art2"..j]:SetPoint("BOTTOMLEFT", self["art2"..j-1], "BOTTOMRIGHT", 0, 0)
        end
        self["art2"..j]:Show()
    end

Last edited by ravagernl : 05-03-07 at 03:35 PM.
ravagernl is offline   Reply With Quote