Mercurial > wow > ouroloot
comparison 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 |
comparison
equal
deleted
inserted
replaced
56:fcc0d0ff5832 | 57:81d5449621f8 |
---|---|
5 etc); its named indices are: | 5 etc); its named indices are: |
6 - forum saved text from forum markup window, default nil | 6 - forum saved text from forum markup window, default nil |
7 - attend saved text from raid attendence window, default nil | 7 - attend saved text from raid attendence window, default nil |
8 - printed.FOO last loot index formatted into text window FOO, default 0 | 8 - printed.FOO last loot index formatted into text window FOO, default 0 |
9 - raiders accumulating raid roster data as we see raid members; indexed | 9 - raiders accumulating raid roster data as we see raid members; indexed |
10 by player name with subtable fields: | 10 by player name with subtable fields: |
11 - class capitalized English codename ("WARRIOR", "DEATHKNIGHT", etc) | 11 - class capitalized English codename ("WARRIOR", "DEATHKNIGHT", etc) |
12 - subgroup 1-8 | 12 - subgroup 1-8 |
13 - race English codename ("BloodElf", etc) | 13 - race English codename ("BloodElf", etc) |
14 - sex 1 = unknown/error, 2 = male, 3 = female | 14 - sex 1 = unknown/error, 2 = male, 3 = female |
15 - level can be 0 if player was offline at the time | 15 - level can be 0 if player was offline at the time |
16 - guild guild name, or missing if unguilded | 16 - guild guild name, or missing if unguilded |
17 - online 1 = online, 2 = offline, 3 = no longer in raid | 17 - online 1 = online, 2 = offline, 3 = no longer in raid |
18 [both of these next two fields use time_t values:] | 18 [both of these next two fields use time_t values:] |
19 - join time player joined the raid (or first time we've seen them) | 19 - join time player joined the raid (or first time we've seen them) |
20 - leave time player left the raid (or time we've left the raid) | 20 - leave time player left the raid (or time we've left the raid) |
21 | 21 |
22 Common g_loot entry indices: | 22 Common g_loot entry indices: |
23 - kind time/boss/loot | 23 - kind time/boss/loot |
24 - hour 0-23, on the *physical instance server*, not the realm server | 24 - hour 0-23, on the *physical instance server*, not the realm server |
25 - minute 0-59, ditto | 25 - minute 0-59, ditto |
26 - stamp date+timestamp, on the local computer | 26 - stamp time_t on the local computer |
27 - cols graphical display data; cleared when logging out | 27 - cols graphical display data; cleared when logging out |
28 | 28 |
29 Time specific g_loot indices: | 29 Time specific g_loot indices: |
30 - startday table with month/day/year/text fields from makedate() | 30 - startday table with month/day/year/text fields from makedate() |
31 text is always "dd Month yyyy" | |
31 | 32 |
32 Boss specific g_loot indices: | 33 Boss specific g_loot indices: |
33 - bossname name of boss/encounter; | 34 - bossname name of boss/encounter; |
34 may be changed if "snarky boss names" option is enabled | 35 may be changed if "snarky boss names" option is enabled |
35 - reason wipe/kill ("pull" does not generate an entry) | 36 - reason wipe/kill ("pull" does not generate an entry) |
36 - instance name of instance, including size and difficulty | 37 - instance name of instance, including size and difficulty |
37 - maxsize 5/10/25, presumably also 15 and 40 could show up; can be | 38 - maxsize 5/10/25, presumably also 15 and 40 could show up; can be |
38 0 if we're outside an instance and the player inside has | 39 0 if we're outside an instance and the player inside has |
39 an older version | 40 an older version |
40 - duration in seconds; may be missing (only present if local) | 41 - duration in seconds; may be missing (only present if local) |
41 - raidersnap copy of g_loot.raiders at the time of the boss event | 42 - raidersnap copy of g_loot.raiders at the time of the boss event |
42 | 43 |
43 Loot specific g_loot indices: | 44 Loot specific g_loot indices: |
44 - person recipient | 45 - person recipient |
45 - person_class class of recipient if available; may be missing; | 46 - person_class class of recipient if available; may be missing; |
46 will be classID-style (e.g., DEATHKNIGHT) | 47 will be classID-style (e.g., DEATHKNIGHT) |
47 - itemname not including square brackets | 48 - itemname not including square brackets |
48 - id itemID as number | 49 - id itemID as number |
49 - itemlink full clickable link | 50 - itemlink full clickable link |
50 - itexture icon path (e.g., Interface\Icons\INV_Misc_Rune_01) | 51 - itexture icon path (e.g., Interface\Icons\INV_Misc_Rune_01) |
51 - quality ITEM_QUALITY_* number | 52 - quality ITEM_QUALITY_* number |
52 - disposition offspec/gvault/shard; missing otherwise; can be set from | 53 - disposition offspec/gvault/shard; missing otherwise; can be set from |
53 the extratext field | 54 the extratext field |
54 - count e.g., "x3"; missing otherwise; can be set/removed from | 55 - count e.g., "x3"; missing otherwise; can be set/removed from |
55 extratext; triggers only for a stack of items, not "the boss | 56 extratext; triggers only for a stack of items, not "the boss |
56 dropped double axes today" | 57 dropped double axes today" |
57 - is_heroic true if item is heroic; missing otherwise | 58 - is_heroic true if item is heroic; missing otherwise |
58 - cache_miss if GetItemInfo failed; SHOULD be missing (changes other fields) | 59 - cache_miss if GetItemInfo failed; SHOULD be missing (changes other fields) |
59 - bcast_from if rebroadcast from another player; missing otherwise | 60 - bcast_from if rebroadcast from another player; missing otherwise |
60 - extratext text in Note column, including disposition and rebroadcasting | 61 - extratext text in Note column, including disposition and rebroadcasting |
61 - extratext_byhand true if text edited by player directly; missing otherwise | 62 - extratext_byhand true if text edited by player directly; missing otherwise |
119 ['[item] by name'] = '[item]$N[/item]$X - $T', | 120 ['[item] by name'] = '[item]$N[/item]$X - $T', |
120 ['[item] by ID'] = '[item]$I[/item]$X - $T', | 121 ['[item] by ID'] = '[item]$I[/item]$X - $T', |
121 ['Custom...'] = '', | 122 ['Custom...'] = '', |
122 }, | 123 }, |
123 ['forum_current'] = '[item] by name', | 124 ['forum_current'] = '[item] by name', |
125 ['display_disabled_LODs'] = false, | |
124 } | 126 } |
125 local virgin = "First time loaded? Hi! Use the /ouroloot or /loot command" | 127 local virgin = "First time loaded? Hi! Use the /ouroloot or /loot command" |
126 .." to show the main display. You should probably browse the instructions" | 128 .." to show the main display. You should probably browse the instructions" |
127 .." if you've never used this before; %s to display the help window. This" | 129 .." if you've never used this before; %s to display the help window. This" |
128 .." welcome message will not intrude again." | 130 .." welcome message will not intrude again." |
1217 if GetAddOnMetadata (i, "X-OuroLoot-Plugin") | 1219 if GetAddOnMetadata (i, "X-OuroLoot-Plugin") |
1218 and IsAddOnLoadOnDemand(i) | 1220 and IsAddOnLoadOnDemand(i) |
1219 and not IsAddOnLoaded(i) | 1221 and not IsAddOnLoaded(i) |
1220 then | 1222 then |
1221 local folder, _, _, enabled, _, reason = GetAddOnInfo(i) | 1223 local folder, _, _, enabled, _, reason = GetAddOnInfo(i) |
1222 local tabtitle = GetAddOnMetadata (i, "X-OuroLoot-Plugin") | 1224 if enabled or opts.display_disabled_LODs then |
1223 self:_gui_add_LOD_tab (tabtitle, folder, i, enabled, reason) | 1225 local tabtitle = GetAddOnMetadata (i, "X-OuroLoot-Plugin") |
1226 self:_gui_add_LOD_tab (tabtitle, folder, i, enabled, reason) | |
1227 end | |
1224 end | 1228 end |
1225 end | 1229 end |
1226 end | 1230 end |
1227 | 1231 |
1228 -- Adds indices to traverse the tables in a nice sorted order. | 1232 -- Adds indices to traverse the tables in a nice sorted order. |