Mercurial > wow > guild-delta
comparison gd.lua @ 20:5efaeb3ef4b1 6.0.4
Split out tracking of officer notes from player notes.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Sat, 08 Nov 2014 11:58:20 -0500 |
parents | 3961b0cc4642 |
children |
comparison
equal
deleted
inserted
replaced
19:0f503f449e21 | 20:5efaeb3ef4b1 |
---|---|
237 tinsert(ret, | 237 tinsert(ret, |
238 {name = name, | 238 {name = name, |
239 rank = SV.fields.rank and rank_as_string or nil, | 239 rank = SV.fields.rank and rank_as_string or nil, |
240 level = SV.fields.level and level or nil, | 240 level = SV.fields.level and level or nil, |
241 pnote = SV.fields.notes and publicnote or nil, | 241 pnote = SV.fields.notes and publicnote or nil, |
242 onote = SV.fields.notes and officernote or nil, | 242 onote = SV.fields.onotes and officernote or nil, |
243 }) | 243 }) |
244 end | 244 end |
245 end | 245 end |
246 table.sort(ret, function (l,r) return l.name < r.name end) | 246 table.sort(ret, function (l,r) return l.name < r.name end) |
247 SetCVar ("profanityFilter", swearing) | 247 SetCVar ("profanityFilter", swearing) |
281 function addon:OnInitialize() | 281 function addon:OnInitialize() |
282 if _G.GuildDeltaSV == nil then | 282 if _G.GuildDeltaSV == nil then |
283 -- Defaults need to transition from potential older savedvars | 283 -- Defaults need to transition from potential older savedvars |
284 _G.GuildDeltaSV = { | 284 _G.GuildDeltaSV = { |
285 chatframe = _G.GuildDelta_chatframe or DEFAULT_CHAT, | 285 chatframe = _G.GuildDelta_chatframe or DEFAULT_CHAT, |
286 fields = _G.GuildDelta_fields or { rank = true, level = false, notes = true }, | 286 fields = _G.GuildDelta_fields or |
287 { rank = true, level = false, notes = true }, | |
287 members = _G.GuildDelta_memberdata or {}, | 288 members = _G.GuildDelta_memberdata or {}, |
288 --notify_nochange = nil by default | 289 --notify_nochange = nil by default |
289 --logging = nil by default | 290 --logging = nil by default |
290 } | 291 } |
291 end | 292 end |
293 -- upgrade path | 294 -- upgrade path |
294 if SV.red == nil then | 295 if SV.red == nil then |
295 SV.red = 255/255 | 296 SV.red = 255/255 |
296 SV.green = 26/255 | 297 SV.green = 26/255 |
297 SV.blue = 160/255 | 298 SV.blue = 160/255 |
299 end | |
300 if SV.fields.onotes == nil then | |
301 SV.fields.onotes = SV.fields.notes | |
298 end | 302 end |
299 end | 303 end |
300 | 304 |
301 -- Remove anything that normal operation doesn't need after finishing its work. | 305 -- Remove anything that normal operation doesn't need after finishing its work. |
302 function addon:cleanup() | 306 function addon:cleanup() |