View Single Post
03-17-19, 03:55 AM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Changing actionbars attribute in secure env

Hi all,

I had and still have a problem that I post some day ago about trying to scale a ActionBar:
https://www.wowinterface.com/forums/...ad.php?t=57047


The problem is still there even if Fizzlemizz and Terenna suggest some changes at the code.

I have tried to use someting like:
Lua Code:
  1. MultiBarRight:HookScript('OnSizeChanged', function()
  2.     if not UnitAffectingCombat("player") then
  3.         if MultiBarRight:GetScale() > 0.81 then
  4.             MultiBarRight:SetScale(0.8)
  5.         end
  6.     end
  7. end)

and I have seen that this bar changes a lot of time during gameplay from scale 0.8 to 1 (probably when the function is called in combat or on some state that make UnitAffectingCombat("player") true.

For example I had always an error when exit from "BeachHead" quest of Tortollan Seekers but using the :
Lua Code:
  1. if not UnitAffectingCombat("player") then
  2. ...
  3. end

there isn't error anymore, even if I have the ActionBar scale = 1 instead of 0.8 it was started the quest with.

Now I am here to ask if it is possible to have some clues on how generate a secure enviroment to make changes to UI element during combat or other state that can generate a taint.

Thanks so much.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote