
Cod: Selectaţi tot
def __init__(self):Cod: Selectaţi tot
hpGauge = uiGauge()
hpGauge.SetParent(self)
hpGauge.MakeGauge(130, "red")
hpGauge.Hide()Cod: Selectaţi tot
hpPercentxt = ui.TextLine()
hpPercenttxt.SetParent(self)
hpPercenttxt.SetPosition(160, 13)
hpPercenttxt.SetText("")
hpPercenttxt.Hide()Cod: Selectaţi tot
self.name = name
self.hpGauge = hpGaugeCod: Selectaţi tot
self.hpPercenttxt = hpPercenttxtCod: Selectaţi tot
def Destroy(self):Cod: Selectaţi tot
self.hpPercenttxt = NoneCod: Selectaţi tot
def ResetTargetBoard(self):Cod: Selectaţi tot
self.hpGauge.Hide()Cod: Selectaţi tot
selfhpPercenttxt.Hide()cautam :
Cod: Selectaţi tot
def SetHP(self, hpPercentage)Cod: Selectaţi tot
self.UpdatePosition()Cod: Selectaţi tot
self.hpPercentxtSetPosition(200 + 7*self.nameLength-205, 13)
self.hpPercenttxt.Show()Cod: Selectaţi tot
self.hpGauge.SetPercentage(hpPercentage, 100)Cod: Selectaţi tot
self.hpPercenttxt.SetText("%d%%" % (hpPercentage))[Sursa=]metin2dev.org[/Sursa]



