View Single Post
06-15-10, 01:28 PM   #6
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
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:
  1. local function createPartyFrames(i)
  2.     -- Main Frame
  3.     local frame = CreateFrame("Frame", "GUI_Party" .. i .. "Frame", UIParent, "SecureUnitButtonTemplate")
  4.     frame.unit = "party" .. i
  5.     -- Pedestal Frame
  6.     --CreateFrame('Frame', "Party"..i.."PedestalFrame", _G["GUI_Party"..i.."Frame"])
  7.     frame.PedestalFrame = CreateFrame("Frame", nil, frame)
  8.     -- Health Bar
  9.     --CreateFrame('Button', "Party"..i.."HealthBorder", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
  10.     frame.HealthBorder = CreateFrame("button", nil, frame)
  11.     --CreateFrame("StatusBar", "Party"..i.."HealthBar", _G["GUI_Party"..i.."Frame"], "TextStatusBar")
  12.     frame.HealthBar = CreateFrame("StatusBar", nil, frame)
  13.     --CreateFrame("Frame", "Party"..i.."HealthNumTxtFrame", _G["GUI_Party"..i.."Frame"])
  14.     frame.HealthNumTxtFrame = CreateFrame("Frame", nil, frame)
  15.    
  16.     -- Mana Bar
  17.     --CreateFrame('Button', "Party"..i.."ManaBorder", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
  18.     frame.ManaBorder = CreateFrame("button", nil, frame)
  19.     --CreateFrame("StatusBar", "Party"..i.."ManaBar", _G["GUI_Party"..i.."Frame"], "TextStatusBar")
  20.     frame.ManaBar = CreateFrame("StatusBar", nil, frame)
  21.     --CreateFrame("Frame", "Party"..i.."ManaNumTxtFrame", _G["GUI_Party"..i.."Frame"])
  22.     frame.ManaNumTxtFrame = CreateFrame("Frame", nil, frame)
  23.    
  24.     -- Misc Frames
  25.     --CreateFrame("button", "Party"..i.."InfoTextFrame", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
  26.     frame.InfoTextFrame = CreateFrame("button", nil, frame)
  27.     --CreateFrame("Frame", "Party"..i.."LetterFrame", _G["GUI_Party"..i.."Frame"])
  28.     frame.LetterFrame = CreateFrame("Frame", nil, frame)
  29.     --CreateFrame("Frame", "Party"..i.."LeaderFrame", _G["GUI_Party"..i.."Frame"])
  30.     frame.LeaderFrame = CreateFrame("Frame", nil, frame)
  31.     --CreateFrame("Frame", "Party"..i.."pvpIconFrame", _G["GUI_Party"..i.."Frame"])
  32.     frame.pvpIconFrame = CreateFrame("Frame", nil, frame)
  33.     --CreateFrame("Frame", "Party"..i.."offDeadGhostTxtFrame", _G["GUI_Party"..i.."Frame"])
  34.     frame.offDeadGhostTxtFrame = CreateFrame("Frame", nil, frame)
  35.     -- Target Bar
  36.     --CreateFrame("frame", "targetOfParty"..i.."Frame", _G["GUI_Party"..i.."Frame"])
  37.     frame.targetOfFrame = CreateFrame("Frame", nil, frame)
  38.     --CreateFrame("button", "targetOfParty"..i.."ClickFrame", _G["GUI_Party"..i.."Frame"], "SecureActionButtonTemplate")
  39.     frame.targetOfClickFrame = CreateFrame("button", nil, frame)
  40. end
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]

Last edited by Grimsin : 06-15-10 at 01:37 PM.
  Reply With Quote