View Single Post
06/27/18, 09:10 AM   #6
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Originally Posted by Baertram View Post
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

Oh my! thank you for the very informative answer. Some years ago i would have certainly worked on that, but now its another matter. Ashamed to even say i dont catch all you explain (age for sure but also some meds i have to take.)

Anyway thank you for taking the time to help me as usual. Do not worry i will as i said just move the map for the time of BG and then place it again where i want it. If age learned me something, its to adapt to some non essential situation
  Reply With Quote