Skip to content
Browse files

Several issues fixed

  • Loading branch information...
1 parent cae7af5 commit ccab48c05210dab058b3fd1f22ae006ccf5f8914 @Jaliborc Jaliborc committed Apr 4, 2012
View
4 Bagnon_GuildBank.toc
@@ -5,6 +5,6 @@
## RequiredDeps: Bagnon
## LoadOnDemand: 1
-localization.xml
-components.xml
+localization\localization.xml
+components\components.xml
main.lua
View
13 components.xml
@@ -1,13 +0,0 @@
-<Ui xmlns="http://www.blizzard.com/wow/ui/">
- <Script file="components\item.lua"/>
- <Script file="components\itemFrame.lua"/>
- <Script file="components\frame.lua"/>
- <Script file="components\savedFrameSettings.lua"/>
- <Script file="components\moneyFrame.lua"/>
-
- <Script file="components\tab.lua"/>
- <Script file="components\tabFrame.lua"/>
- <Script file="components\editFrame.lua"/>
- <Script file="components\logFrame.lua"/>
- <Script file="components\logToggle.lua"/>
-</Ui>
View
13 components/components.xml
@@ -0,0 +1,13 @@
+<Ui xmlns="http://www.blizzard.com/wow/ui/">
+ <Script file="item.lua"/>
+ <Script file="itemFrame.lua"/>
+ <Script file="frame.lua"/>
+ <Script file="savedFrameSettings.lua"/>
+ <Script file="moneyFrame.lua"/>
+
+ <Script file="tab.lua"/>
+ <Script file="tabFrame.lua"/>
+ <Script file="editFrame.lua"/>
+ <Script file="logFrame.lua"/>
+ <Script file="logToggle.lua"/>
+</Ui>
View
4 components/item.lua
@@ -122,6 +122,10 @@ function ItemSlot:GetInfo()
return icon, count, locked, quality, nil, nil, link
end
+function ItemSlot:IsQuestItem()
+ return false
+end
+
function ItemSlot:IsCached()
return false
end
View
6 components/itemFrame.lua
@@ -5,9 +5,7 @@
local Bagnon = LibStub('AceAddon-3.0'):GetAddon('Bagnon')
local ItemFrame = Bagnon:NewClass('GuildItemFrame', 'Frame', Bagnon.ItemFrame)
-
ItemFrame.USE_COLUMN_LAYOUT = true
-ItemFrame.MAX_ITEMS = 98
--[[ Events ]]--
@@ -74,6 +72,10 @@ function ItemFrame:GetItemSlot(slot)
return self.itemSlots[slot]
end
+function ItemFrame:GetNumSlots()
+ return 98
+end
+
--[[ Properties ]]--
View
1 components/moneyFrame.lua
@@ -44,6 +44,7 @@ end
function MoneyFrame:UpdateEvents()
self:UnregisterAllEvents()
+
if self:IsVisible() then
self:RegisterEvent('GUILDBANK_UPDATE_MONEY')
end
View
5 localization.xml
@@ -1,5 +0,0 @@
-<Ui xmlns="http://www.blizzard.com/wow/ui/">
- <Script file="localization\en.lua"/>
- <Script file="localization\pt.lua"/>
- <Script file="localization\de.lua"/>
-</Ui>
View
20 localization/cn.lua
@@ -0,0 +1,20 @@
+--[[
+ THIS FILE IS ENCODED IN UTF-8
+
+ Bagnon GuildBank Localization Information: Chinese Simplified
+ Credits: 天下牧@萨格拉斯
+
+ Last Update: 2012/03/27 by 天下牧@萨格拉斯
+
+--]]
+
+local L = LibStub('AceLocale-3.0'):NewLocale('Bagnon-GuildBank', 'zhCN')
+if not L then return end
+
+L.Title = [[%s's 公会银行]]
+L.Log1 = '记录'
+L.Log3 = '信息'
+L.TipFunds = '公会资金'
+L.TipDeposit = '<左键点击> 存款'
+L.TipWithdrawRemaining = '<右键点击> 提取(%s 今日余额)'
+L.TipWithdraw = '<右键点击> 提取'
View
6 localization/localization.xml
@@ -0,0 +1,6 @@
+<Ui xmlns="http://www.blizzard.com/wow/ui/">
+ <Script file="en.lua"/>
+ <Script file="pt.lua"/>
+ <Script file="de.lua"/>
+ <Script file="cn.lua"/>
+</Ui>

0 comments on commit ccab48c

Please sign in to comment.
Something went wrong with that request. Please try again.