Example #1
0
    def __Open(self, charafile=None):
        if (charafile == None):
            charafile = self.charafile

        self.charafile = charafile
        charas = charas_format.CharasFormat()
        charas.load(charafile)
        return charas
Example #2
0
    def __Open(self, charafile=None):
        if (charafile == None):
            charafile = self.charafile

        self.charafile = charafile
        charas = charas_format.CharasFormat()
        charas.load(charafile)
        self.charalist.setList(charas.jsonTree["Charas"])
Example #3
0
    def getCharas(self):
        self.charaslistSelectionChanged()
        charas = charas_format.CharasFormat()
        for itemIndex in range(self.charaslist.count()):
            charaname = str(self.charaslist.item(itemIndex).aname)
            jt = self.charaslist.item(itemIndex).jsonTree
            charas.addChara(charaname, jt["charaset"], jt["actions"],
                            jt["movements"], jt["properties"])

        return charas