From d87cc0a1e4c6156f23df565d1d3ae3d80e3fe264 Mon Sep 17 00:00:00 2001 From: Anch Date: Thu, 22 Sep 2022 15:22:12 +1200 Subject: [PATCH] added some comments --- AtlasLoot/Core/AtlasLoot.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AtlasLoot/Core/AtlasLoot.lua b/AtlasLoot/Core/AtlasLoot.lua index 1dd3b72..4696acd 100644 --- a/AtlasLoot/Core/AtlasLoot.lua +++ b/AtlasLoot/Core/AtlasLoot.lua @@ -457,14 +457,19 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource, tablenum) difType = true; end + -- Saves current types ItemindexID ATLASLOOT_TYPE[dataSource[dataID].Type] = ItemindexID; -- Set current type ATLASLOOT_CURRENTTYPE = dataSource[dataID].Type or "Default"; + -- Loads the difficultys into the scrollFrame AtlasLoot:ScrollFrameUpdate(); + + -- Sets the main page lable AtlasLoot_BossName:SetText(dataSource[dataID][tablenum].Name); + -- Moves the difficulty scrollslider if the difficulty has changed if difType and #AtlasLoot_Difficulty[dataSource[dataID].Type] > 5 then local min, max = AtlasLootDefaultFrameScrollScrollBar:GetMinMaxValues(); AtlasLootDefaultFrameScrollScrollBar:SetValue(ItemindexID * (max / #AtlasLoot_Difficulty[dataSource[dataID].Type]));