@@ -0,0 +1,1232 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0AGlyphs%0A - GlyphProperties.dbc%0A%22%22%22%0A%0Afrom .. import *%0Afrom ..globalstrings import *%0A%0A%0Aclass Glyph(Model):%0A%09MAJOR = 0%0A%09MINOR = 1%0A%09PRIME = 2%0A%09%0A%09def getTypeText(self):%0A%09%09return %7B%0A%09%09%09self.MINOR: MINOR_GLYPH,%0A%09%09%09self.MAJOR: MAJOR_GLYPH,%0A%09%09%09self.PRIME: PRIME_GLYPH,%0A%09%09%7D.get(self.obj.type, %22%22)%0A%0Aclass GlyphTooltip(Tooltip):%0A%09def __init__(self, obj, renderer=None):%0A%09%09self.obj = obj%0A%09%09self.renderer = renderer%0A%09%09self.keys = %5B%5D%0A%09%09self.values = %5B%5D%0A%09%0A%09def render(self):%0A%09%09%0A%09%09self.append(%22name%22, self.obj.getName())%0A%09%09self.append(%22type%22, self.obj.getTypeText())%0A%09%09self.append(%22description%22, self.obj.getDescription())%0A%09%09%0A%09%09ret = self.values%0A%09%09self.values = %5B%5D%0A%09%09return ret%0A%0Aclass GlyphProxy(object):%0A%09%22%22%22%0A%09WDBC proxy for glyphs%0A%09%22%22%22%0A%09def __init__(self, cls):%0A%09%09from pywow import wdbc%0A%09%09self.__file = wdbc.get(%22GlyphProperties.dbc%22, build=-1)%0A%09%0A%09def get(self, id):%0A%09%09from ..spells import Spell, SpellProxy%0A%09%09Spell.initProxy(SpellProxy)%0A%09%09row = self.__file%5Bid%5D%0A%09%09self.spell = Spell(row._raw(%22spell%22))%0A%09%09return row%0A%09%0A%09def getDescription(self, row):%0A%09%09return %22blah%22%0A%09%09return self.spell.getDescription()%0A%09%0A%09def getName(self, row):%0A%09%09return self.spell.name_enus%0A%09%0A%09def getSpellIcon(self, row):%0A%09%09return self.spell.getIcon()%0A

Add game.glyphs module