Mercurial > wow > ouroloot
comparison core.lua @ 30:47949f8eb783
Passing in data field for StaticPopup_Show must be done earlier.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 21 Oct 2011 21:34:38 +0000 |
parents | 7d2742727869 |
children | f1d0a5d7b006 |
comparison
equal
deleted
inserted
replaced
29:7d2742727869 | 30:47949f8eb783 |
---|---|
214 local ltype, arg = strsplit(":",link) | 214 local ltype, arg = strsplit(":",link) |
215 if ltype ~= "OuroRaid" then return end | 215 if ltype ~= "OuroRaid" then return end |
216 if arg == 'openloot' then | 216 if arg == 'openloot' then |
217 addon:BuildMainDisplay() | 217 addon:BuildMainDisplay() |
218 elseif arg == 'popupurl' then | 218 elseif arg == 'popupurl' then |
219 local dialog = StaticPopup_Show "OUROL_URL" | 219 -- Sadly, this is not generated by the packager, so hardcode it for now. |
220 -- Sadly, this is not generated by the packager, so hardcode it for now | 220 -- The 'data' field is handled differently for onshow than for other callbacks. |
221 dialog.data = [[http://wow.curse.com/downloads/wow-addons/details/ouroloot.aspx]] | 221 StaticPopup_Show("OUROL_URL", --[[text_arg1=]]nil, --[[text_arg2=]]nil, |
222 --[[data=]][[http://www.curse.com/addons/wow/ouroloot]]) | |
222 elseif arg == 'doping' then | 223 elseif arg == 'doping' then |
223 addon:DoPing() | 224 addon:DoPing() |
224 elseif arg == 'help' then | 225 elseif arg == 'help' then |
225 addon:BuildMainDisplay('help') | 226 addon:BuildMainDisplay('help') |
226 elseif arg == 'bcaston' then | 227 elseif arg == 'bcaston' then |