Added PBN nametag font

This commit is contained in:
John 2015-05-28 21:01:37 +03:00 committed by Loudrob
parent 755c9afc6a
commit 8c47aa0fd0
3 changed files with 4 additions and 13 deletions

View file

@ -43,12 +43,6 @@ class CatalogNametagItem(CatalogItem.CatalogItem):
else:
name = name + TTLocalizer.NametagLabel
return name
if self.nametagStyle == 0:
name = TTLocalizer.NametagCitizen
elif self.nametagStyle == 1:
name = TTLocalizer.NametagAction
elif self.nametagStyle == 2:
name = TTLocalizer.NametagFrilly
def recordPurchase(self, avatar, optional):
if avatar:

View file

@ -4899,8 +4899,6 @@ def nametagStyle(nametagStyle):
currentAccess = spellbook.getInvokerAccess()
if nametagStyle >= len(TTLocalizer.NametagFontNames):
return 'Invalid nametag style.'
if nametagStyle != 0 and nametagStyle != 10 and currentAccess == CATEGORY_MODERATOR.defaultAccess:
return 'Invalid access level!'
target = spellbook.getTarget()
target.b_setNametagStyle(nametagStyle)
return 'Nametag style set to: %s.' % TTLocalizer.NametagFontNames[nametagStyle]

View file

@ -30,7 +30,8 @@ NametagFonts = (
'phase_3/models/fonts/Danger.bam',
'phase_3/models/fonts/Alie.bam',
'phase_3/models/fonts/OysterBar.bam',
'phase_3/models/fonts/RedDogSaloon.bam'
'phase_3/models/fonts/RedDogSaloon.bam',
'phase_3/models/fonts/PBN.ttf'
)
NametagFontNames = (
'Default',
@ -47,7 +48,8 @@ NametagFontNames = (
'Action',
'Poetic',
'Boardwalk',
'Western'
'Western',
'Pixelated'
)
NametagLabel = ' Nametag'
BasicNameTag = 'Basic'
@ -5038,9 +5040,6 @@ EstateCannonGameEnd = 'The Cannon Game rental is over.'
GameTableRentalEnd = 'The Game Table rental is over.'
MessageConfirmRent = 'Begin rental? Cancel to save the rental for later'
MessageConfirmGarden = 'Are you sure you want to start a garden?'
NametagCitizen = 'Citizen Name Tag'
NametagAction = 'Action Name Tag'
NametagFrilly = 'Frilly Name Tag'
FurnitureYourOldCloset = 'your old wardrobe'
FurnitureYourOldBank = 'your old bank'
FurnitureYourOldTrunk = 'your old trunk'