/trunk/VFL
local fs = VFLUI.CreateFontString(parent); |
VFLUI.SetFont(fs, Fonts.Default, 10); |
fs:SetHeight(10); |
fs:SetJustifyH("LEFT"); fs:SetJustifyV("CENTER"); |
fs:SetJustifyH("LEFT"); fs:SetJustifyV("TOP"); |
fs:SetText(text); fs:SetWidth(fs:GetStringWidth() + 10); |
fs:Show(); |
parent.Destroy = VFL.hook(function() VFLUI.ReleaseRegion(fs); fs = nil; end, parent.Destroy); |