View Single Post
Old 05-03-07, 05:17 PM   #5
d4m
A Defias Bandit
Join Date: May 2007
Posts: 3
LOL!!!

dude, all I did was unzip all of the discord stuff, opened the game and everything I had just programmed worked, there was the skin!

made this code change and nothing still happened, unzip discord, and all was well. Thank you very much.

Code:
function XArt:CreateArtFrame()
    self.frame = CreateFrame("Frame", "XArtFrame", UIParent)
    self.frame:SetFrameStrata("BACKGROUND")
    self.frame:EnableMouse(false)
    self.frame:SetMovable(false)
    self.frame:SetWidth(1280)
    self.frame:SetHeight(1024)
    self.frame:ClearAllPoints()
    self.frame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 0, 0)

	--load all the 10 texture tiles
 	for i=1,10 do
		self["art"..i] = self.frame:CreateTexture("$parentArt"..i,"BACKGROUND")
		self["art"..i]:SetWidth(256)
        self["art"..i]:SetHeight(512)
        self["art"..i]:SetTexture("Interface\\Addons\\XArt\\Textures\\overlay"..i)
    end
	
     --draw the screen
    for i=1,10 do
        self["art"..i]:ClearAllPoints()
        if i < 6 then        -- draw the top
	        if i == 1 then
	            self["art"..i]:SetPoint("TOPLEFT", self.frame, "TOPLEFT", 0, 0)
	        else
	            self["art"..i]:SetPoint("TOPLEFT", self["art"..i-1], "TOPRIGHT", 0, 0)
	        end
     	else           --draw the bottom
            if i == 6 then
	            self["art"..i]:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", 0, 0)
	        else
	            self["art"..i]:SetPoint("BOTTOMLEFT", self["art"..i-1], "BOTTOMRIGHT", 0, 0)
	        end
	 	end
	 	
        self["art"..i]:Show()
    end

    self.frame:Show()
end
d4m is offline   Reply With Quote