-
Posted by ksignorini on Fri, 28 May 2010 15:17:30
When I built my original main addon frame, I forgot to make it a child of UIParent. Now, when I put parent="UIParent" into the frame tag, my entire addon frame becomes very tiny.
Why is this?
-
Posted by jnwhiteh on Fri, 28 May 2010 18:53:22
Because the effective scale of your frame is the product of the scale of your frame and the effective scale of your parent's frame. This means if your UI scale is set to something low it will make your frames smaller. If you use scaling in your own addon, this will be compounded. You can easily adjust all of this.
-
Posted by ksignorini on Fri, 28 May 2010 19:27:57
OK, so three further questions come to mind:
Am I better off leaving it bound to UIParent and adding some scaling?
Am I better off leaving it bound to UIParent and re-adjusting all my sizing / dimensions so it looks right on my screen now?
If I do not bind it to UIParent at all, how will this affect how others see my addon on their screens?
Thanks again.
-
Posted by jnwhiteh on Sat, 29 May 2010 00:20:00
OK, so three further questions come to mind:
- Am I better off leaving it bound to UIParent and adding some scaling?
You shouldn't be using scaling in the first place, imo (and you may not be).
- Am I better off leaving it bound to UIParent and re-adjusting all my sizing / dimensions so it looks right on my screen now?
Your frame should be parented to UIParent and should be a particular size that can be configured by the user (perhaps by adjusting scale from the default of 1.0). This allows them to make things bigger and smaller as they'd like, but will match the default user interface.
- If I do not bind it to UIParent at all, how will this affect how others see my addon on their screens?
Alt-Z won't hide your frames, and I'm sure there are other bits. It's just good practice and you should always try to do it (UIScale being the perfect reason why).
-
Posted by ksignorini on Sat, 29 May 2010 07:55:22
OK. I'll bind it to UIParent and then readjust my size numbers.
Thanks again.