marty 5.8 de kaldırmıyor bendede 5.7 de sorun yoktuskill kaldırmıyor yaşayan var mı ?
marty 5.8 de kaldırmıyor bendede 5.7 de sorun yoktuskill kaldırmıyor yaşayan var mı ?
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 ::
Syserr: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.
AutoAppendNewTextLineResize
class ToolTip(ui.ThinBoardNew):
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üfonksiyonu eksik.Python:AutoAppendNewTextLineResize
uitooltip.py içinde
classı içine bu fonksiyonu ekleyin:Python:class ToolTip(ui.ThinBoardNew):
Python: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
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 ::
11426 eklentisini görüntüle
Hadi sistemi yazanı anlarımda bide şunu premium ayağına satıyolar
Alıntılarda özel içerikler gözükmez.
Linkleri görebilmek için giriş yap veya kayıt ol.
BU Hatayı bende alıyorum çözümü bilen varmı ?Kod: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