Mercurial > wow > ouroloot
diff core.lua @ 57:81d5449621f8
Fix some sloppy indentation. Correct handling of delayed-load plugins registering multiple tabs in arbitrary order. Add option to not display tabs for disabled plugins (would normally allow enabling of them).
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Tue, 17 Apr 2012 04:57:06 +0000 |
parents | fcc0d0ff5832 |
children | 59718ec80610 |
line wrap: on
line diff
--- a/core.lua Fri Apr 13 04:28:46 2012 +0000 +++ b/core.lua Tue Apr 17 04:57:06 2012 +0000 @@ -7,7 +7,7 @@ - attend saved text from raid attendence window, default nil - printed.FOO last loot index formatted into text window FOO, default 0 - raiders accumulating raid roster data as we see raid members; indexed - by player name with subtable fields: + by player name with subtable fields: - class capitalized English codename ("WARRIOR", "DEATHKNIGHT", etc) - subgroup 1-8 - race English codename ("BloodElf", etc) @@ -15,7 +15,7 @@ - level can be 0 if player was offline at the time - guild guild name, or missing if unguilded - online 1 = online, 2 = offline, 3 = no longer in raid - [both of these next two fields use time_t values:] + [both of these next two fields use time_t values:] - join time player joined the raid (or first time we've seen them) - leave time player left the raid (or time we've left the raid) @@ -23,37 +23,38 @@ - kind time/boss/loot - hour 0-23, on the *physical instance server*, not the realm server - minute 0-59, ditto -- stamp date+timestamp, on the local computer +- stamp time_t on the local computer - cols graphical display data; cleared when logging out Time specific g_loot indices: - startday table with month/day/year/text fields from makedate() + text is always "dd Month yyyy" Boss specific g_loot indices: - bossname name of boss/encounter; - may be changed if "snarky boss names" option is enabled + may be changed if "snarky boss names" option is enabled - reason wipe/kill ("pull" does not generate an entry) - instance name of instance, including size and difficulty - maxsize 5/10/25, presumably also 15 and 40 could show up; can be - 0 if we're outside an instance and the player inside has - an older version + 0 if we're outside an instance and the player inside has + an older version - duration in seconds; may be missing (only present if local) - raidersnap copy of g_loot.raiders at the time of the boss event Loot specific g_loot indices: - person recipient - person_class class of recipient if available; may be missing; - will be classID-style (e.g., DEATHKNIGHT) + will be classID-style (e.g., DEATHKNIGHT) - itemname not including square brackets - id itemID as number - itemlink full clickable link - itexture icon path (e.g., Interface\Icons\INV_Misc_Rune_01) - quality ITEM_QUALITY_* number - disposition offspec/gvault/shard; missing otherwise; can be set from - the extratext field + the extratext field - count e.g., "x3"; missing otherwise; can be set/removed from - extratext; triggers only for a stack of items, not "the boss - dropped double axes today" + extratext; triggers only for a stack of items, not "the boss + dropped double axes today" - is_heroic true if item is heroic; missing otherwise - cache_miss if GetItemInfo failed; SHOULD be missing (changes other fields) - bcast_from if rebroadcast from another player; missing otherwise @@ -121,6 +122,7 @@ ['Custom...'] = '', }, ['forum_current'] = '[item] by name', + ['display_disabled_LODs'] = false, } local virgin = "First time loaded? Hi! Use the /ouroloot or /loot command" .." to show the main display. You should probably browse the instructions" @@ -1219,8 +1221,10 @@ and not IsAddOnLoaded(i) then local folder, _, _, enabled, _, reason = GetAddOnInfo(i) - local tabtitle = GetAddOnMetadata (i, "X-OuroLoot-Plugin") - self:_gui_add_LOD_tab (tabtitle, folder, i, enabled, reason) + if enabled or opts.display_disabled_LODs then + local tabtitle = GetAddOnMetadata (i, "X-OuroLoot-Plugin") + self:_gui_add_LOD_tab (tabtitle, folder, i, enabled, reason) + end end end end