How to get keybinding in Weakauras2 Maxdps spell?

Questions about addon itself.
3 posts Page 1 of 1
usmlord
Posts: 2
Joined: 01 Oct 2018, 21:19


How do I edit the weakauras MaxDps Spell to show keybinding that the different spells have?
Kaminaris
Site Admin
Posts: 352
Joined: 25 Jun 2017, 03:45


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.
usmlord
Posts: 2
Joined: 01 Oct 2018, 21:19


Thanks for reply! Thank you so much for this great addon :)
3 posts Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany