Quantcast WoWInterface - View Single Post - PitBull4 Lua texts - Colored health and power?
View Single Post
06-22-11, 09:59 PM   #12
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,351
OK. Just tested the last code, and it gives an error:
["message"] = {
"<string>:\"PitBull4_LuaTexts:Junathan-Quest:Lua:Power\":5: ambiguous syntax (function call x new statement) near '('\nPitBull4-v4.0.0-beta28\\ModuleHandling\\TextProviderModule.lua:118: in function `UpdateFrame'\nPitBull4-v4.0.0-beta28\\ModuleHandling\\TextProviderModule.lua:150: in function `ForceTextUpdate'\nPitBull4_LuaTexts-v4.0.0-beta28\\LuaTexts.lua:1436: in function <Interface\\AddOns\\PitBull4_LuaTexts\\LuaTexts.lua:1432>\nPitBull4_LuaTexts-v4.0.0-beta28\\LuaTexts.lua:1506: in function <Interface\\AddOns\\PitBull4_LuaTexts\\LuaTexts.lua:1502>\n(tail call): ?:\n<in C code>: ?\n<string>:\"safecall Dispatcher[2]\":9: in function <[string \"safecall Dispatcher[2]\"]:5>\n(tail call): ?:\nAceConfigDialog-3.0-54:798: in function <...nfig-3.0\\AceConfigDialog-3.0\\AceConfigDialog-3.0.lua:613>\n(tail call): ?:\n<in C code>: ?\n<string>:\"safecall Dispatcher[3]\":9: in function <[string \"safecall Dispatcher[3]\"]:5>\n(tail call): ?:\nAceGUI-3.0-33 (Ace3):314: in function `Fire'\n...AceGUI-3.0\\widgets\\AceG", -- [1]
"UIWidget-MultiLineEditBox.lua:44: in function <...AceGUI-3.0\\widgets\\AceGUIWidget-MultiLineEditBox.lua:41>:\n", -- [2]
},
["type"] = "error",
["time"] = "2011/06/22 23:41:07",
["session"] = 4234,
["counter"] = 3,
}, -- [4]
{
["message"] = "<string>:\"PitBull4_LuaTexts:Junathan-Quest:Lua:Power\":5: ambiguous syntax (function call x new statement) near '('\nCallbackHandler-1.0-6 (Ace3):147: in function <...Ons\\Ace3\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:147>\n<string>:\"safecall Dispatcher[3]\":4: in function <[string \"safecall Dispatcher[3]\"]:4>\n<in C code>: ?\n<string>:\"safecall Dispatcher[3]\":13: in function `?'\nCallbackHandler-1.0-6 (Ace3):92: in function `Fire'\nAceEvent-3.0-3 (Ace3):120: in function <Interface\\AddOns\\Ace3\\AceEvent-3.0\\AceEvent-3.0.lua:119>\n",
["type"] = "error",
["time"] = "2011/06/22 23:42:30",
["session"] = 4234,
["counter"] = 11,
}, -- [5]
{
["message"] = "<string>:\"PitBull4_LuaTexts:Junathan-Quest:Lua:Power\":5: ambiguous syntax (function call x new statement) near '('\nPitBull4-v4.0.0-beta28\\ModuleHandling\\TextProviderModule.lua:118: in function `UpdateFrame'\nPitBull4-v4.0.0-beta28\\ModuleHandling\\Module.lua:319: in function `Update'\nPitBull4-v4.0.0-beta28\\UnitFrameLayout.lua:1547: in function `UpdateLayout'\nPitBull4-v4.0.0-beta28\\ModuleHandling\\Module.lua:326: in function `Update'\nPitBull4_DruidManaBar-v4.0.0-beta28\\DruidManaBar.lua:86: in function `?'\nCallbackHandler-1.0-6 (Ace3):147: in function <...Ons\\Ace3\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:147>\n<string>:\"safecall Dispatcher[2]\":4: in function <[string \"safecall Dispatcher[2]\"]:4>\n<in C code>: ?\n<string>:\"safecall Dispatcher[2]\":13: in function `?'\nCallbackHandler-1.0-6 (Ace3):92: in function `Fire'\nAceEvent-3.0-3 (Ace3):120: in function <Interface\\AddOns\\Ace3\\AceEvent-3.0\\AceEvent-3.0.lua:119>\n",
["type"] = "error",
["time"] = "2011/06/22 23:42:30",
["session"] = 4234,
["counter"] = 2,
}, -- [6]
{
["message"] = "<string>:\"PitBull4_LuaTexts:Junathan-Quest:Lua:Power\":5: ambiguous syntax (function call x new statement) near '('\nCallbackHandler-1.0-6 (Ace3):147: in function <...Ons\\Ace3\\CallbackHandler-1.0\\CallbackHandler-1.0.lua:147>\n<string>:\"safecall Dispatcher[2]\":4: in function <[string \"safecall Dispatcher[2]\"]:4>\n<in C code>: ?\n<string>:\"safecall Dispatcher[2]\":13: in function `?'\nCallbackHandler-1.0-6 (Ace3):92: in function `Fire'\nAceEvent-3.0-3 (Ace3):120: in function <Interface\\AddOns\\Ace3\\AceEvent-3.0\\AceEvent-3.0.lua:119>\n",
["type"] = "error",
["time"] = "2011/06/22 23:42:30",
["session"] = 4234,
["counter"] = 2,
}, -- [7]
},
["save"] = true,
["session"] = 4234,
The code from post #6 works perfectly for Druid Mana, and I also put it on a character that doesn't use mana, but a different power (I think it was a Warrior, so Rage) and it worked fine.

Last edited by jeffy162 : 06-22-11 at 10:06 PM.
  Reply With Quote