##Bul
if not self.hpGauge.IsShow():
self.SetSize(200 + 7*self.nameLength, self.GetHeight() + 30)
if localeInfo.IsARABIC():
self.name.SetPosition( self.GetWidth()-23, 13)
self.name.SetPosition(self.GetWidth()-23, 13)
else:
self.name.SetPosition(23, 13)
self.name.SetPosition(-5, 10)
self.name.SetWindowHorizontalAlignCenter()
self.name.SetHorizontalAlignCenter()
self.hpGauge.Show()
self.UpdatePosition()
## Değiştir.
if not self.hpGauge.IsShow():
textWidth, textHeight = self.name.GetTextSize()
boardWidth = textWidth + 60
boardHeight = 70
self.SetSize(boardWidth, boardHeight)
# İsim ortala
self.name.SetWindowHorizontalAlignCenter()
self.name.SetHorizontalAlignCenter()
self.name.SetPosition(0, 10)
# HP Bar ortala
self.hpGauge.SetWindowHorizontalAlignCenter()
self.hpGauge.SetPosition(0, 30)
self.hpGauge.Show()
# HP Yazı ortala
self.hpDecimal.SetWindowHorizontalAlignCenter()
self.hpDecimal.SetHorizontalAlignCenter()
self.hpDecimal.SetPosition(0, 47)
self.hpDecimal.Show()
self.UpdatePosition()