1. Hi, I'm running into some problems when trying to place 2 frames side by side. This is an excerpt from my code:

    IconFrame1 = CreateFrame("Frame", nil, MainFrame)
    IconFrame1:SetSize(40,40)
    IconFrame1:SetPoint("TOPLEFT", MainFrame, "TOPLEFT")
    
    IconFrame2 = CreateFrame("Frame", nil, MainFrame)
    IconFrame2:SetSize(40,40)
    IconFrame2:SetPoint("TOPLEFT", IconFrame1, "TOPRIGHT")
    
    local texture = IconFrame1:CreateTexture(nil, "BACKGROUND")
    texture:SetAllPoints(true)
    texture:SetTexture("Interface\\Icons\\Ability_Warlock_Haunt")
    texture:SetTexCoord(0.07,0.9,0.07,0.90)
    
    local texture2 = IconFrame2:CreateTexture(nil, "BACKGROUND")
    texture:SetAllPoints(true)
    texture:SetTexture("Interface\\Icons\\Ability_Warlock_ChaosBolt")
    texture:SetTexCoord(0.07,0.9,0.07,0.90)
    

    MainFrame is just a 80x40 frame I created earlier.

    The problem that's occurring is IconFrame2 seems to be placed right on top of IconFrame1. That is, in-game, I see the Chaos Bolt icon where the Haunt icon should be. And if I remove the last 4 lines of code, I can see the Haunt texture.

    I've spent a lot of time trying to debug the code and I've run out of ideas to fix this. Any help would be much appreciated. Thank you!

  2. Hey sorry guys I found the problem. I was overwriting my original texture when trying to set the attributes for texture2. Sorry for the dumb question.

  3. Glad you were able to figure it out!