- Mesaj
- 383
- Çözümler
- 11
- Beğeni
- 212
- Puan
- 749
- Ticaret Puanı
- 0
Hello, friends. I'm having trouble with a function that displays item details in the event item field, for example, the capture of the king. I've tried many things, but I have very little experience with Python, so I haven't been able to find a suitable solution.
When I hover over the card slots in the system window, the purpose details should appear, but this doesn't happen.
This is the function that contains the error in the file uiminigamecatchking.py
Kod:
0513 03:34:41460 :: Traceback (most recent call last):
0513 03:34:41460 :: File "ui.py", line 2237, in OnOverInItem
0513 03:34:41461 :: File "ui.py", line 94, in __call__
0513 03:34:41461 :: File "ui.py", line 85, in __call__
0513 03:34:41461 :: TypeError
0513 03:34:41461 :: :
0513 03:34:41461 :: __SlotOverInItem() takes exactly 3 arguments (2 given)
0513 03:34:41461 ::
When I hover over the card slots in the system window, the purpose details should appear, but this doesn't happen.
Linkleri görebilmek için
giriş yap veya kayıt ol.
This is the function that contains the error in the file uiminigamecatchking.py
Kod:
if app.ENABLE_CATCH_KING_EVENT_FLAG_RENEWAL:
def __SlotOverInItem(self, slot_index, vnum):
if self.tooltip_item:
self.tooltip_item.SetItemToolTip(vnum)
def __SlotOverOutItem(self):
if self.tooltip_item:
self.tooltip_item.HideToolTip()
def SetItemToolTip(self, tooltip):
self.tooltip_item = tooltip
def DecreaseMiniGameCatchKingCardCount(self):
self.card_pack_count = max(0, self.card_pack_count - 1)
self.card_pack_text.SetText("%d/%d" % (self.card_pack_count, CATCHKING_CARD_COUNT_MAX))
def CatchKingFlagProcess(self, type, data):
(card_piece_count, card_pack_count) = data
self.card_piece_count = card_piece_count
self.card_pack_count = card_pack_count
self.card_piece_text.SetText("%d/%d" % (self.card_piece_count, CATCHKING_CARD_PIECE_COUNT_MAX))
self.card_pack_text.SetText("%d/%d" % (self.card_pack_count, CATCHKING_CARD_COUNT_MAX))