Thread Tools Display Modes
02-07-14, 02:03 PM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
UIParent scale

Looking for an event or a hook function when the UIParent:GetScale() gets changed.
  Reply With Quote
02-07-14, 02:24 PM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Lua Code:
  1. UIParent:HookScript('OnSizeChanged', function(self, width, height)
  2.   print('OnSizeChanged')
  3. end)
  Reply With Quote
02-07-14, 02:43 PM   #3
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Thanks.

Why i havn't tought about this.
  Reply With Quote
02-07-14, 08:06 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Curious... why do you need to know when the scale changes?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-08-14, 09:25 AM   #5
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
So i can rescale the distance between a model camera's target and it's position on the fly, according to the current UI scale.

It's for my PlantsVsGhouls project i'll release a video later this night with the new features since i need some alpha testers for different screen resouliton and ui scale tests.

Last edited by Resike : 02-08-14 at 09:31 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » UIParent scale


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