okay heres what i got going now, hopefully thats all valid for the textures and the fonts?
lua Code:
local function createPartyFrames(i)
-- Main Frame
local frame = CreateFrame("Frame", "GUI_Party" .. i .. "Frame", UIParent, "SecureUnitButtonTemplate")
frame.unit = "party" .. i
-- Pedestal Frame
frame.PedestalFrame = CreateFrame("Frame", nil, frame)
-- Health Bar
frame.HealthBorder = CreateFrame("button", nil, frame)
frame.HealthBar = CreateFrame("StatusBar", nil, frame)
frame.HealthNumTxtFrame = CreateFrame("Frame", nil, frame)
-- Mana Bar
frame.ManaBorder = CreateFrame("button", nil, frame)
frame.ManaBar = CreateFrame("StatusBar", nil, frame)
frame.ManaNumTxtFrame = CreateFrame("Frame", nil, frame)
-- Misc Frames
frame.InfoTextFrame = CreateFrame("button", nil, frame)
frame.LetterFrame = CreateFrame("Frame", nil, frame)
frame.LeaderFrame = CreateFrame("Frame", nil, frame)
frame.pvpIconFrame = CreateFrame("Frame", nil, frame)
frame.offDeadGhostTxtFrame = CreateFrame("Frame", nil, frame)
-- Target Bar
frame.targetOfFrame = CreateFrame("Frame", nil, frame)
frame.targetOfClickFrame = CreateFrame("button", nil, frame)
-- texture creation
frame.PedestalFrame.texture = frame.PedestalFrame:CreateTexture()
frame.LeaderFrame.texture = frame.LeaderFrame:CreateTexture()
frame.pvpIconFrame.texture = frame.pvpIconFrame:CreateTexture()
frame.targetOfFrame.texture = frame.targetOfPartyFrame:CreateTexture(nil, "BACKGROUND")
-- font creation
frame.HealthBorder.percentPartyHText = frame.HealthBorder:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.ManaBorder.percentMText = frame.ManaBorder:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.InfoTextFrame.NameText = frame.InfoTextFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.LetterFrame.LetterHText = frame.LetterFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.LetterFrame.LetterMText = frame.LetterFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.HealthNumTxtFrame.chnumtxt = frame.HealthNumTxtFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.HealthNumTxtFrame.mhnumtxt = frame.HealthNumTxtFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.ManaNumTxtFrame.CMNumTxt = frame.ManaNumTxtFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.ManaNumTxtFrame.MMNumTxt = frame.ManaNumTxtFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.InfoTextFrame.LvlClassText = frame.InfoTextFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.offDeadGhostTxtFrame.DeadOfflineTxt = frame.offDeadGhostTxtFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
frame.targetOfFrame.targetOfText = frame.targetOfFrame:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
end
for id = 1, 4 do
createPartyFrame(id)
end