UI Scale position resetting #1724


Open
  • molieeee created this issue Feb 17, 2022

    So I'm trying to drop ELVUI and move to SUF. As part of that to preserve UI Scale I had to create and addon that will run UIParent set scale command at login. That seems to be working well outside of it's interaction with SUF. So when I login my frames are moved by a bit until I enter options and lock/unlock frames. They reposition to where they should be after doing that - but doing that every single login will kill my willigness to move to SUF. Any tips on how to fix that?

  • subkool posted a comment May 26, 2022

    +1

  • Xarth_Onasi posted a comment Jul 9, 2022

    I managed to fix this issue by doing a few changes, I believe the main issue for my case comes from using another addon "UIScale" that changes the UI scale below what is in the default options. Here is what I did:

     

    1: Update the UIScale addon to use "PLAYER_LOGIN" instead of "PLAYER_ENTERING_WORLD"

    2: Update SUF file "ShadowedUnitFrames.lua" to use "PLAYER_ENTERING_WORLD" instead of "PLAYER_LOGIN"

     

    By doing this it fixes the load sequence of the addons and SUF gets the correct UI scale. I am not sure what drawbacks/issues this could have but I have not seen any so far. You can also hardcode your UI scale in the SUF files "layout.lua" - "scale = frame:GetScale() * UIParent:GetScale()" if you don't want to mess with the loading.

     

     


    Edited Jul 9, 2022

To post a comment, please login or register a new account.