- Joined
- Jun 26, 2020
- Messages
- 1,928
Hello, I made this custom tooltip using the method the set the height of the text frame to 0 to auto-set according to the text and then setting the backdrop a bit bigger than the text:
But for some reason the tooltip frame appears as having 0 size:
I don't know what is happening, I used this exact method several times and this is the first time its happening this issue, I even tried setting the size of the backdrop manually with the
Lua:
local lockFrame = BlzCreateFrameByType("BACKDROP", "BackdropLockCosmeticEffect[" .. id .. "]", button, "", 0)
BlzFrameSetAllPoints(backdrop, button)
BlzFrameSetTexture(backdrop, "ReplaceableTextures\\CommandButtons\\BTNLock.blp", 0, true)
BlzFrameSetLevel(lockFrame, 2)
local tooltip = BlzCreateFrame("CheckListBox", lockFrame, 0, 0)
local tooltipText = BlzCreateFrameByType("TEXT", "name", tooltip, "", 0)
BlzFrameSetPoint(tooltipText, FRAMEPOINT_BOTTOMLEFT, lockFrame, FRAMEPOINT_CENTER, 0.0000, 0.0000)
BlzFrameSetEnable(tooltipText, false)
BlzFrameSetScale(tooltipText, 1.00)
BlzFrameSetTextAlignment(tooltipText, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT)
BlzFrameSetText(tooltipText, unlockDesc)
BlzFrameSetSize(tooltipText, 0.15, 0)
BlzFrameSetPoint(tooltip, FRAMEPOINT_TOPLEFT, tooltipText, FRAMEPOINT_TOPLEFT, -0.015000, 0.015000)
BlzFrameSetPoint(tooltip, FRAMEPOINT_BOTTOMRIGHT, tooltipText, FRAMEPOINT_BOTTOMRIGHT, 0.015000, -0.015000)
I don't know what is happening, I used this exact method several times and this is the first time its happening this issue, I even tried setting the size of the backdrop manually with the
BlzFrameSetSize
, but still, what's wrong?