def __updateNametagStyle(self, resetIndex=True):
        if resetIndex:
            self.nametagStyle_index = base.localAvatar.nametagStyles.index(base.localAvatar.getNametagStyle())

        nametagId = base.localAvatar.nametagStyles[self.nametagStyle_index]
        self.nametagStyle_name["text"] = base.localAvatar.getName() + "\n" + TTLocalizer.NametagFontNames[nametagId]
        self.nametagStyle_name["text_font"] = ToontownGlobals.getNametagFont(nametagId)
        nametagCount = len(base.localAvatar.nametagStyles)

        if self.nametagStyle_index >= (nametagCount - 1):
            self.nametagStyle_rightButton.hide()
        else:
            self.nametagStyle_rightButton.show()

        if self.nametagStyle_index <= 0:
            self.nametagStyle_leftButton.hide()

        else:
            self.nametagStyle_leftButton.show()
 def getPicture(self, avatar):
     frame = self.makeFrame()
     inFont = ToontownGlobals.getNametagFont(self.nametagStyle)
     nameTagDemo = DirectLabel(parent=frame, relief=None, pos=(0, 0, 0.24), scale=0.5, text=base.localAvatar.getName(), text_fg=(1.0, 1.0, 1.0, 1), text_shadow=(0, 0, 0, 1), text_font=inFont, text_wordwrap=9)
     self.hasPicture = True
     return (frame, None)