Forum: Lua/XML Help
04-16-11, 02:55 PM
|
Replies: 6
Views: 4,218
May i suggest a simpler code structure:
L =...
May i suggest a simpler code structure:
L = {}
L["anraphet"] = {
["Anraphet unit shutting down..."] = "Sound\\Creature\\Anraphet\\VO_HO_Anraphet_Death01.ogg",
["Purge of unauthorized...
|
Forum: General Authoring Discussion
04-16-11, 12:35 PM
|
Replies: 7
Views: 4,515
|
Forum: General Authoring Discussion
04-16-11, 05:11 AM
|
Replies: 7
Views: 4,515
Unable to change certain nameplate properties
A nameplate frame has 11 regions and 2 child frames (statusbars) associated with it.
I have some code that successfully changes the textures, but can't seem to change the size or anchor points of...
|
Forum: Lua/XML Help
04-10-11, 01:15 AM
|
Replies: 5
Views: 6,496
|
Forum: Lua/XML Help
04-09-11, 12:05 PM
|
Replies: 5
Views: 6,496
Getting the currently active chat frame
I want to add a message into whatever chat window the user has switched to. I currently use this but "last active" isn't quite the same as the currently active one... there's probably a better way to...
|
Forum: Lua/XML Help
04-04-11, 04:57 AM
|
Replies: 7
Views: 4,759
|
Forum: Lua/XML Help
03-28-11, 11:27 AM
|
Replies: 2
Views: 5,801
Recognizing Aura Mastery's interrupt immunity
I want my addon to recognize when player's (hostile) target is immune to interrupt effects due to Aura Mastery.
This sounds easy at first, but after looking into it for a while it seems very tricky,...
|
Forum: General Authoring Discussion
03-26-11, 05:21 AM
|
Replies: 2
Views: 3,877
|
Forum: General Authoring Discussion
03-25-11, 02:10 PM
|
Replies: 2
Views: 3,877
Desired addon structure for modules
If I wanted to create a module for an addon, and said module controlled whether or not (or how) some of the addon's functions execute, which would be the best approach?
Say I have this in my...
|
Forum: Lua/XML Help
03-24-11, 02:57 PM
|
Replies: 8
Views: 5,816
if (expires == nil) then
...
if (expires == nil) then
sbBarStatus:SetValue(0)
sbBar:Hide()
end
If I'm reading this right, the above is why you can't see the bar. The variable expires is nil because, being a local, it...
|
Forum: Lua/XML Help
03-22-11, 05:47 AM
|
Replies: 9
Views: 11,458
|
Forum: Lua/XML Help
03-22-11, 03:18 AM
|
Replies: 9
Views: 11,458
|
Forum: Lua/XML Help
03-21-11, 04:19 PM
|
Replies: 9
Views: 11,458
|
Forum: Lua/XML Help
03-21-11, 11:32 AM
|
Replies: 9
Views: 11,458
There's a small error: bit.band(flag,...
There's a small error: bit.band(flag, COMBATLOG_OBJECT_SPECIAL_MASK) should be bit.band(flags, COMBATLOG_OBJECT_SPECIAL_MASK)
Even after fixing that, the function always returns nil though. Here's...
|
Forum: Lua/XML Help
03-21-11, 09:12 AM
|
Replies: 9
Views: 11,458
|
Forum: Lua/XML Help
03-21-11, 04:35 AM
|
Replies: 9
Views: 11,458
Get raid target icon from destGUID
I want to check if a unit (identified through the destGUID parameter) from a COMBAT_LOG_EVENT_UNFILTERED event has been marked with a raid marker.
Is there a better/simpler way of doing it than...
|
Forum: Lua/XML Help
03-20-11, 09:15 AM
|
Replies: 7
Views: 5,273
Localizing global functions?
I see other addon devs do this and am wondering why. Here's an example from Omen
Is this done to optimize performance?
|
Forum: General Authoring Discussion
03-18-11, 02:59 PM
|
Replies: 12
Views: 5,569
|
Forum: General Authoring Discussion
03-16-11, 03:49 AM
|
Replies: 7
Views: 6,638
I did some testing with this:
function...
I did some testing with this:
function OnEvent(self, ...)
local args = {...}
local msg = GetTime()
for i,v in ipairs(args) do
msg = msg.." "..tostring(v)
end
print(msg)
end
|
Forum: General Authoring Discussion
03-15-11, 04:24 PM
|
Replies: 7
Views: 6,638
|
Forum: General Authoring Discussion
03-15-11, 04:17 PM
|
Replies: 7
Views: 6,638
|
Forum: General Authoring Discussion
03-15-11, 07:09 AM
|
Replies: 7
Views: 6,638
|