View Single Post
07/13/18, 08:29 PM   #2
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
That would be because SetDimension changes the dimensions, not the scale. For textures, it does change the scale, but I think those might be the only things. So what you could do is change the dimension of the window, as well as all the textures in it. However, there's an easier way. If you use SetScale instead, child controls will be scaled appropriately. The only caveat is that anchors are not scaled, so if you have a large offset, it'll look pretty weird. To get around this, anchor things to whatever is right next to it, instead of the parent. You may also need to introduce some 'dummy' controls, which only serve to make an 'anchor' that scales.
  Reply With Quote