Fixed Make-A-Toon warping, fix names, add phallic and phallus to blacklist

This commit is contained in:
DenialMC 2015-04-05 17:32:34 +03:00
parent 0e9e48ceff
commit 5539bf7ca9
3 changed files with 11 additions and 5 deletions

View file

@ -94,7 +94,10 @@ class MakeAToon(StateData.StateData):
self.toon.gender = 'd' self.toon.gender = 'd'
self.toon.reparentTo(render) self.toon.reparentTo(render)
self.toon.loop('neutral') self.toon.loop('neutral')
self.toon.setPosHpr(-4.1, -2, 0, 200, 0, 0) self.toon.setScale(self.toonScale)
self.spotlight.setPos(2, -1.95, 0.41)
self.toon.setPos(Point3(1.5, -4, 0))
self.toon.setH(120)
self.guiTopBar.show() self.guiTopBar.show()
self.guiBottomBar.show() self.guiBottomBar.show()
self.guiCancelButton.show() self.guiCancelButton.show()

View file

@ -48,21 +48,23 @@ def executeHttpRequest(url, extras):
except: except:
return None return None
notify = directNotify.newCategory('ClientServicesManagerUD')
def executeHttpRequestAndLog(url, **extras): def executeHttpRequestAndLog(url, **extras):
response = executeHttpRequest(url, extras) response = executeHttpRequest(url, extras)
if response is None: if response is None:
self.notify.error('A request to ' + url + ' went wrong.') notify.error('A request to ' + url + ' went wrong.')
return None return None
try: try:
data = json.loads(response) data = json.loads(response)
except: except:
self.notify.error('Malformed response from ' + url + '.') notify.error('Malformed response from ' + url + '.')
return None return None
if 'error' in data: if 'error' in data:
self.notify.warning('Error from ' + url + ':' + data['error']) notify.warning('Error from ' + url + ':' + data['error'])
return None return None
return data return data
@ -151,6 +153,7 @@ class RemoteAccountDB(AccountDB):
def addNameRequest(self, avId, name): def addNameRequest(self, avId, name):
executeHttpRequestAndLog('nameadd', id=avId, name=name) executeHttpRequestAndLog('nameadd', id=avId, name=name)
return True
def getNameStatus(self, avId): def getNameStatus(self, avId):
data = executeHttpRequestAndLog('nameget', id=avId) data = executeHttpRequestAndLog('nameget', id=avId)

File diff suppressed because one or more lines are too long