Skip to content
Snippets Groups Projects
Commit 517a8dcb authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'hotkey_extract' into 'master'

Pulls the actual parsing of a hotkey into an icon out into its own function

Modifies `engines\default\engine\HotkeysIconDisplay.lua` to better support addons. The current call to `display()` draws every hotkey over the course of a nested iteration, which means that if someone wishes to modify this behavior (e.g. have flagged talents use a different border color, or support multiple talent icons to denote different states of a talent), the entire `display()` function must be entirely replaced. This isn't ideal as these modifications are mutually exclusive.

This MR splits the actual parsing of a hotkey into a `displayHotkey()` function (with appropriate arguments) so that addon developers can safely superload the hotkey drawing behavior.

**This MR is save-safe.**

See merge request !691
parents 083f6152 3d86911b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment