diff --git a/frames/bag.lua b/frames/bag.lua index c9e09b95..a29973b9 100644 --- a/frames/bag.lua +++ b/frames/bag.lua @@ -297,7 +297,7 @@ function bagFrame:Create(kind) -- Create the money frame only in the player backpack bag. if kind == const.BAG_KIND.BACKPACK then local moneyFrame = money:Create() - moneyFrame.frame:SetPoint("BOTTOMRIGHT", bottomBar, "BOTTOMRIGHT", 0, 0) + moneyFrame.frame:SetPoint("BOTTOMRIGHT", bottomBar, "BOTTOMRIGHT", -10, 0) moneyFrame.frame:SetParent(b.frame) b.moneyFrame = moneyFrame end @@ -327,7 +327,7 @@ function bagFrame:Create(kind) -- Create the bag content frame. local content = grid:Create(b.frame) content:GetContainer():SetPoint("TOPLEFT", leftHeader, "BOTTOMLEFT", 3, -3) - content:GetContainer():SetPoint("BOTTOMRIGHT", b.frame, "BOTTOMRIGHT", -3, 3) + content:GetContainer():SetPoint("BOTTOMRIGHT", b.frame, "BOTTOMRIGHT", -3, 30) content.compactStyle = const.GRID_COMPACT_STYLE.NONE content:Show() b.content = content diff --git a/util/resize.lua b/util/resize.lua index f0c95479..130c8a01 100644 --- a/util/resize.lua +++ b/util/resize.lua @@ -13,7 +13,7 @@ function resize:MakeResizable(frame) local resizeHandle = CreateFrame("Button", nil, frame) resizeHandle:EnableMouse(true) resizeHandle:SetPoint("BOTTOMRIGHT") - resizeHandle:SetSize(16, 16) + resizeHandle:SetSize(24, 24) resizeHandle:SetNormalTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Down") resizeHandle:SetHighlightTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Highlight") resizeHandle:SetPushedTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Up") @@ -23,8 +23,11 @@ function resize:MakeResizable(frame) resizeHandle:SetScript("OnMouseUp", function(p) p:GetParent():StopMovingOrSizing("BOTTOMRIGHT") end) + resizeHandle:SetScript("OnEnter", function(p) + p:SetAlpha(1) + end) + resizeHandle:SetScript("OnLeave", function(p) + p:SetAlpha(0) + end) + resizeHandle:SetAlpha(0) end - -function resize:HideResize(frame) - -end \ No newline at end of file diff --git a/views/listview.lua b/views/listview.lua index 58fc81da..752a5e98 100644 --- a/views/listview.lua +++ b/views/listview.lua @@ -168,6 +168,7 @@ function views:ListView(bag, dirtyItems) h = 40 end bag.content:ShowScrollBar() + --TODO(lobato): Load this from the database. bag.frame:SetWidth(600) bag.frame:SetHeight(700) end