Page 1 of 1

How to get keybinding in Weakauras2 Maxdps spell?

Posted: 01 Oct 2018, 21:23
by usmlord
How do I edit the weakauras MaxDps Spell to show keybinding that the different spells have?

Re: How to get keybinding in Weakauras2 Maxdps spell?

Posted: 02 Oct 2018, 02:04
by Kaminaris
That mite be a bit difficult but doable. Right now in display tab you have this function:
function()
	return aura_env.name or '';
end
You gotta change it like this:
function()
	if aura_env.name == 'Some Spell' then
		return 'Keybind1';
	elseif aura_env.name == 'Some Other Spell' then
		return 'Keybind2';
	elseif aura_env.name == 'Some Yet another Spell' then
		return 'Keybind3';
	elseif aura_env.name == 'Some Spell' then
		return 'Keybind4';
	elseif aura_env.name == 'Some Spell' then
		return 'Keybind5';
		-- and so on
	end
	
	return '';
end
You basically need to map every spell name to keybind. Other than that, there is option to get keybind from button however it would be kinda hard if you have no experience with lua.

This is the easiest way.

Re: How to get keybinding in Weakauras2 Maxdps spell?

Posted: 02 Oct 2018, 12:04
by usmlord
Thanks for reply! Thank you so much for this great addon :)