Lua Code:
local f = CreateFrame("Frame", nil, UIParent)
local t = f:CreateFontString(f, "OVERLAY", "GameTooltipText")
t:SetText("Great Vault")
f:SetSize(t:GetSize())
t:SetPoint("CENTER")
f:SetPoint("TOP", XIV_Databar, "BOTTOM", 0, 0) -- set f position relative to XIV_Databar
f:SetScript("OnMouseDown", function (self, button)
if button=='LeftButton' then
LoadAddOn("Blizzard_WeeklyRewards");
WeeklyRewardsFrame:Show()
end
end)