Mercurial > wow > ouroloot
comparison LibFarmbuyer.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 | 8442272a8418 |
comparison
equal
deleted
inserted
replaced
| 56:fcc0d0ff5832 | 57:81d5449621f8 |
|---|---|
| 190 | 190 |
| 191 --[[ | 191 --[[ |
| 192 StaticPopup | 192 StaticPopup |
| 193 ]] | 193 ]] |
| 194 function lib.StaticPopup (t) | 194 function lib.StaticPopup (t) |
| 195 if t.hasEditBox then | 195 if t.hasEditBox then |
| 196 t.EditBoxOnTextChanged = EditBoxOnTextChanged_notempty | 196 t.EditBoxOnTextChanged = EditBoxOnTextChanged_notempty |
| 197 t.EditBoxOnEnterPressed = EditBoxOnEnterPressed_accept | 197 t.EditBoxOnEnterPressed = EditBoxOnEnterPressed_accept |
| 198 if t.OnShow then | 198 if t.OnShow then |
| 199 t.farm_OnShow = t.OnShow | 199 t.farm_OnShow = t.OnShow |
| 200 end | 200 end |
| 201 t.OnShow = OnShow_witheditbox | 201 t.OnShow = OnShow_witheditbox |
| 202 if t.OnAccept then | 202 if t.OnAccept then |
| 203 t.farm_OnAccept = t.OnAccept | 203 t.farm_OnAccept = t.OnAccept |
| 204 end | 204 end |
| 205 t.OnAccept = OnAccept_witheditbox | 205 t.OnAccept = OnAccept_witheditbox |
| 206 -- this calls OnCancel with "clicked", unless noCancelOnEscape is set | 206 -- this calls OnCancel with "clicked", unless noCancelOnEscape is set |
| 207 t.EditBoxOnEscapePressed = StaticPopup_EscapePressed | 207 t.EditBoxOnEscapePressed = StaticPopup_EscapePressed |
| 208 end | 208 end |
| 209 | 209 |
| 210 if not t.OnHide then | 210 if not t.OnHide then |
| 211 t.OnHide = OnHide_cleanup | 211 t.OnHide = OnHide_cleanup |
| 212 end | 212 end |
| 213 | 213 |
| 214 t.timeout = 0 | 214 t.timeout = 0 |
| 215 t.whileDead = true | 215 t.whileDead = true |
| 216 t.hideOnEscape = true | 216 t.hideOnEscape = true |
| 217 t.enterClicksFirstButton = true | 217 t.enterClicksFirstButton = true |
| 218 t.preferredIndex = 3 -- http://forums.wowace.com/showthread.php?t=19960 | 218 t.preferredIndex = 3 -- http://forums.wowace.com/showthread.php?t=19960 |
| 219 | 219 |
| 220 return t | 220 return t |
| 221 end | 221 end |
| 222 | 222 |
| 223 | 223 |
| 224 ---------------------------------------------------------------------- | 224 ---------------------------------------------------------------------- |
| 225 --[[ | 225 --[[ |
