View Single Post
05/01/22, 09:11 AM   #12
remosito
AddOn Author - Click to view addons
Join Date: Dec 2019
Posts: 30
Originally Posted by remosito View Post

Now to hunt down the inventory window keybindstrip to get rid of the "Destroy all junk" keybind

if that one behaves differently I'll come back to update my post..
That was fruitless... :-/

When following down data structures always ended up at some strange UserData values...

google made me think this is where it all goes over into C coded functionality...


But found a workaround, ESO calls a predefined Dialog upon pressing that button from ingame/globals/ingamedialogs.lua

So I just overwrote that one in my code:

Code:
	ESO_Dialogs["DESTROY_ALL_JUNK"] = {
		title =	{ text = SI_PROMPT_TITLE_DESTROY_ITEMS, },
		mainText = { text = "Functionality disabled by Addon",},
		buttons = {	[1] = {	text =       SI_DIALOG_DECLINE,	},},
	}
Not as nice, but works....
  Reply With Quote