comparison text_tabs.lua @ 65:69fd720f853e

Add display_bcast_from option.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 27 Apr 2012 09:12:45 +0000
parents 99ab21f0755f
children 43913e02a1ef
comparison
equal deleted inserted replaced
64:359d0159d6ca 65:69fd720f853e
33 TTYPE: see above 33 TTYPE: see above
34 EDITBOX: the MultiLineEditBox widget 34 EDITBOX: the MultiLineEditBox widget
35 CONTAINER: widget container (already has 'Regenerate' button in it) 35 CONTAINER: widget container (already has 'Regenerate' button in it)
36 MKBUTTON: function to create more AceGUI widgets, as follows: 36 MKBUTTON: function to create more AceGUI widgets, as follows:
37 37
38 mkbutton ("WidgetType", 'display key', "Text On Widget", "the mouseover display text") 38 mkbutton ("WidgetType", 'display key', "Text On Widget", "mouseover text")
39 mkbutton ( [Button] 'display key', "Text On Widget", "the mouseover display text") 39 mkbutton ( [Button] 'display key', "Text On Widget", "mouseover text")
40 mkbutton ( [Button] [text] "Text On Widget", "the mouseover display text") 40 mkbutton ( [Button] [text] "Text On Widget", "mouseover text")
41 41
42 The 'display key' parameter will almost certainly be specified as nil for these functions. 42 The 'display key' parameter will almost certainly be specified as nil for
43 these functions.
43 ]] 44 ]]
44 45
45 local forum_warned_heroic 46 local forum_warned_heroic
46 local warning_text 47 local warning_text
47 do 48 do
58 for i = last_printed+1, #loot do 59 for i = last_printed+1, #loot do
59 local e = loot[i] 60 local e = loot[i]
60 61
61 if e.kind == 'loot' then 62 if e.kind == 'loot' then
62 -- Assuming nobody names a toon "offspec" or "gvault" 63 -- Assuming nobody names a toon "offspec" or "gvault"
63 -- 16Apr2011: armory finds 20 Gvaults and 77 Offspecs... hulk smash. 64 -- 16Apr2011: armory finds 20 Gvaults and 77 Offspecs... hulk smash.
64 local disp = e.disposition or e.person 65 local disp = e.disposition or e.person
65 if disp == 'offspec' then 66 if disp == 'offspec' then
66 disp = e.person .. " " .. 'offspec' 67 disp = e.person .. " " .. 'offspec'
67 elseif disp == 'gvault' then 68 elseif disp == 'gvault' then
68 --disp = "guild vault (".. e.person .. ")" 69 --disp = "guild vault (".. e.person .. ")"
80 :gsub('%$X', e.count or "") 81 :gsub('%$X', e.count or "")
81 :gsub('%$T', disp) 82 :gsub('%$T', disp)
82 cache[#cache+1] = t 83 cache[#cache+1] = t
83 84
84 elseif e.kind == 'boss' and e.reason == 'kill' then 85 elseif e.kind == 'boss' and e.reason == 'kill' then
85 -- first boss in an instance gets an instance tag, others get a blank line 86 -- The first boss in an instance gets an instance tag, others
87 -- get a blank line
86 if generated.last_instance == e.instance then 88 if generated.last_instance == e.instance then
87 cache[#cache+1] = "" 89 cache[#cache+1] = ""
88 else 90 else
89 cache[#cache+1] = "\n[b]" .. e.instance .. "[/b]" 91 cache[#cache+1] = "\n[b]" .. e.instance .. "[/b]"
90 generated.last_instance = e.instance 92 generated.last_instance = e.instance
175 if e.kind == 'boss' and e.reason == 'kill' then 177 if e.kind == 'boss' and e.reason == 'kill' then
176 -- This could, concievably, be different on a per-boss basis 178 -- This could, concievably, be different on a per-boss basis
177 -- (e.g., "we're dropping to 10-man for the PvP boss") 179 -- (e.g., "we're dropping to 10-man for the PvP boss")
178 local i,o = do_attendance (e.raidersnap, e.maxsize / MEMBERS_PER_RAID_GROUP) 180 local i,o = do_attendance (e.raidersnap, e.maxsize / MEMBERS_PER_RAID_GROUP)
179 181
180 cache[#cache+1] = ("\n%s -- %s\n{+} %s\n{-} %s\n"):format(e.instance, 182 cache[#cache+1] = ("\n%s -- %s\n{+} %s\n{-} %s\n"):
181 e.bossname, i, o) 183 format(e.instance, e.bossname, i, o)
182 184
183 elseif e.kind == 'time' then 185 elseif e.kind == 'time' then
184 cache[#cache+1] = e.startday.text 186 cache[#cache+1] = e.startday.text
185 187
186 end 188 end