ToonTownRewritten/toontown/dna/DNAStoreFont.py
2014-04-06 04:49:32 -06:00

19 lines
486 B
Python

from DNAStorageElement import DNAStorageElement
from DNAParser import *
class DNAStoreFont(DNAStorageElement):
TAG = 'store_font'
PARENTS = ['storage']
def __init__(self, root, code, path):
DNAStorageElement.__init__(self)
self.root = root
self.code = code
self.path = path
def _store(self, storage):
font = loader.loadFont(self.path)
storage.storeFont(font, self.code, self.getScope())
registerElement(DNAStoreFont)