Thread Tools Display Modes
06-10-16, 12:33 PM   #1
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
SetScale() bug?

Code:
local PF = CreateFrame('Frame', nil, UIParent)
local F = CreateFrame('Frame', nil, PF)
local T = F:CreateTexture()

T:SetTexture([[Interface\PlayerFrame\UI-PlayerFrame-Deathknight-Ring]])
T:SetAllPoints(F)

F:SetAllPoints(PF)

PF:SetPoint('LEFT')
PF:SetSize(100, 100)

F:SetScale(10)
What I was expecting was frame to be really big. Now if I PF:SetScale it works, but SetScale on F gets ignored. But maybe it always worked this way I dont know.
if I don't use F:SetAllPoints and use F:SetPoint and F:SetSize it works.

Live and beta have the same results.

Ok I think I figured this out. Its trying to scale on all the points, creating something different.

Last edited by galvin : 06-10-16 at 12:48 PM.
  Reply With Quote
06-10-16, 12:51 PM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Code:
F:SetPoint("CENTER")
F:SetSize(100, 100)
F:SetScale(10)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SetScale() bug?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off