<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,7 +12,7 @@ local frame
 for i,t in pairs(CUTS) do for _,id in pairs(t) do GameTooltip:SetHyperlink(&quot;item:&quot;..id) end end
 
 
-local cutframes, knowncombines, frame = {}, {}
+local rawframes, cutframes, knowncombines, frame = {}, {}, {}
 function Panda:CreateCutGreenBluePanel()
 	local function SetupFrame(f, id, secure)
 		local name, link, _, _, _, _, _, _, _, texture = GetItemInfo(id)
@@ -33,6 +33,10 @@ function Panda:CreateCutGreenBluePanel()
 		local price = Panda:GetAHBuyout(id)
 		text:SetText(GS(price))
 
+		local count = f:CreateFontString(nil, &quot;ARTWORK&quot;, &quot;NumberFontNormalSmall&quot;)
+		count:SetPoint(&quot;BOTTOMRIGHT&quot;, icon, &quot;BOTTOMRIGHT&quot;, -2, 2)
+		f.count = count
+
 		if secure and self.canJC then
 			f:SetAlpha(knowncombines[f.name] and 1 or 0.25)
 			f:SetAttribute(&quot;type&quot;, &quot;macro&quot;)
@@ -55,6 +59,7 @@ function Panda:CreateCutGreenBluePanel()
 		end
 		rowanchor = f
 		lastframe = SetupFrame(f, rawid)
+		rawframes[rawid] = f
 
 		for j,id in ipairs(CUTS[rawid]) do
 			local f = CreateFrame(&quot;CheckButton&quot;, nil, frame, &quot;SecureActionButtonTemplate&quot;)
@@ -73,6 +78,7 @@ function Panda:CreateCutGreenBluePanel()
 		end
 		rowanchor = f
 		lastframe = SetupFrame(f, rawid)
+		rawframes[rawid] = f
 
 		for j,id in ipairs(CUTS[rawid]) do
 			local f = CreateFrame(&quot;CheckButton&quot;, nil, frame, &quot;SecureActionButtonTemplate&quot;)
@@ -108,7 +114,16 @@ function Panda:CreateCutGreenBluePanel()
 		b:SetAttribute(&quot;macrotext&quot;, &quot;/run CloseTradeSkill()\n/cast Jewelcrafting\n/run CloseTradeSkill()&quot;)
 	end
 
-	frame:SetScript(&quot;OnShow&quot;, function() OpenBackpack() end)
+	frame:SetScript(&quot;OnShow&quot;, function()
+		OpenBackpack()
+		self:RegisterEvent(&quot;BAG_UPDATE&quot;, &quot;GemCutBagUpdate&quot;)
+		self:GemCutBagUpdate()
+	end)
+	frame:SetScript(&quot;OnHide&quot;, function() self:UnregisterEvent(&quot;BAG_UPDATE&quot;) end)
+
+	OpenBackpack()
+	self:RegisterEvent(&quot;BAG_UPDATE&quot;, &quot;GemCutBagUpdate&quot;)
+	self:GemCutBagUpdate()
 
 	self.CreateCutGreenBluePanel = nil -- Don't need this function anymore!
 	return frame
@@ -122,3 +137,16 @@ function Panda:TRADE_SKILL_SHOW()
 	end
 	for id,f in pairs(cutframes) do f:SetAlpha((not self.canJC or knowncombines[f.name]) and 1 or 0.25) end
 end
+
+
+function Panda:GemCutBagUpdate()
+	for id,f in pairs(cutframes) do
+		local count = GetItemCount(id)
+		f.count:SetText(count &gt; 0 and count or &quot;&quot;)
+	end
+
+	for id,f in pairs(rawframes) do
+		local count = GetItemCount(id)
+		f.count:SetText(count &gt; 0 and count or &quot;&quot;)
+	end
+end</diff>
      <filename>GemCutting.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fc4bb8a6668ee9b7122fac9f58b40b783d049324</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/panda/commit/c4a19191db6ba5f7fdbb3204f94def8fe2ae412d</url>
  <id>c4a19191db6ba5f7fdbb3204f94def8fe2ae412d</id>
  <committed-date>2008-01-30T22:14:32-08:00</committed-date>
  <authored-date>2008-01-30T22:14:32-08:00</authored-date>
  <message>Add bag item counts to GemCutting frame</message>
  <tree>baf106022fe9534ea7fd68b5301ba931e7290fa9</tree>
  <committer>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
