Hi, I'm sure this is a really stupid question, but here goes. I am working on an ace mod and I am trying to use Tablet-2.0 for tooltips. I have some code which, greatly reduced, comes down to this:
Code:
local Tablet = AceLibrary("Tablet-2.0")
stup = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceEvent-2.0", "AceDB-2.0")
function MakeTablet()
Tablet:SetTitle("Hi, I am happy =D")
local cat = Tablet:AddCategory(
'id', 'main',
'columns', 2)
cat:AddLine("text1", "OMG", "text2", "Why won't this work? =(")
Tablet:SetHint("I am not happy anymore D=")
end
local myframe = CreateFrame("Frame",nil,UIParent)
stup:Print("Frame Created")
myframe:SetWidth(128)
myframe:SetHeight(128)
myframe:SetPoint("CENTER",0,0)
myframe:Show()
stup:Print("Frame Shown")
Tablet:Register(myframe,
'children',MakeTablet,
'point', function() return "CENTER" end)
stup:Print("Tablet Registed: ", Tablet:IsRegistered(myframe)) -- prints true
Tablet:Open(myframe)
stup:Print("Tablet Opened") --but this is a lie!
So my question is... where is the tablet? I've looked through the API for tablet on the ace website but it doesn't address the steps necessary to just make the tablet appear...am I forgetting something obvious? Thanks