"hızlıca yapılmış bir eklenti daha sonra düzenleme gelebilir"
uiguild.py arat:
Python:
self.enemyDataDict["TEXT"] = scoreText
Python:
self.bScoreText = ui.TextLine()
self.bScoreText.SetParent(self)
self.bScoreText.SetPosition(30, 10 + 18*2)
self.bScoreText.SetHorizontalAlignLeft()
self.bScoreText.Show()
Python:
def __RefreshName(self):
Python:
def OnUpdate(self):
aScore=self.allyDataDict["SCORE"]
bScore=self.enemyDataDict["SCORE"]
diff = ((aScore - bScore) if aScore > bScore else (bScore - aScore))
self.bScoreText.SetText("Fark: "+str(diff))
Python:
diff = ((aScore - bScore) if aScore > bScore else (bScore - aScore))