-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuiAdapter.lua
More file actions
27 lines (24 loc) · 767 Bytes
/
Copy pathuiAdapter.lua
File metadata and controls
27 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
AcceptedUIs = {
["WoW Vanilla"] = {
["GetBindingName"] = vanilla_GetBindingName,
["IsActionButton"] = vanilla_IsActionButton,
},
["Bongos"] = {
["GetBindingName"] = bongos_GetBindingName,
["IsActionButton"] = bongos_IsActionButton,
},
["DiscordActionBars"] = {
["GetBindingName"] = discord_GetBindingName,
["IsActionButton"] = discord_IsActionButton,
},
}
function IsAcceptedUIAddon(name)
return IsInArray(name, AcceptedUIs)
end
function IsActionButton(button, uiAddon)
FBPrint.Debug("Action button detected "..button);
return AcceptedUIs[uiAddon]["IsActionButton"](button)
end
function GetBindingName(button, uiAddon)
return AcceptedUIs[uiAddon]["GetBindingName"](button)
end