its becoming clearer and clearer... working on redoing things still a couple complicated parts. Can the frame.blahblah be doubled over again for creating textures like frame.PedestalFrame.texture ? for doing the fontstrings and textures?
here is what i have going on so far for my base frame creation using what you posted this morning. im starting to just comment out my old stuff so i can see what i changed it from-to to get a better idea of whats going on. is what i have so far correct? this creates each party frame and all of each ones individual sub frames correct? edit -- and = 1, 4 do stands for 1-4?
lua Code:
local function createPartyFrames(i)
-- Main Frame
local frame = CreateFrame("Frame", "GUI_Party" .. i .. "Frame", UIParent, "SecureUnitButtonTemplate")
frame.unit = "party" .. i
-- Pedestal Frame
--CreateFrame('Frame', "Party"..i.."PedestalFrame", _G["GUI_Party"..i.."Frame"])
frame.PedestalFrame = CreateFrame("Frame", nil, frame)
-- Health Bar
--CreateFrame('Button', "Party"..i.."HealthBorder", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
frame.HealthBorder = CreateFrame("button", nil, frame)
--CreateFrame("StatusBar", "Party"..i.."HealthBar", _G["GUI_Party"..i.."Frame"], "TextStatusBar")
frame.HealthBar = CreateFrame("StatusBar", nil, frame)
--CreateFrame("Frame", "Party"..i.."HealthNumTxtFrame", _G["GUI_Party"..i.."Frame"])
frame.HealthNumTxtFrame = CreateFrame("Frame", nil, frame)
-- Mana Bar
--CreateFrame('Button', "Party"..i.."ManaBorder", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
frame.ManaBorder = CreateFrame("button", nil, frame)
--CreateFrame("StatusBar", "Party"..i.."ManaBar", _G["GUI_Party"..i.."Frame"], "TextStatusBar")
frame.ManaBar = CreateFrame("StatusBar", nil, frame)
--CreateFrame("Frame", "Party"..i.."ManaNumTxtFrame", _G["GUI_Party"..i.."Frame"])
frame.ManaNumTxtFrame = CreateFrame("Frame", nil, frame)
-- Misc Frames
--CreateFrame("button", "Party"..i.."InfoTextFrame", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
frame.InfoTextFrame = CreateFrame("button", nil, frame)
--CreateFrame("Frame", "Party"..i.."LetterFrame", _G["GUI_Party"..i.."Frame"])
frame.LetterFrame = CreateFrame("Frame", nil, frame)
--CreateFrame("Frame", "Party"..i.."LeaderFrame", _G["GUI_Party"..i.."Frame"])
frame.LeaderFrame = CreateFrame("Frame", nil, frame)
--CreateFrame("Frame", "Party"..i.."pvpIconFrame", _G["GUI_Party"..i.."Frame"])
frame.pvpIconFrame = CreateFrame("Frame", nil, frame)
--CreateFrame("Frame", "Party"..i.."offDeadGhostTxtFrame", _G["GUI_Party"..i.."Frame"])
frame.offDeadGhostTxtFrame = CreateFrame("Frame", nil, frame)
-- Target Bar
--CreateFrame("frame", "targetOfParty"..i.."Frame", _G["GUI_Party"..i.."Frame"])
frame.targetOfFrame = CreateFrame("Frame", nil, frame)
--CreateFrame("button", "targetOfParty"..i.."ClickFrame", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
frame.targetOfClickFrame = CreateFrame("button", nil, frame)
end