Renewal Affect Shower

  • Konuyu açan Konuyu açan tc1322
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 28
  • Gösterim Gösterim 7K
Syserr:
Genişlet Daralt Kopyala
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           0727 01:16:00046 :: Traceback (most recent call last):

0727 01:16:00046 ::   File "uiAffectShower.py", line 283, in OnMouseOverIn

0727 01:16:00046 :: AttributeError
0727 01:16:00046 :: :
0727 01:16:00046 :: 'ItemToolTip' object has no attribute 'AutoAppendNewTextLineResize'
0727 01:16:00046 ::

Bu sorunu nasıl düzeltebilirim affectlerin üzerine geldiğimde bu syserri alıyorum hiçbir detayda gözükmemekte.
 
Syserr:
Genişlet Daralt Kopyala
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           0727 01:16:00046 :: Traceback (most recent call last):

0727 01:16:00046 ::   File "uiAffectShower.py", line 283, in OnMouseOverIn

0727 01:16:00046 :: AttributeError
0727 01:16:00046 :: :
0727 01:16:00046 :: 'ItemToolTip' object has no attribute 'AutoAppendNewTextLineResize'
0727 01:16:00046 ::

Bu sorunu nasıl düzeltebilirim affectlerin üzerine geldiğimde bu syserri alıyorum hiçbir detayda gözükmemekte.

Python:
Genişlet Daralt Kopyala
AutoAppendNewTextLineResize
fonksiyonu eksik.

uitooltip.py içinde
Python:
Genişlet Daralt Kopyala
class ToolTip(ui.ThinBoardNew):
classı içine bu fonksiyonu ekleyin:
Python:
Genişlet Daralt Kopyala
    def AutoAppendNewTextLineResize(self, text, color = FONT_COLOR, centerAlign = True):
        textLine = ui.TextLine()
        textLine.SetParent(self)
        textLine.SetFontName(self.defFontName)
        textLine.SetPackedFontColor(color)
        textLine.SetText(text)
        textLine.SetOutline()
        textLine.SetFeather(False)
        textLine.Show()
 
        (textWidth, textHeight) = textLine.GetTextSize()
        textWidth += 30
        textHeight += 10
        if self.toolTipWidth < textWidth:
            self.toolTipWidth = textWidth
 
        if centerAlign:
            textLine.SetPosition(self.toolTipWidth/2, self.toolTipHeight)
            textLine.SetHorizontalAlignCenter()
        else:
            textLine.SetPosition(10, self.toolTipHeight)
 
        self.childrenList.append(textLine)
 
        self.toolTipHeight += self.TEXT_LINE_HEIGHT
        self.AlignHorizonalCenter()
        return textLine
 
Python:
Genişlet Daralt Kopyala
AutoAppendNewTextLineResize
fonksiyonu eksik.

uitooltip.py içinde
Python:
Genişlet Daralt Kopyala
class ToolTip(ui.ThinBoardNew):
classı içine bu fonksiyonu ekleyin:
Python:
Genişlet Daralt Kopyala
    def AutoAppendNewTextLineResize(self, text, color = FONT_COLOR, centerAlign = True):
        textLine = ui.TextLine()
        textLine.SetParent(self)
        textLine.SetFontName(self.defFontName)
        textLine.SetPackedFontColor(color)
        textLine.SetText(text)
        textLine.SetOutline()
        textLine.SetFeather(False)
        textLine.Show()
 
        (textWidth, textHeight) = textLine.GetTextSize()
        textWidth += 30
        textHeight += 10
        if self.toolTipWidth < textWidth:
            self.toolTipWidth = textWidth
 
        if centerAlign:
            textLine.SetPosition(self.toolTipWidth/2, self.toolTipHeight)
            textLine.SetHorizontalAlignCenter()
        else:
            textLine.SetPosition(10, self.toolTipHeight)
 
        self.childrenList.append(textLine)
 
        self.toolTipHeight += self.TEXT_LINE_HEIGHT
        self.AlignHorizonalCenter()
        return textLine
Teşekkürler kaptanbey sorunum çözüldü
 
Kod:
Genişlet Daralt Kopyala
0908 03:19:12188 :: Traceback (most recent call last):

0908 03:19:12188 ::   File "game.py", line 749, in SetAffect

0908 03:19:12188 ::   File "uiAffectShower.py", line 526, in SetAffect

0908 03:19:12188 ::   File "uiAffectShower.py", line 602, in __AppendAffect

0908 03:19:12188 :: AttributeError
0908 03:19:12188 :: :
0908 03:19:12188 :: 'AffectImage' object has no attribute 'SetEvent'
0908 03:19:12188 ::

0908 03:19:15233 :: Traceback (most recent call last):

0908 03:19:15233 ::   File "uiAffectShower.py", line 287, in OnMouseOverIn

0908 03:19:15233 ::   File "uiToolTip.py", line 1977, in SetSkillEx

0908 03:19:15234 :: TypeError
0908 03:19:15234 :: :
0908 03:19:15234 :: an integer is required
0908 03:19:15234 ::

bu hataları alıyorum
 
Kod:
Genişlet Daralt Kopyala
0908 03:19:12188 :: Traceback (most recent call last):

0908 03:19:12188 ::   File "game.py", line 749, in SetAffect

0908 03:19:12188 ::   File "uiAffectShower.py", line 526, in SetAffect

0908 03:19:12188 ::   File "uiAffectShower.py", line 602, in __AppendAffect

0908 03:19:12188 :: AttributeError
0908 03:19:12188 :: :
0908 03:19:12188 :: 'AffectImage' object has no attribute 'SetEvent'
0908 03:19:12188 ::

0908 03:19:15233 :: Traceback (most recent call last):

0908 03:19:15233 ::   File "uiAffectShower.py", line 287, in OnMouseOverIn

0908 03:19:15233 ::   File "uiToolTip.py", line 1977, in SetSkillEx

0908 03:19:15234 :: TypeError
0908 03:19:15234 :: :
0908 03:19:15234 :: an integer is required
0908 03:19:15234 ::

bu hataları alıyorum
BU Hatayı bende alıyorum çözümü bilen varmı ?
 
Uyarı: Bu konu açıldığından bu yana baya zaman geçmiş.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.
Geri
Üst