Thread Tools Display Modes
10-16-20, 10:38 PM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Protected call

Hi,

I have made an addons that deals with displaying guild mates (gmGuild / gmGuildFriends).

It can shows the roster of the guild by pressing the LDB icon.
The problem is when you try to interact with the roster because a lot of function are protected.

Example:

Lua Code:
  1. 1x [ADDON_ACTION_FORBIDDEN] AddOn 'gmGuild' tried to call the protected function 'SetGuildRankOrder()'.
  2. [string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
  3. [string "=[C]"]: in function `SetGuildRankOrder'
  4. [string "@Blizzard_Communities\GuildRoster.lua"]:174: in function `func'
  5. [string "@SharedXML\UIDropDownMenu.lua"]:905: in function `UIDropDownMenuButton_OnClick'
  6. [string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>


The code I use is this:

Lua Code:
  1. if button == "LeftButton" then
  2.         ToggleGuildFrame()
  3.         if IsInGuild() then    
  4.             CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.ROSTER)
  5.         end
  6.     end

Is possible to secure this call ?

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

WoWInterface » Developer Discussions » Lua/XML Help » Protected call

Thread Tools
Display Modes

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