Mercurial > wow > ouroloot
comparison gui.lua @ 44:a561a967b5e6
Add simple button to Blizzard options. Fix case insensitivity of tab title scanning from command line.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Fri, 20 Jan 2012 10:46:58 +0000 |
| parents | 78a25e2d25bf |
| children | 0b1e703a6954 |
comparison
equal
deleted
inserted
replaced
| 43:78a25e2d25bf | 44:a561a967b5e6 |
|---|---|
| 2012 display:Show() -- without this, only appears every *other* function call | 2012 display:Show() -- without this, only appears every *other* function call |
| 2013 return display | 2013 return display |
| 2014 end | 2014 end |
| 2015 | 2015 |
| 2016 function addon:OpenMainDisplayToTab (text) | 2016 function addon:OpenMainDisplayToTab (text) |
| 2017 text = '^'..text | 2017 text = '^'..text:lower() |
| 2018 for tab,v in pairs(_tabtexts) do | 2018 for tab,v in pairs(_tabtexts) do |
| 2019 if v.title:lower():find(text) then | 2019 if v.title:lower():find(text) then |
| 2020 self:BuildMainDisplay(tab) | 2020 self:BuildMainDisplay(tab) |
| 2021 return true | 2021 return true |
| 2022 end | 2022 end |
