mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
23 lines
960 B
Python
23 lines
960 B
Python
|
from direct.showbase.PythonUtil import listToItem2index
|
||
|
from otp.namepanel.PickANamePattern import PickANamePatternTwoPartLastName
|
||
|
from toontown.makeatoon.NameGenerator import NameGenerator
|
||
|
import types
|
||
|
|
||
|
class TTPickANamePattern(PickANamePatternTwoPartLastName):
|
||
|
NameParts = None
|
||
|
LastNamePrefixesCapped = None
|
||
|
|
||
|
def _getNameParts(self, gender):
|
||
|
if TTPickANamePattern.NameParts is None:
|
||
|
TTPickANamePattern.NameParts = {}
|
||
|
ng = NameGenerator()
|
||
|
TTPickANamePattern.NameParts['m'] = ng.getMaleNameParts()
|
||
|
TTPickANamePattern.NameParts['f'] = ng.getFemaleNameParts()
|
||
|
return TTPickANamePattern.NameParts[gender]
|
||
|
|
||
|
def _getLastNameCapPrefixes(self):
|
||
|
if TTPickANamePattern.LastNamePrefixesCapped is None:
|
||
|
ng = NameGenerator()
|
||
|
TTPickANamePattern.LastNamePrefixesCapped = ng.getLastNamePrefixesCapped()[:]
|
||
|
return TTPickANamePattern.LastNamePrefixesCapped
|