View Single Post
06-13-10, 04:42 PM   #11
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
blah that thread is only somewhat helpful.

now i have a "to many locals error" 200 max. table some of the locals? not sure how to table the framecreate local though. not without causing other problems.

Vrul do you mean something like this?

local Party1ispvp = UnitIsPVP("Party1") --- this being one local

local Party1CurrHealth, Party1MaxHealth = UnitHealth("Party1"), UnitHealthMax("Party1") --- does this count as two locals jammed into one? since im not actually using the word local again?


to table a createframe that looks like this
lua Code:
  1. -- Pedestal Frame
  2.     local Party1PedestalFrame = CreateFrame('Frame', "Party1PedestalFrame", GUI_Party1Frame)
  3.         Party1PedestalFrame.texture = Party1PedestalFrame:CreateTexture()

can it just be done like this?

lua Code:
  1. GrimUIPartyFunc = {}
  2.  
  3. -- Pedestal Frame
  4.     GrimUIPartyFunc.Party1PedestalFrame = CreateFrame('Frame', "Party1PedestalFrame", GUI_Party1Frame)
  5.         Party1PedestalFrame.texture = Party1PedestalFrame:CreateTexture()
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]

Last edited by Grimsin : 06-13-10 at 04:54 PM.
  Reply With Quote