- Mesaj
- 239
- Çözümler
- 7
- Beğeni
- 526
- Puan
- 805
- Ticaret Puanı
- 1
ufak bir info vereyim sana işine yarar;gui mantığı nasıl işliyor bir öğrensem neler neler yapacamda işte gui oluşturmayı bilmiyorum.
playtime py:
def UpdateInfos(self, crrTitle, nextTitle, leftVal, affText):
if crrTitle == 0:
self.wndDict['crrIcon'].Hide()
else:
self.wndDict['crrIcon'].LoadImage(PATH + "rutbe_%s.png"%crrTitle)
self.wndDict['crrIcon'].Show()
self.wndDict['nextIcon'].LoadImage(PATH + "rutbe_%s.png"%nextTitle)
self.wndDict['left_text'].SetText("Kalan oyun suresi: {}".format(leftVal))
affText = affText.split('|')
affText.pop(0)
for idx, text in enumerate(affText):
tempText = list(text.split(','))
key = "aff_info%d"%idx
infoText = uitooltip.GET_AFFECT_STRING(int(tempText[0]), int(tempText[1]))
if self.wndDict.has_key(key) and infoText:
self.wndDict[key].SetText(infoText)