Thread Tools Display Modes
11-15-16, 03:37 AM   #1
fgprodigal
A Murloc Raider
Join Date: Sep 2011
Posts: 4
Question JoinBattleFiled() blocked

I'm writing my own UI now. I find that if we do the following thing step by step:
1. Toggle the MiniMapTrackingDropDown by ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, "cursor")
2. Open LFDFrame using ToggleLFDParentFrame()
3. Click the PVP tab
4. Click JoinBattleField button.

Boom, it is blocked. But if we open the PVPFrame by hotkey, it is okay.
So, does any author know how to fix this. This also happens when no addon is loaded.

PS: Sorry for my English.
  Reply With Quote
11-15-16, 04:05 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Protected functions need a hardware event.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
11-15-16, 02:47 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Some protected functions need a hardware event, many more can only be run by secure code. There's no way around this and even if someone found a way, Blizzard will block it.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
11-15-16, 02:50 PM   #4
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
You typed in that script into the chat box? That's essentially the same as an addon doing it, for the record. But yes, there are a number of issues with dropdown menus tainting stuff, namely the PvP UI.
__________________
Grab your sword and fight the Horde!
  Reply With Quote
11-15-16, 08:44 PM   #5
fgprodigal
A Murloc Raider
Join Date: Sep 2011
Posts: 4
Many UI kill the minimap tracking button, they toggle the minimap tracking dropdown menu by right click the minimap instead (by ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, "cursor")).
Some UI (like ElvUI) can toggle PVE frame by middle clicking the minimap (by ToggleLFDParentFrame()).
So the problem is:
If we toggle minimap tracking dropdown first, then we toggle PVE frame and switch to PVP tab, we can never join the battlefield before reloading ui.
  Reply With Quote
11-15-16, 08:54 PM   #6
fgprodigal
A Murloc Raider
Join Date: Sep 2011
Posts: 4
Originally Posted by Lombra View Post
You typed in that script into the chat box? That's essentially the same as an addon doing it, for the record. But yes, there are a number of issues with dropdown menus tainting stuff, namely the PvP UI.
Yes, just type it in chatbox. JoinBattleField() will be tainted.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » JoinBattleFiled() blocked


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off