View Single Post
05-13-18, 11:19 PM   #6
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
I thought about hook. Long as that code is not secure code I should be good. I'll do some more testing.

Update: You're right it did taint. I did it thru hooksecurefunction. No taint.

Modified code
Code:
  
  local OldMainMenuBarSetScale = MainMenuBar.SetScale

  local function MySetScale()
    local Width = MainMenuBar:GetWidth() + 40
    MicroButtonAndBagsBar:SetPoint('BOTTOMRIGHT', -Width, 0)
    OldMainMenuBarSetScale(MainMenuBar, 1)
  end

  hooksecurefunc(MainMenuBar, 'SetScale', MySetScale)

Last edited by galvin : 05-14-18 at 12:11 AM.
  Reply With Quote