add bindings

This commit is contained in:
Spit
2024-09-24 10:24:30 +03:00
parent 6b7fb02ff0
commit c03715fbd3
2 changed files with 67 additions and 1 deletions
+56
View File
@@ -0,0 +1,56 @@
<Bindings>
<Binding name="ATLASLOOT_TOGGLE" header="ATLASLOOT_TITLE">
AtlasLoot_Toggle()
</Binding>
<Binding name="ATLASLOOT_OPTIONS">
AtlasLootOptions_Toggle()
</Binding>
<Binding name="ATLASLOOT_QL1">
if AtlasLootCharDB["QuickLooks"][1] then
if AtlasFrame and AtlasFrame:IsVisible() then
AtlasLootPanel_Preset1:Click()
else
ShowUIPanel(AtlasLootDefaultFrame)
AtlasLootDefaultFrame_Preset1:Click()
end
end
</Binding>
<Binding name="ATLASLOOT_QL2">
if AtlasLootCharDB["QuickLooks"][2] then
if AtlasFrame and AtlasFrame:IsVisible() then
AtlasLootPanel_Preset2:Click()
else
ShowUIPanel(AtlasLootDefaultFrame)
AtlasLootDefaultFrame_Preset2:Click()
end
end
</Binding>
<Binding name="ATLASLOOT_QL3">
if AtlasLootCharDB["QuickLooks"][3] then
if AtlasFrame and AtlasFrame:IsVisible() then
AtlasLootPanel_Preset3:Click()
else
ShowUIPanel(AtlasLootDefaultFrame)
AtlasLootDefaultFrame_Preset3:Click()
end
end
</Binding>
<Binding name="ATLASLOOT_QL4">
if AtlasLootCharDB["QuickLooks"][4] then
if AtlasFrame and AtlasFrame:IsVisible() then
AtlasLootPanel_Preset4:Click()
else
ShowUIPanel(AtlasLootDefaultFrame)
AtlasLootDefaultFrame_Preset4:Click()
end
end
</Binding>
<Binding name="ATLASLOOT_WISHLIST">
if AtlasFrame and AtlasFrame:IsVisible() then
AtlasLootPanel_WishList:Click()
else
ShowUIPanel(AtlasLootDefaultFrame)
AtlasLootDefaultFrameWishListButton:Click()
end
</Binding>
</Bindings>
+11 -1
View File
@@ -61,6 +61,16 @@ strtrim
]] ]]
--Bindings
BINDING_HEADER_ATLASLOOT_TITLE = "AtlasLoot Bindings"
BINDING_NAME_ATLASLOOT_TOGGLE = "Toggle AtlasLoot"
BINDING_NAME_ATLASLOOT_OPTIONS = "Toggle Options"
BINDING_NAME_ATLASLOOT_QL1 = "QuickLook 1"
BINDING_NAME_ATLASLOOT_QL2 = "QuickLook 2"
BINDING_NAME_ATLASLOOT_QL3 = "QuickLook 3"
BINDING_NAME_ATLASLOOT_QL4 = "QuickLook 4"
BINDING_NAME_ATLASLOOT_WISHLIST = "WishList"
AtlasLoot = AceLibrary("AceAddon-2.0"):new("AceDB-2.0") AtlasLoot = AceLibrary("AceAddon-2.0"):new("AceDB-2.0")
--Instance required libraries --Instance required libraries
@@ -69,7 +79,7 @@ local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
--Establish version number and compatible version of Atlas --Establish version number and compatible version of Atlas
local VERSION_MAJOR = "1"; local VERSION_MAJOR = "1";
local VERSION_MINOR = "1"; local VERSION_MINOR = "1";
local VERSION_BOSSES = "3"; local VERSION_BOSSES = "4";
ATLASLOOT_VERSION = "|cffFF8400AtlasLoot TW Edition v"..VERSION_MAJOR.."."..VERSION_MINOR.."."..VERSION_BOSSES.."|r"; ATLASLOOT_VERSION = "|cffFF8400AtlasLoot TW Edition v"..VERSION_MAJOR.."."..VERSION_MINOR.."."..VERSION_BOSSES.."|r";
ATLASLOOT_CURRENT_ATLAS = "1.12.0"; ATLASLOOT_CURRENT_ATLAS = "1.12.0";
ATLASLOOT_PREVIEW_ATLAS = "1.12.1"; ATLASLOOT_PREVIEW_ATLAS = "1.12.1";