From 07d4b9aaafd32293bef1a646ad0f5d30af2b61a6 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 5 Nov 2016 01:06:18 +0100 Subject: [PATCH] bags: fix indentation --- modules/bags.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/bags.lua b/modules/bags.lua index 5e340c6c..f82d5081 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -204,7 +204,7 @@ pfUI:RegisterModule("bags", function () for slot=1, GetContainerNumSlots(bag) do if not pfUI.bags[bag].slots[slot] then - local tpl = "ContainerFrameItemButtonTemplate" + local tpl = "ContainerFrameItemButtonTemplate" if bag == -1 then tpl = "BankItemButtonGenericTemplate" end pfUI.bags[bag].slots[slot] = {} pfUI.bags[bag].slots[slot].frame = CreateFrame("Button", "pfBag" .. bag .. "item" .. slot, pfUI.bags[bag], tpl) @@ -258,7 +258,7 @@ pfUI:RegisterModule("bags", function () -- avoid vertexcolor updates on item buttons function SetItemButtonNormalTextureVertexColor() return end - local texture, count, locked, quality = GetContainerItemInfo(bag, slot) + local texture, count, locked, quality = GetContainerItemInfo(bag, slot) pfUI.bags[bag].slots[slot].frame:SetBackdrop({ bgFile = texture, tile = true, tileSize = pfUI.bag.button_size, edgeFile = "Interface\\AddOns\\pfUI\\img\\border_col", edgeSize = 8, @@ -371,8 +371,8 @@ pfUI:RegisterModule("bags", function () local left = (slot-min)*(pfUI.bag.button_size/5*4+pfUI_config.bars.border) + pfUI_config.bars.border*2 local top = -2 * pfUI_config.bars.border - frame.bagslots.slots[slot].frame:ClearAllPoints() - frame.bagslots.slots[slot].frame:SetPoint("TOPLEFT", frame.bagslots, "TOPLEFT", left, top) + frame.bagslots.slots[slot].frame:ClearAllPoints() + frame.bagslots.slots[slot].frame:SetPoint("TOPLEFT", frame.bagslots, "TOPLEFT", left, top) frame.bagslots.slots[slot].frame:SetHeight(pfUI.bag.button_size/5*4) frame.bagslots.slots[slot].frame:SetWidth(pfUI.bag.button_size/5*4) @@ -409,12 +409,12 @@ pfUI:RegisterModule("bags", function () frame.bagslots.slots[slot].frame:Show() - local numSlots, full = GetNumBankSlots() - if ( slot <= numSlots ) then - frame.bagslots.slots[slot].frame.tooltipText = BANK_BAG - else - frame.bagslots.slots[slot].frame.tooltipText = BANK_BAG_PURCHASE - end + local numSlots, full = GetNumBankSlots() + if ( slot <= numSlots ) then + frame.bagslots.slots[slot].frame.tooltipText = BANK_BAG + else + frame.bagslots.slots[slot].frame.tooltipText = BANK_BAG_PURCHASE + end end if frame == pfUI.bag.left then