Jump to content

Digest Jan-Feb

We talk about what was done and updated in the past month. We help keep abreast of events.

January February

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

The Addons Updater

Let us to introduce the addons updating software and to share the details

Read more Download

How to remove box after auto loot


Condemned

Recommended Posts

How do I remove a box that is on the screen from a group loot after my addon has already rolled on that item?

Every time an item appears my addon rolls greed but the box still remains on the screen. Is there a way to close the box once the loot choice is made?

Link to comment
Share on other sites

The easiest way is to reboot the system addon ContextUniMessageBox:

function CloseMsgboxes() 
common.StateUnloadManagedAddon( "ContextUniMessageBox" ) 
common.StateLoadManagedAddon( "ContextUniMessageBox" ) 
end

 

Link to comment
Share on other sites

I was able to do it with this code by using the Widgets addon and finding the name of the window

	local MsgBox = stateMainForm:GetChildChecked("LootMaster", false):GetChildChecked("MainPanel", false)
	if MsgBox:IsVisible() then
		MsgBox:Show(false)
	end

 

Link to comment
Share on other sites

I'm still having issues with the loot code not working correctly. Also I can't seem to get common.LogInfo("",text) to ever log anything to chat so I can try to debug parts of the code to see which parts are not working. How do I get loginfo to work?

Link to comment
Share on other sites

common.LogInfo( "common", text ), where text is a string or WString https://alloder.pro/md/LuaApi/FunctionCommonLogInfo.html

if you want it simpler and faster, you can add the system LogInfo in the AddonDesc. (UIAddon) .xdb to the system LogInfo:

<Item href="/Mods/SampleCommon/SampleAddonBase.lua"/>

And just use the function LogInfo(something).

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use