View Single Post
06/27/18, 07:44 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,966
I'm not playing BGs but the toplevelcontrol of the battleground HUD is named:
Code:
ZO_BattlegroundHudTopLevel_Keyboard
Maybe you can try to use a script or put code in another addon's EVENT_PLAYER_ACTIVATED (or prehhok the function function BattlegroundHUDFragment:OnPlayerActivated() and add your code in there) for the hud control to make it movable (if it's possible), somehow like this:

Code:
/script if ZO_BattlegroundHudTopLevel_Keyboard then ZO_BattlegroundHudTopLevel_Keyboard:SetMouseEnabled(true) ZO_BattlegroundHudTopLevel_Keyboard:SetMovable(true) end
If the control ZO_BattlegroundHudTopLevel_Keyboard is not accessible directly from the script you might use the FRAGMENT used for the BG hud, BATTLEGROUND_HUD_FRAGMENT, and use it's "control" which should relate to this XML toplevelcontrol:

Code:
/script if BATTLEGROUND_HUD_FRAGMENT and BATTLEGROUND_HUD_FRAGMENT.control then local c = BATTLEGROUND_HUD_FRAGMENT.control c:SetMouseEnabled(true) c:SetMovable(true) end
  Reply With Quote