Skip to content

Commit

Permalink
Cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
JerichoR committed Nov 2, 2024
1 parent 1032938 commit 4c92447
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions Tukui/Modules/Inventory/BagsRetail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Bags:SkinButton(Button)
if not Button then
return
end

Button:StripTextures()
Button:CreateBackdrop()
Button.IconBorder:SetAlpha(0)
Expand All @@ -21,11 +21,11 @@ end
function Bags:SkinButtons()
local Bag = ContainerFrameCombinedBags
local Reagent = ContainerFrame6

for i, Button in Bag:EnumerateValidItems() do
Bags:SkinButton(Button)
end

for i, Button in Reagent:EnumerateValidItems() do
Bags:SkinButton(Button)
end
Expand All @@ -50,7 +50,7 @@ function Bags:UpdateItems()
local QuestID = QuestInfo.questID
local IsActive = QuestInfo.isActive
local R, G, B

if Button.Backdrop then
if Quality then
R, G, B = C_Item.GetItemQualityColor(Quality)
Expand All @@ -60,7 +60,7 @@ function Bags:UpdateItems()
Button.Backdrop:SetBorderColor(unpack(C.General.BorderColor))
end
end

-- Quest Items
if C.Bags.IdentifyQuestItems and IsQuestItem then
if not Button.Quest then
Expand Down Expand Up @@ -93,7 +93,7 @@ function Bags:UpdateItems()
Button.Quest:Hide()
end
end

-- Items Level
if C.Bags.ItemLevel then
if ItemLink then
Expand Down Expand Up @@ -149,32 +149,32 @@ function Bags:SkinContainer()
NineSlice:SetTemplate()
NineSlice:SetFrameLevel(0)
NineSlice:CreateShadow()

CloseButton:SkinCloseButton()

Portrait:Kill()

TokensBorder:Kill()

MoneyBorder:Kill()

SearchBox:StripTextures()
SearchBox:SkinEditBox()

-- Reagent Bag
if ContainerFrame6 then
local ReagentContainer = ContainerFrame6
local ReagentNineSlice = ReagentContainer.NineSlice
local ReagentCloseButton = ReagentContainer.CloseButton
local ReagentPortrait = ContainerFrame6Portrait

ReagentNineSlice:StripTextures()
ReagentNineSlice:SetTemplate()
ReagentNineSlice:SetFrameLevel(0)
ReagentNineSlice:CreateShadow()

ReagentCloseButton:SkinCloseButton()

ReagentPortrait:Kill()
end
end
Expand All @@ -201,27 +201,27 @@ function Bags:Enable()
end

SetCVar("combinedBags", 1)

if C.Bags.SortToBottom then
C_Container.SetSortBagsRightToLeft(false)
C_Container.SetInsertItemsLeftToRight(true)
else
C_Container.SetSortBagsRightToLeft(true)
C_Container.SetInsertItemsLeftToRight(false)
end

-- Create the AIO container on load
ToggleAllBags()
ToggleAllBags()

-- Start doing shit
self:AddHooks()
self:SkinContainer()
self:SkinButtons()

Movers:RegisterFrame(ContainerFrameCombinedBags, "Bags")

T.Print("The bags module is currently under development, please be patient")
end

Inventory.Bags = Bags
Inventory.Bags = Bags

0 comments on commit 4c92447

Please sign in to comment.