| |
Edit: I guess I should add some sort of explanation....
I came across this today while fiddling with a slider object. Sliders created via CreateFrame don't like not having a thumb texture set. Clicking and dragging on the slider causes WoW to crash.
A small example slider:
local f = CreateFrame("Slider",nil,UIParent)
f:SetBackdrop{
bgFile = "Interface/Tooltips/UI-Tooltip-Background",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 16,
insets = {
left = 5, right = 5,
top = 5, bottom = 5
}
}
f:SetBackdropBorderColor(.4,.4,.4)
f:SetBackdropColor(.1,.1,.1)
f:SetWidth(200)
f:SetHeight(200)
local s = f:CreateFontString()
s:SetAllPoints(f)
s:SetFontObject(GameFontNormalSmall)
s:SetText("Click and drag in here to crash!")
f:SetPoint("CENTER",0,0)
[ post edited by Tem ]
What more work? I don't wanna do that. Yes m'Lord.
|