https://github.com/jaliborc/securetabs-2.0
Adds functional blizzard looking tabs to secure panels without causing taint.
https://github.com/jaliborc/securetabs-2.0
library lua tabs world-of-warcraft
Last synced: 8 months ago
JSON representation
Adds functional blizzard looking tabs to secure panels without causing taint.
- Host: GitHub
- URL: https://github.com/jaliborc/securetabs-2.0
- Owner: Jaliborc
- Created: 2013-12-07T18:01:01.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-01-12T18:55:18.000Z (about 1 year ago)
- Last Synced: 2025-04-03T20:51:11.552Z (about 1 year ago)
- Topics: library, lua, tabs, world-of-warcraft
- Language: Lua
- Homepage:
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# SecureTabs-2.0 :bookmark_tabs:
[](https://www.patreon.com/jaliborc)
[](https://www.paypal.me/jaliborc)
[](https://bit.ly/discord-jaliborc)
Adds functional blizzard looking tabs to secure panels without causing taint.
:bulb: Note that it is not possible to hide the original content of the panel without causing taint.
As such, you should create a frame that covers the original content. When your tab is selected, your frame will be shown and the end result will be the same.
### Usage Example
This code adds a tab to the `MerchantFrame`, which manages displaying a custom `MyFrame` whenever the tab is selected:
```
local tab = LibStub('SecureTabs-2.0'):Add(MerchantFrame)
tab:SetText('My Tab Title')
tab.frame = MyFrame
tab.OnSelect = function()
print('Tab was clicked!')
end
tab.OnDeselect = function()
print('A different tab was clicked!')
end
```
`MyFrame` is optional. You can manage behaviour yourself using `.OnSelect` and `OnDeselect`. Just make sure to not cause taint if you do.
### :warning: Reminder!
If you use this library, please list it as one of your dependencies in the CurseForge admin system. It's a big help! :+1: