Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eyal-wowhub/tooltipbuilder
A library that provides a fluent interface to the GameTooltip APIs, making it easier to manage tooltip lines and customize their appearance.
https://github.com/eyal-wowhub/tooltipbuilder
lib library lua world-of-warcraft world-of-warcraft-addon wow wow-addon
Last synced: 16 days ago
JSON representation
A library that provides a fluent interface to the GameTooltip APIs, making it easier to manage tooltip lines and customize their appearance.
- Host: GitHub
- URL: https://github.com/eyal-wowhub/tooltipbuilder
- Owner: Eyal-WowHub
- Created: 2025-01-04T22:18:40.000Z (20 days ago)
- Default Branch: main
- Last Pushed: 2025-01-05T13:35:00.000Z (19 days ago)
- Last Synced: 2025-01-05T14:33:27.341Z (19 days ago)
- Topics: lib, library, lua, world-of-warcraft, world-of-warcraft-addon, wow, wow-addon
- Language: Lua
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TooltipBuilder
A library that provides a fluent interface to the GameTooltip APIs, making it easier to manage tooltip lines and customize their appearance.
#### Dependencies: [LibStub](https://www.curseforge.com/wow/addons/libstub), [Contracts](https://github.com/Eyal-WowHub/Contracts)
### Examples:
```lua
local Tooltip = LibStub("TooltipBuilder-1.0")
```1. Build a single line tooltip.
```lua
Tooltip
:SetLine("Hello from TooltipBuilder")
:SetPlayerClassColor()
:ToLine()
```2. Build a double line tooltip.
```lua
Tooltip
:SetLine("Hello")
:SetWhiteColor()
:SetLine("TooltipBuilder")
:SetPlayerClassColor()
:ToLine()
```