Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Python problem pomimo tego że go nie ma...


Rekomendowane odpowiedzi

Opublikowano

witam mam problem z takim errorem:
 

 

 

0409 19:59:06556 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiAffectShower.py(line:8) <module>
system.py(line:130) __pack_import
 
networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiToolTip.py, line 322)
 
0409 19:59:06556 :: ============================================================================================================
0409 19:59:06556 :: Abort!!!!

 
 
plik uzyskałem od jednego z techników gdy mi pomagał, niestety aktualnie znajduje się w szpitalu więc nie ma mi jak pomóc a mnie ten problem irytuje gdyż nie wiem dlaczego występuje...

tutaj wycinek z uitooltip:

https://pastebin.com/QRB66x65
 
nie wiem dlaczego problem się wyświetla pomimo tego że nie ma tam spacji a taby sa odpowiednio postawione 
 
Opublikowano

  1. import dbg
  2. import player
  3. import item
  4. import grp
  5. import wndMgr
  6. import skill
  7. import shop
  8. import exchange
  9. import grpText
  10. import safebox
  11. import localeInfo
  12. import app
  13. import background
  14. import nonplayer
  15. import chr
  16.  
  17. import ui
  18. import mouseModule
  19. import constInfo
  20.  
  21. WARP_SCROLLS = [22011, 22000, 22010]
  22.  
  23. DESC_DEFAULT_MAX_COLS = 26
  24. DESC_WESTERN_MAX_COLS = 35
  25. DESC_WESTERN_MAX_WIDTH = 220
  26.  
  27. def chop(n):
  28.     return round(n - 0.5, 1)
  29.  
  30. def SplitDescription(desc, limit):
  31.     total_tokens = desc.split()
  32.     line_tokens = []
  33.     line_len = 0
  34.     lines = []
  35.     for token in total_tokens:
  36.         if "|" in token:
  37.             sep_pos = token.find("|")
  38.             line_tokens.append(token[:sep_pos])
  39.  
  40.             lines.append(" ".join(line_tokens))
  41.             line_len = len(token) - (sep_pos + 1)
  42.             line_tokens = [token[sep_pos+1:]]
  43.         else:
  44.             line_len += len(token)
  45.             if len(line_tokens) + line_len > limit:
  46.                 lines.append(" ".join(line_tokens))
  47.                 line_len = len(token)
  48.                 line_tokens = [token]
  49.             else:
  50.                 line_tokens.append(token)
  51.    
  52.     if line_tokens:
  53.         lines.append(" ".join(line_tokens))
  54.  
  55.     return lines
  56.  
  57. ###################################################################################################
  58. ## ToolTip
  59. ##
  60. ##   NOTE : ??? Item? Skill? ???? ?? ?????
  61. ##          ??? ??? ??? ?? ??
  62. ##
  63. class ToolTip(ui.ThinBoard):
  64.  
  65.     TOOL_TIP_WIDTH = 190
  66.     TOOL_TIP_HEIGHT = 10
  67.  
  68.     TEXT_LINE_HEIGHT = 17
  69.  
  70.     TITLE_COLOR = grp.GenerateColor(0.9490, 0.9058, 0.7568, 1.0)
  71.     SPECIAL_TITLE_COLOR = grp.GenerateColor(1.0, 0.7843, 0.0, 1.0)
  72.     NORMAL_COLOR = grp.GenerateColor(0.7607, 0.7607, 0.7607, 1.0)
  73.     FONT_COLOR = grp.GenerateColor(0.7607, 0.7607, 0.7607, 1.0)
  74.     PRICE_COLOR = 0xffFFB96D
  75.  
  76.     HIGH_PRICE_COLOR = SPECIAL_TITLE_COLOR
  77.     MIDDLE_PRICE_COLOR = grp.GenerateColor(0.85, 0.85, 0.85, 1.0)
  78.     LOW_PRICE_COLOR = grp.GenerateColor(0.7, 0.7, 0.7, 1.0)
  79.  
  80.     ENABLE_COLOR = grp.GenerateColor(0.7607, 0.7607, 0.7607, 1.0)
  81.     DISABLE_COLOR = grp.GenerateColor(0.9, 0.4745, 0.4627, 1.0)
  82.  
  83.     NEGATIVE_COLOR = grp.GenerateColor(0.9, 0.4745, 0.4627, 1.0)
  84.     POSITIVE_COLOR = grp.GenerateColor(0.5411, 0.7254, 0.5568, 1.0)
  85.     SPECIAL_POSITIVE_COLOR = grp.GenerateColor(0.6911, 0.8754, 0.7068, 1.0)
  86.     SPECIAL_POSITIVE_COLOR2 = grp.GenerateColor(0.8824, 0.9804, 0.8824, 1.0)
  87.     BIGGEST_VALUE_COLOR = SPECIAL_TITLE_COLOR
  88.  
  89.     CONDITION_COLOR = 0xffBEB47D
  90.     CAN_LEVEL_UP_COLOR = 0xff8EC292
  91.     CANNOT_LEVEL_UP_COLOR = DISABLE_COLOR
  92.     NEED_SKILL_POINT_COLOR = 0xff9A9CDB
  93.  
  94.     def __init__(self, width = TOOL_TIP_WIDTH, isPickable=False):
  95.         ui.ThinBoard.__init__(self, "TOP_MOST")
  96.  
  97.         if isPickable:
  98.             pass
  99.         else:
  100.             self.AddFlag("not_pick")
  101.  
  102.         self.AddFlag("float")
  103.  
  104.         self.followFlag = True
  105.         self.toolTipWidth = width
  106.  
  107.         self.xPos = -1
  108.         self.yPos = -1
  109.  
  110.         self.defFontName = localeInfo.UI_DEF_FONT
  111.         self.ClearToolTip()
  112.  
  113.     def __del__(self):
  114.         ui.ThinBoard.__del__(self)
  115.  
  116.     def ClearToolTip(self):
  117.         self.toolTipHeight = 12
  118.         self.childrenList = []
  119.  
  120.     def SetFollow(self, flag):
  121.         self.followFlag = flag
  122.  
  123.     def SetDefaultFontName(self, fontName):
  124.         self.defFontName = fontName
  125.  
  126.     def AppendSpace(self, size):
  127.         self.toolTipHeight += size
  128.         self.ResizeToolTip()
  129.  
  130.     def AppendHorizontalLine(self):
  131.  
  132.         for i in xrange(2):
  133.             horizontalLine = ui.Line()
  134.             horizontalLine.SetParent(self)
  135.             horizontalLine.SetPosition(0, self.toolTipHeight + 3 + i)
  136.             horizontalLine.SetWindowHorizontalAlignCenter()
  137.             horizontalLine.SetSize(150, 0)
  138.             horizontalLine.Show()
  139.  
  140.             if 0 == i:
  141.                 horizontalLine.SetColor(0xff555555)
  142.             else:
  143.                 horizontalLine.SetColor(0xff000000)
  144.  
  145.             self.childrenList.append(horizontalLine)
  146.  
  147.         self.toolTipHeight += 11
  148.         self.ResizeToolTip()
  149.  
  150.     def AlignHorizonalCenter(self):
  151.         for child in self.childrenList:
  152.             (x, y)=child.GetLocalPosition()
  153.             child.SetPosition(self.toolTipWidth/2, y)
  154.  
  155.         self.ResizeToolTip()
  156.  
  157.     def AutoAppendTextLine(self, text, color = FONT_COLOR, centerAlign = True):
  158.         textLine = ui.TextLine()
  159.         textLine.SetParent(self)
  160.         textLine.SetFontName(self.defFontName)
  161.         textLine.SetPackedFontColor(color)
  162.         textLine.SetText(text)
  163.         textLine.SetOutline()
  164.         textLine.SetFeather(False)
  165.         textLine.Show()
  166.  
  167.         if centerAlign:
  168.             textLine.SetPosition(self.toolTipWidth/2, self.toolTipHeight)
  169.             textLine.SetHorizontalAlignCenter()
  170.  
  171.         else:
  172.             textLine.SetPosition(10, self.toolTipHeight)
  173.  
  174.         self.childrenList.append(textLine)
  175.  
  176.         (textWidth, textHeight)=textLine.GetTextSize()
  177.  
  178.         textWidth += 40
  179.         textHeight += 5
  180.  
  181.         if self.toolTipWidth < textWidth:
  182.             self.toolTipWidth = textWidth
  183.  
  184.         self.toolTipHeight += textHeight
  185.  
  186.         return textLine
  187.  
  188.     def AppendTextLine(self, text, color = FONT_COLOR, centerAlign = True):
  189.         textLine = ui.TextLine()
  190.         textLine.SetParent(self)
  191.         textLine.SetFontName(self.defFontName)
  192.         textLine.SetPackedFontColor(color)
  193.         textLine.SetText(text)
  194.         textLine.SetOutline()
  195.         textLine.SetFeather(False)
  196.         textLine.Show()
  197.  
  198.         if centerAlign:
  199.             textLine.SetPosition(self.toolTipWidth/2, self.toolTipHeight)
  200.             textLine.SetHorizontalAlignCenter()
  201.  
  202.         else:
  203.             textLine.SetPosition(10, self.toolTipHeight)
  204.  
  205.         self.childrenList.append(textLine)
  206.  
  207.         self.toolTipHeight += self.TEXT_LINE_HEIGHT
  208.         self.ResizeToolTip()
  209.  
  210.         return textLine
  211.  
  212.     def AppendDescription(self, desc, limit, color = FONT_COLOR):
  213.         if localeInfo.IsEUROPE():
  214.             self.__AppendDescription_WesternLanguage(desc, color)
  215.         else:
  216.             self.__AppendDescription_EasternLanguage(desc, limit, color)
  217.  
  218.     def __AppendDescription_EasternLanguage(self, description, characterLimitation, color=FONT_COLOR):
  219.         length = len(description)
  220.         if 0 == length:
  221.             return
  222.  
  223.         lineCount = grpText.GetSplitingTextLineCount(description, characterLimitation)
  224.         for i in xrange(lineCount):
  225.             if 0 == i:
  226.                 self.AppendSpace(5)
  227.             self.AppendTextLine(grpText.GetSplitingTextLine(description, characterLimitation, i), color)
  228.  
  229.     def __AppendDescription_WesternLanguage(self, desc, color=FONT_COLOR):
  230.         lines = SplitDescription(desc, DESC_WESTERN_MAX_COLS)
  231.         if not lines:
  232.             return
  233.  
  234.         self.AppendSpace(5)
  235.         for line in lines:
  236.             self.AppendTextLine(line, color)
  237.            
  238.  
  239.     def ResizeToolTip(self):
  240.         self.SetSize(self.toolTipWidth, self.TOOL_TIP_HEIGHT + self.toolTipHeight)
  241.  
  242.     def SetTitle(self, name):
  243.         self.AppendTextLine(name, self.TITLE_COLOR)
  244.  
  245.     def GetLimitTextLineColor(self, curValue, limitValue):
  246.         if curValue < limitValue:
  247.             return self.DISABLE_COLOR
  248.  
  249.         return self.ENABLE_COLOR
  250.  
  251.     def GetChangeTextLineColor(self, value, isSpecial=False):
  252.         if value > 0:
  253.             if isSpecial:
  254.                 return self.SPECIAL_POSITIVE_COLOR
  255.             else:
  256.                 return self.POSITIVE_COLOR
  257.  
  258.         if 0 == value:
  259.             return self.NORMAL_COLOR
  260.  
  261.         return self.NEGATIVE_COLOR
  262.  
  263.     def SetToolTipPosition(self, x = -1, y = -1):
  264.         self.xPos = x
  265.         self.yPos = y
  266.  
  267.     def ShowToolTip(self):
  268.         self.SetTop()
  269.         self.Show()
  270.  
  271.         self.OnUpdate()
  272.  
  273.     def HideToolTip(self):
  274.         self.Hide()
  275.  
  276.     def OnUpdate(self):
  277.  
  278.         if not self.followFlag:
  279.             return
  280.  
  281.         x = 0
  282.         y = 0
  283.         width = self.GetWidth()
  284.         height = self.toolTipHeight
  285.  
  286.         if -1 == self.xPos and -1 == self.yPos:
  287.  
  288.             (mouseX, mouseY) = wndMgr.GetMousePosition()
  289.  
  290.             if mouseY < wndMgr.GetScreenHeight() - 300:
  291.                 y = mouseY + 40
  292.             else:
  293.                 y = mouseY - height - 30
  294.  
  295.             x = mouseX - width/2              
  296.  
  297.         else:
  298.  
  299.             x = self.xPos - width/2
  300.             y = self.yPos - height
  301.  
  302.         x = max(x, 0)
  303.         y = max(y, 0)
  304.         x = min(x + width/2, wndMgr.GetScreenWidth() - width/2) - width/2
  305.         y = min(y + self.GetHeight(), wndMgr.GetScreenHeight()) - self.GetHeight()
  306.  
  307.         parentWindow = self.GetParentProxy()
  308.         if parentWindow:
  309.             (gx, gy) = parentWindow.GetGlobalPosition()
  310.             x -= gx
  311.             y -= gy
  312.  
  313.         self.SetPosition(x, y)
  314.  
  315. class ItemToolTip(ToolTip):
  316.  
  317.     if app.ENABLE_SEND_TARGET_INFO:
  318.         isStone = False
  319.         isBook = False
  320.         isBook2 = False
  321.  
  322.     CHARACTER_NAMES = {
  323.         localeInfo.TOOLTIP_WARRIOR,
  324.         localeInfo.TOOLTIP_ASSASSIN,
  325.         localeInfo.TOOLTIP_SURA,
  326.         localeInfo.TOOLTIP_SHAMAN
  327.     }      
  328.  
  329.     CHARACTER_COUNT = len(CHARACTER_NAMES)
  330.     WEAR_NAMES = {
  331.         localeInfo.TOOLTIP_ARMOR,
  332.         localeInfo.TOOLTIP_HELMET,
  333.         localeInfo.TOOLTIP_SHOES,
  334.         localeInfo.TOOLTIP_WRISTLET,
  335.         localeInfo.TOOLTIP_WEAPON,
  336.         localeInfo.TOOLTIP_NECK,
  337.         localeInfo.TOOLTIP_EAR,
  338.         localeInfo.TOOLTIP_UNIQUE,
  339.         localeInfo.TOOLTIP_SHIELD,
  340.         localeInfo.TOOLTIP_ARROW,
  341.     }
  342.     WEAR_COUNT = len(WEAR_NAMES)
  343.  
  344.     AFFECT_DICT = {
  345.         item.APPLY_MAX_HP : localeInfo.TOOLTIP_MAX_HP,
  346.         item.APPLY_MAX_SP : localeInfo.TOOLTIP_MAX_SP,
  347.         item.APPLY_CON : localeInfo.TOOLTIP_CON,
  348.         item.APPLY_INT : localeInfo.TOOLTIP_INT,
  349.         item.APPLY_STR : localeInfo.TOOLTIP_STR,
  350.         item.APPLY_DEX : localeInfo.TOOLTIP_DEX,
  351.         item.APPLY_ATT_SPEED : localeInfo.TOOLTIP_ATT_SPEED,
  352.         item.APPLY_MOV_SPEED : localeInfo.TOOLTIP_MOV_SPEED,
  353.         item.APPLY_CAST_SPEED : localeInfo.TOOLTIP_CAST_SPEED,
  354.         item.APPLY_HP_REGEN : localeInfo.TOOLTIP_HP_REGEN,
  355.         item.APPLY_SP_REGEN : localeInfo.TOOLTIP_SP_REGEN,
  356.         item.APPLY_POISON_PCT : localeInfo.TOOLTIP_APPLY_POISON_PCT,
  357.         item.APPLY_STUN_PCT : localeInfo.TOOLTIP_APPLY_STUN_PCT,
  358.         item.APPLY_SLOW_PCT : localeInfo.TOOLTIP_APPLY_SLOW_PCT,
  359.         item.APPLY_CRITICAL_PCT : localeInfo.TOOLTIP_APPLY_CRITICAL_PCT,
  360.         item.APPLY_PENETRATE_PCT : localeInfo.TOOLTIP_APPLY_PENETRATE_PCT,
  361.  
  362.         item.APPLY_ATTBONUS_WARRIOR : localeInfo.TOOLTIP_APPLY_ATTBONUS_WARRIOR,
  363.         item.APPLY_ATTBONUS_ASSASSIN : localeInfo.TOOLTIP_APPLY_ATTBONUS_ASSASSIN,
  364.         item.APPLY_ATTBONUS_SURA : localeInfo.TOOLTIP_APPLY_ATTBONUS_SURA,
  365.         item.APPLY_ATTBONUS_SHAMAN : localeInfo.TOOLTIP_APPLY_ATTBONUS_SHAMAN,
  366.         item.APPLY_ATTBONUS_MONSTER : localeInfo.TOOLTIP_APPLY_ATTBONUS_MONSTER,
  367.  
  368.         item.APPLY_ATTBONUS_HUMAN : localeInfo.TOOLTIP_APPLY_ATTBONUS_HUMAN,
  369.         item.APPLY_ATTBONUS_ANIMAL : localeInfo.TOOLTIP_APPLY_ATTBONUS_ANIMAL,
  370.         item.APPLY_ATTBONUS_ORC : localeInfo.TOOLTIP_APPLY_ATTBONUS_ORC,
  371.         item.APPLY_ATTBONUS_MILGYO : localeInfo.TOOLTIP_APPLY_ATTBONUS_MILGYO,
  372.         item.APPLY_ATTBONUS_UNDEAD : localeInfo.TOOLTIP_APPLY_ATTBONUS_UNDEAD,
  373.         item.APPLY_ATTBONUS_DEVIL : localeInfo.TOOLTIP_APPLY_ATTBONUS_DEVIL,
  374.         item.APPLY_STEAL_HP : localeInfo.TOOLTIP_APPLY_STEAL_HP,
  375.         item.APPLY_STEAL_SP : localeInfo.TOOLTIP_APPLY_STEAL_SP,
  376.         item.APPLY_MANA_BURN_PCT : localeInfo.TOOLTIP_APPLY_MANA_BURN_PCT,
  377.         item.APPLY_DAMAGE_SP_RECOVER : localeInfo.TOOLTIP_APPLY_DAMAGE_SP_RECOVER,
  378.         item.APPLY_BLOCK : localeInfo.TOOLTIP_APPLY_BLOCK,
  379.         item.APPLY_DODGE : localeInfo.TOOLTIP_APPLY_DODGE,
  380.         item.APPLY_RESIST_SWORD : localeInfo.TOOLTIP_APPLY_RESIST_SWORD,
  381.         item.APPLY_RESIST_TWOHAND : localeInfo.TOOLTIP_APPLY_RESIST_TWOHAND,
  382.         item.APPLY_RESIST_DAGGER : localeInfo.TOOLTIP_APPLY_RESIST_DAGGER,
  383.         item.APPLY_RESIST_BELL : localeInfo.TOOLTIP_APPLY_RESIST_BELL,
  384.         item.APPLY_RESIST_FAN : localeInfo.TOOLTIP_APPLY_RESIST_FAN,
  385.         item.APPLY_RESIST_BOW : localeInfo.TOOLTIP_RESIST_BOW,
  386.         item.APPLY_RESIST_FIRE : localeInfo.TOOLTIP_RESIST_FIRE,
  387.         item.APPLY_RESIST_ELEC : localeInfo.TOOLTIP_RESIST_ELEC,
  388.         item.APPLY_RESIST_MAGIC : localeInfo.TOOLTIP_RESIST_MAGIC,
  389.         item.APPLY_RESIST_WIND : localeInfo.TOOLTIP_APPLY_RESIST_WIND,
  390.         item.APPLY_REFLECT_MELEE : localeInfo.TOOLTIP_APPLY_REFLECT_MELEE,
  391.         item.APPLY_REFLECT_CURSE : localeInfo.TOOLTIP_APPLY_REFLECT_CURSE,
  392.         item.APPLY_POISON_REDUCE : localeInfo.TOOLTIP_APPLY_POISON_REDUCE,
  393.         item.APPLY_KILL_SP_RECOVER : localeInfo.TOOLTIP_APPLY_KILL_SP_RECOVER,
  394.         item.APPLY_EXP_DOUBLE_BONUS : localeInfo.TOOLTIP_APPLY_EXP_DOUBLE_BONUS,
  395.         item.APPLY_GOLD_DOUBLE_BONUS : localeInfo.TOOLTIP_APPLY_GOLD_DOUBLE_BONUS,
  396.         item.APPLY_ITEM_DROP_BONUS : localeInfo.TOOLTIP_APPLY_ITEM_DROP_BONUS,
  397.         item.APPLY_POTION_BONUS : localeInfo.TOOLTIP_APPLY_POTION_BONUS,
  398.         item.APPLY_KILL_HP_RECOVER : localeInfo.TOOLTIP_APPLY_KILL_HP_RECOVER,
  399.         item.APPLY_IMMUNE_STUN : localeInfo.TOOLTIP_APPLY_IMMUNE_STUN,
  400.         item.APPLY_IMMUNE_SLOW : localeInfo.TOOLTIP_APPLY_IMMUNE_SLOW,
  401.         item.APPLY_IMMUNE_FALL : localeInfo.TOOLTIP_APPLY_IMMUNE_FALL,
  402.         item.APPLY_BOW_DISTANCE : localeInfo.TOOLTIP_BOW_DISTANCE,
  403.         item.APPLY_DEF_GRADE_BONUS : localeInfo.TOOLTIP_DEF_GRADE,
  404.         item.APPLY_ATT_GRADE_BONUS : localeInfo.TOOLTIP_ATT_GRADE,
  405.         item.APPLY_MAGIC_ATT_GRADE : localeInfo.TOOLTIP_MAGIC_ATT_GRADE,
  406.         item.APPLY_MAGIC_DEF_GRADE : localeInfo.TOOLTIP_MAGIC_DEF_GRADE,
  407.         item.APPLY_MAX_STAMINA : localeInfo.TOOLTIP_MAX_STAMINA,
  408.         item.APPLY_MALL_ATTBONUS : localeInfo.TOOLTIP_MALL_ATTBONUS,
  409.         item.APPLY_MALL_DEFBONUS : localeInfo.TOOLTIP_MALL_DEFBONUS,
  410.         item.APPLY_MALL_EXPBONUS : localeInfo.TOOLTIP_MALL_EXPBONUS,
  411.         item.APPLY_MALL_ITEMBONUS : localeInfo.TOOLTIP_MALL_ITEMBONUS,
  412.         item.APPLY_MALL_GOLDBONUS : localeInfo.TOOLTIP_MALL_GOLDBONUS,
  413.         item.APPLY_SKILL_DAMAGE_BONUS : localeInfo.TOOLTIP_SKILL_DAMAGE_BONUS,
  414.         item.APPLY_NORMAL_HIT_DAMAGE_BONUS : localeInfo.TOOLTIP_NORMAL_HIT_DAMAGE_BONUS,
  415.         item.APPLY_SKILL_DEFEND_BONUS : localeInfo.TOOLTIP_SKILL_DEFEND_BONUS,
  416.         item.APPLY_NORMAL_HIT_DEFEND_BONUS : localeInfo.TOOLTIP_NORMAL_HIT_DEFEND_BONUS,
  417.         item.APPLY_PC_BANG_EXP_BONUS : localeInfo.TOOLTIP_MALL_EXPBONUS_P_STATIC,
  418.         item.APPLY_PC_BANG_DROP_BONUS : localeInfo.TOOLTIP_MALL_ITEMBONUS_P_STATIC,
  419.         item.APPLY_RESIST_WARRIOR : localeInfo.TOOLTIP_APPLY_RESIST_WARRIOR,
  420.         item.APPLY_RESIST_ASSASSIN : localeInfo.TOOLTIP_APPLY_RESIST_ASSASSIN,
  421.         item.APPLY_RESIST_SURA : localeInfo.TOOLTIP_APPLY_RESIST_SURA,
  422.         item.APPLY_RESIST_SHAMAN : localeInfo.TOOLTIP_APPLY_RESIST_SHAMAN,
  423.         item.APPLY_MAX_HP_PCT : localeInfo.TOOLTIP_APPLY_MAX_HP_PCT,
  424.         item.APPLY_MAX_SP_PCT : localeInfo.TOOLTIP_APPLY_MAX_SP_PCT,
  425.         item.APPLY_ENERGY : localeInfo.TOOLTIP_ENERGY,
  426.         item.APPLY_COSTUME_ATTR_BONUS : localeInfo.TOOLTIP_COSTUME_ATTR_BONUS,
  427.        
  428.         item.APPLY_MAGIC_ATTBONUS_PER : localeInfo.TOOLTIP_MAGIC_ATTBONUS_PER,
  429.         item.APPLY_MELEE_MAGIC_ATTBONUS_PER : localeInfo.TOOLTIP_MELEE_MAGIC_ATTBONUS_PER,
  430.         item.APPLY_RESIST_ICE : localeInfo.TOOLTIP_RESIST_ICE,
  431.         item.APPLY_RESIST_EARTH : localeInfo.TOOLTIP_RESIST_EARTH,
  432.         item.APPLY_RESIST_DARK : localeInfo.TOOLTIP_RESIST_DARK,
  433.         item.APPLY_ANTI_CRITICAL_PCT : localeInfo.TOOLTIP_ANTI_CRITICAL_PCT,
  434.         item.APPLY_ANTI_PENETRATE_PCT : localeInfo.TOOLTIP_ANTI_PENETRATE_PCT,
  435.     }

Teraz sprawdź sorry za wygląd ;)

Opublikowano

 

  1. import dbg
  2. import player
  3. import item
  4. import grp
  5. import wndMgr
  6. import skill
  7. import shop
  8. import exchange
  9. import grpText
  10. import safebox
  11. import localeInfo
  12. import app
  13. import background
  14. import nonplayer
  15. import chr
  16.  
  17. import ui
  18. import mouseModule
  19. import constInfo
  20.  
  21. WARP_SCROLLS = [22011, 22000, 22010]
  22.  
  23. DESC_DEFAULT_MAX_COLS = 26
  24. DESC_WESTERN_MAX_COLS = 35
  25. DESC_WESTERN_MAX_WIDTH = 220
  26.  
  27. def chop(n):
  28.     return round(n - 0.5, 1)
  29.  
  30. def SplitDescription(desc, limit):
  31.     total_tokens = desc.split()
  32.     line_tokens = []
  33.     line_len = 0
  34.     lines = []
  35.     for token in total_tokens:
  36.         if "|" in token:
  37.             sep_pos = token.find("|")
  38.             line_tokens.append(token[:sep_pos])
  39.  
  40.             lines.append(" ".join(line_tokens))
  41.             line_len = len(token) - (sep_pos + 1)
  42.             line_tokens = [token[sep_pos+1:]]
  43.         else:
  44.             line_len += len(token)
  45.             if len(line_tokens) + line_len > limit:
  46.                 lines.append(" ".join(line_tokens))
  47.                 line_len = len(token)
  48.                 line_tokens = [token]
  49.             else:
  50.                 line_tokens.append(token)
  51.    
  52.     if line_tokens:
  53.         lines.append(" ".join(line_tokens))
  54.  
  55.     return lines
  56.  
  57. ###################################################################################################
  58. ## ToolTip
  59. ##
  60. ##   NOTE : ??? Item? Skill? ???? ?? ?????
  61. ##          ??? ??? ??? ?? ??
  62. ##
  63. class ToolTip(ui.ThinBoard):
  64.  
  65.     TOOL_TIP_WIDTH = 190
  66.     TOOL_TIP_HEIGHT = 10
  67.  
  68.     TEXT_LINE_HEIGHT = 17
  69.  
  70.     TITLE_COLOR = grp.GenerateColor(0.9490, 0.9058, 0.7568, 1.0)
  71.     SPECIAL_TITLE_COLOR = grp.GenerateColor(1.0, 0.7843, 0.0, 1.0)
  72.     NORMAL_COLOR = grp.GenerateColor(0.7607, 0.7607, 0.7607, 1.0)
  73.     FONT_COLOR = grp.GenerateColor(0.7607, 0.7607, 0.7607, 1.0)
  74.     PRICE_COLOR = 0xffFFB96D
  75.  
  76.     HIGH_PRICE_COLOR = SPECIAL_TITLE_COLOR
  77.     MIDDLE_PRICE_COLOR = grp.GenerateColor(0.85, 0.85, 0.85, 1.0)
  78.     LOW_PRICE_COLOR = grp.GenerateColor(0.7, 0.7, 0.7, 1.0)
  79.  
  80.     ENABLE_COLOR = grp.GenerateColor(0.7607, 0.7607, 0.7607, 1.0)
  81.     DISABLE_COLOR = grp.GenerateColor(0.9, 0.4745, 0.4627, 1.0)
  82.  
  83.     NEGATIVE_COLOR = grp.GenerateColor(0.9, 0.4745, 0.4627, 1.0)
  84.     POSITIVE_COLOR = grp.GenerateColor(0.5411, 0.7254, 0.5568, 1.0)
  85.     SPECIAL_POSITIVE_COLOR = grp.GenerateColor(0.6911, 0.8754, 0.7068, 1.0)
  86.     SPECIAL_POSITIVE_COLOR2 = grp.GenerateColor(0.8824, 0.9804, 0.8824, 1.0)
  87.     BIGGEST_VALUE_COLOR = SPECIAL_TITLE_COLOR
  88.  
  89.     CONDITION_COLOR = 0xffBEB47D
  90.     CAN_LEVEL_UP_COLOR = 0xff8EC292
  91.     CANNOT_LEVEL_UP_COLOR = DISABLE_COLOR
  92.     NEED_SKILL_POINT_COLOR = 0xff9A9CDB
  93.  
  94.     def __init__(self, width = TOOL_TIP_WIDTH, isPickable=False):
  95.         ui.ThinBoard.__init__(self, "TOP_MOST")
  96.  
  97.         if isPickable:
  98.             pass
  99.         else:
  100.             self.AddFlag("not_pick")
  101.  
  102.         self.AddFlag("float")
  103.  
  104.         self.followFlag = True
  105.         self.toolTipWidth = width
  106.  
  107.         self.xPos = -1
  108.         self.yPos = -1
  109.  
  110.         self.defFontName = localeInfo.UI_DEF_FONT
  111.         self.ClearToolTip()
  112.  
  113.     def __del__(self):
  114.         ui.ThinBoard.__del__(self)
  115.  
  116.     def ClearToolTip(self):
  117.         self.toolTipHeight = 12
  118.         self.childrenList = []
  119.  
  120.     def SetFollow(self, flag):
  121.         self.followFlag = flag
  122.  
  123.     def SetDefaultFontName(self, fontName):
  124.         self.defFontName = fontName
  125.  
  126.     def AppendSpace(self, size):
  127.         self.toolTipHeight += size
  128.         self.ResizeToolTip()
  129.  
  130.     def AppendHorizontalLine(self):
  131.  
  132.         for i in xrange(2):
  133.             horizontalLine = ui.Line()
  134.             horizontalLine.SetParent(self)
  135.             horizontalLine.SetPosition(0, self.toolTipHeight + 3 + i)
  136.             horizontalLine.SetWindowHorizontalAlignCenter()
  137.             horizontalLine.SetSize(150, 0)
  138.             horizontalLine.Show()
  139.  
  140.             if 0 == i:
  141.                 horizontalLine.SetColor(0xff555555)
  142.             else:
  143.                 horizontalLine.SetColor(0xff000000)
  144.  
  145.             self.childrenList.append(horizontalLine)
  146.  
  147.         self.toolTipHeight += 11
  148.         self.ResizeToolTip()
  149.  
  150.     def AlignHorizonalCenter(self):
  151.         for child in self.childrenList:
  152.             (x, y)=child.GetLocalPosition()
  153.             child.SetPosition(self.toolTipWidth/2, y)
  154.  
  155.         self.ResizeToolTip()
  156.  
  157.     def AutoAppendTextLine(self, text, color = FONT_COLOR, centerAlign = True):
  158.         textLine = ui.TextLine()
  159.         textLine.SetParent(self)
  160.         textLine.SetFontName(self.defFontName)
  161.         textLine.SetPackedFontColor(color)
  162.         textLine.SetText(text)
  163.         textLine.SetOutline()
  164.         textLine.SetFeather(False)
  165.         textLine.Show()
  166.  
  167.         if centerAlign:
  168.             textLine.SetPosition(self.toolTipWidth/2, self.toolTipHeight)
  169.             textLine.SetHorizontalAlignCenter()
  170.  
  171.         else:
  172.             textLine.SetPosition(10, self.toolTipHeight)
  173.  
  174.         self.childrenList.append(textLine)
  175.  
  176.         (textWidth, textHeight)=textLine.GetTextSize()
  177.  
  178.         textWidth += 40
  179.         textHeight += 5
  180.  
  181.         if self.toolTipWidth < textWidth:
  182.             self.toolTipWidth = textWidth
  183.  
  184.         self.toolTipHeight += textHeight
  185.  
  186.         return textLine
  187.  
  188.     def AppendTextLine(self, text, color = FONT_COLOR, centerAlign = True):
  189.         textLine = ui.TextLine()
  190.         textLine.SetParent(self)
  191.         textLine.SetFontName(self.defFontName)
  192.         textLine.SetPackedFontColor(color)
  193.         textLine.SetText(text)
  194.         textLine.SetOutline()
  195.         textLine.SetFeather(False)
  196.         textLine.Show()
  197.  
  198.         if centerAlign:
  199.             textLine.SetPosition(self.toolTipWidth/2, self.toolTipHeight)
  200.             textLine.SetHorizontalAlignCenter()
  201.  
  202.         else:
  203.             textLine.SetPosition(10, self.toolTipHeight)
  204.  
  205.         self.childrenList.append(textLine)
  206.  
  207.         self.toolTipHeight += self.TEXT_LINE_HEIGHT
  208.         self.ResizeToolTip()
  209.  
  210.         return textLine
  211.  
  212.     def AppendDescription(self, desc, limit, color = FONT_COLOR):
  213.         if localeInfo.IsEUROPE():
  214.             self.__AppendDescription_WesternLanguage(desc, color)
  215.         else:
  216.             self.__AppendDescription_EasternLanguage(desc, limit, color)
  217.  
  218.     def __AppendDescription_EasternLanguage(self, description, characterLimitation, color=FONT_COLOR):
  219.         length = len(description)
  220.         if 0 == length:
  221.             return
  222.  
  223.         lineCount = grpText.GetSplitingTextLineCount(description, characterLimitation)
  224.         for i in xrange(lineCount):
  225.             if 0 == i:
  226.                 self.AppendSpace(5)
  227.             self.AppendTextLine(grpText.GetSplitingTextLine(description, characterLimitation, i), color)
  228.  
  229.     def __AppendDescription_WesternLanguage(self, desc, color=FONT_COLOR):
  230.         lines = SplitDescription(desc, DESC_WESTERN_MAX_COLS)
  231.         if not lines:
  232.             return
  233.  
  234.         self.AppendSpace(5)
  235.         for line in lines:
  236.             self.AppendTextLine(line, color)
  237.            
  238.  
  239.     def ResizeToolTip(self):
  240.         self.SetSize(self.toolTipWidth, self.TOOL_TIP_HEIGHT + self.toolTipHeight)
  241.  
  242.     def SetTitle(self, name):
  243.         self.AppendTextLine(name, self.TITLE_COLOR)
  244.  
  245.     def GetLimitTextLineColor(self, curValue, limitValue):
  246.         if curValue < limitValue:
  247.             return self.DISABLE_COLOR
  248.  
  249.         return self.ENABLE_COLOR
  250.  
  251.     def GetChangeTextLineColor(self, value, isSpecial=False):
  252.         if value > 0:
  253.             if isSpecial:
  254.                 return self.SPECIAL_POSITIVE_COLOR
  255.             else:
  256.                 return self.POSITIVE_COLOR
  257.  
  258.         if 0 == value:
  259.             return self.NORMAL_COLOR
  260.  
  261.         return self.NEGATIVE_COLOR
  262.  
  263.     def SetToolTipPosition(self, x = -1, y = -1):
  264.         self.xPos = x
  265.         self.yPos = y
  266.  
  267.     def ShowToolTip(self):
  268.         self.SetTop()
  269.         self.Show()
  270.  
  271.         self.OnUpdate()
  272.  
  273.     def HideToolTip(self):
  274.         self.Hide()
  275.  
  276.     def OnUpdate(self):
  277.  
  278.         if not self.followFlag:
  279.             return
  280.  
  281.         x = 0
  282.         y = 0
  283.         width = self.GetWidth()
  284.         height = self.toolTipHeight
  285.  
  286.         if -1 == self.xPos and -1 == self.yPos:
  287.  
  288.             (mouseX, mouseY) = wndMgr.GetMousePosition()
  289.  
  290.             if mouseY < wndMgr.GetScreenHeight() - 300:
  291.                 y = mouseY + 40
  292.             else:
  293.                 y = mouseY - height - 30
  294.  
  295.             x = mouseX - width/2              
  296.  
  297.         else:
  298.  
  299.             x = self.xPos - width/2
  300.             y = self.yPos - height
  301.  
  302.         x = max(x, 0)
  303.         y = max(y, 0)
  304.         x = min(x + width/2, wndMgr.GetScreenWidth() - width/2) - width/2
  305.         y = min(y + self.GetHeight(), wndMgr.GetScreenHeight()) - self.GetHeight()
  306.  
  307.         parentWindow = self.GetParentProxy()
  308.         if parentWindow:
  309.             (gx, gy) = parentWindow.GetGlobalPosition()
  310.             x -= gx
  311.             y -= gy
  312.  
  313.         self.SetPosition(x, y)
  314.  
  315. class ItemToolTip(ToolTip):
  316.  
  317.     if app.ENABLE_SEND_TARGET_INFO:
  318.         isStone = False
  319.         isBook = False
  320.         isBook2 = False
  321.  
  322.     CHARACTER_NAMES = {
  323.         localeInfo.TOOLTIP_WARRIOR,
  324.         localeInfo.TOOLTIP_ASSASSIN,
  325.         localeInfo.TOOLTIP_SURA,
  326.         localeInfo.TOOLTIP_SHAMAN
  327.     }      
  328.  
  329.     CHARACTER_COUNT = len(CHARACTER_NAMES)
  330.     WEAR_NAMES = {
  331.         localeInfo.TOOLTIP_ARMOR,
  332.         localeInfo.TOOLTIP_HELMET,
  333.         localeInfo.TOOLTIP_SHOES,
  334.         localeInfo.TOOLTIP_WRISTLET,
  335.         localeInfo.TOOLTIP_WEAPON,
  336.         localeInfo.TOOLTIP_NECK,
  337.         localeInfo.TOOLTIP_EAR,
  338.         localeInfo.TOOLTIP_UNIQUE,
  339.         localeInfo.TOOLTIP_SHIELD,
  340.         localeInfo.TOOLTIP_ARROW,
  341.     }
  342.     WEAR_COUNT = len(WEAR_NAMES)
  343.  
  344.     AFFECT_DICT = {
  345.         item.APPLY_MAX_HP : localeInfo.TOOLTIP_MAX_HP,
  346.         item.APPLY_MAX_SP : localeInfo.TOOLTIP_MAX_SP,
  347.         item.APPLY_CON : localeInfo.TOOLTIP_CON,
  348.         item.APPLY_INT : localeInfo.TOOLTIP_INT,
  349.         item.APPLY_STR : localeInfo.TOOLTIP_STR,
  350.         item.APPLY_DEX : localeInfo.TOOLTIP_DEX,
  351.         item.APPLY_ATT_SPEED : localeInfo.TOOLTIP_ATT_SPEED,
  352.         item.APPLY_MOV_SPEED : localeInfo.TOOLTIP_MOV_SPEED,
  353.         item.APPLY_CAST_SPEED : localeInfo.TOOLTIP_CAST_SPEED,
  354.         item.APPLY_HP_REGEN : localeInfo.TOOLTIP_HP_REGEN,
  355.         item.APPLY_SP_REGEN : localeInfo.TOOLTIP_SP_REGEN,
  356.         item.APPLY_POISON_PCT : localeInfo.TOOLTIP_APPLY_POISON_PCT,
  357.         item.APPLY_STUN_PCT : localeInfo.TOOLTIP_APPLY_STUN_PCT,
  358.         item.APPLY_SLOW_PCT : localeInfo.TOOLTIP_APPLY_SLOW_PCT,
  359.         item.APPLY_CRITICAL_PCT : localeInfo.TOOLTIP_APPLY_CRITICAL_PCT,
  360.         item.APPLY_PENETRATE_PCT : localeInfo.TOOLTIP_APPLY_PENETRATE_PCT,
  361.  
  362.         item.APPLY_ATTBONUS_WARRIOR : localeInfo.TOOLTIP_APPLY_ATTBONUS_WARRIOR,
  363.         item.APPLY_ATTBONUS_ASSASSIN : localeInfo.TOOLTIP_APPLY_ATTBONUS_ASSASSIN,
  364.         item.APPLY_ATTBONUS_SURA : localeInfo.TOOLTIP_APPLY_ATTBONUS_SURA,
  365.         item.APPLY_ATTBONUS_SHAMAN : localeInfo.TOOLTIP_APPLY_ATTBONUS_SHAMAN,
  366.         item.APPLY_ATTBONUS_MONSTER : localeInfo.TOOLTIP_APPLY_ATTBONUS_MONSTER,
  367.  
  368.         item.APPLY_ATTBONUS_HUMAN : localeInfo.TOOLTIP_APPLY_ATTBONUS_HUMAN,
  369.         item.APPLY_ATTBONUS_ANIMAL : localeInfo.TOOLTIP_APPLY_ATTBONUS_ANIMAL,
  370.         item.APPLY_ATTBONUS_ORC : localeInfo.TOOLTIP_APPLY_ATTBONUS_ORC,
  371.         item.APPLY_ATTBONUS_MILGYO : localeInfo.TOOLTIP_APPLY_ATTBONUS_MILGYO,
  372.         item.APPLY_ATTBONUS_UNDEAD : localeInfo.TOOLTIP_APPLY_ATTBONUS_UNDEAD,
  373.         item.APPLY_ATTBONUS_DEVIL : localeInfo.TOOLTIP_APPLY_ATTBONUS_DEVIL,
  374.         item.APPLY_STEAL_HP : localeInfo.TOOLTIP_APPLY_STEAL_HP,
  375.         item.APPLY_STEAL_SP : localeInfo.TOOLTIP_APPLY_STEAL_SP,
  376.         item.APPLY_MANA_BURN_PCT : localeInfo.TOOLTIP_APPLY_MANA_BURN_PCT,
  377.         item.APPLY_DAMAGE_SP_RECOVER : localeInfo.TOOLTIP_APPLY_DAMAGE_SP_RECOVER,
  378.         item.APPLY_BLOCK : localeInfo.TOOLTIP_APPLY_BLOCK,
  379.         item.APPLY_DODGE : localeInfo.TOOLTIP_APPLY_DODGE,
  380.         item.APPLY_RESIST_SWORD : localeInfo.TOOLTIP_APPLY_RESIST_SWORD,
  381.         item.APPLY_RESIST_TWOHAND : localeInfo.TOOLTIP_APPLY_RESIST_TWOHAND,
  382.         item.APPLY_RESIST_DAGGER : localeInfo.TOOLTIP_APPLY_RESIST_DAGGER,
  383.         item.APPLY_RESIST_BELL : localeInfo.TOOLTIP_APPLY_RESIST_BELL,
  384.         item.APPLY_RESIST_FAN : localeInfo.TOOLTIP_APPLY_RESIST_FAN,
  385.         item.APPLY_RESIST_BOW : localeInfo.TOOLTIP_RESIST_BOW,
  386.         item.APPLY_RESIST_FIRE : localeInfo.TOOLTIP_RESIST_FIRE,
  387.         item.APPLY_RESIST_ELEC : localeInfo.TOOLTIP_RESIST_ELEC,
  388.         item.APPLY_RESIST_MAGIC : localeInfo.TOOLTIP_RESIST_MAGIC,
  389.         item.APPLY_RESIST_WIND : localeInfo.TOOLTIP_APPLY_RESIST_WIND,
  390.         item.APPLY_REFLECT_MELEE : localeInfo.TOOLTIP_APPLY_REFLECT_MELEE,
  391.         item.APPLY_REFLECT_CURSE : localeInfo.TOOLTIP_APPLY_REFLECT_CURSE,
  392.         item.APPLY_POISON_REDUCE : localeInfo.TOOLTIP_APPLY_POISON_REDUCE,
  393.         item.APPLY_KILL_SP_RECOVER : localeInfo.TOOLTIP_APPLY_KILL_SP_RECOVER,
  394.         item.APPLY_EXP_DOUBLE_BONUS : localeInfo.TOOLTIP_APPLY_EXP_DOUBLE_BONUS,
  395.         item.APPLY_GOLD_DOUBLE_BONUS : localeInfo.TOOLTIP_APPLY_GOLD_DOUBLE_BONUS,
  396.         item.APPLY_ITEM_DROP_BONUS : localeInfo.TOOLTIP_APPLY_ITEM_DROP_BONUS,
  397.         item.APPLY_POTION_BONUS : localeInfo.TOOLTIP_APPLY_POTION_BONUS,
  398.         item.APPLY_KILL_HP_RECOVER : localeInfo.TOOLTIP_APPLY_KILL_HP_RECOVER,
  399.         item.APPLY_IMMUNE_STUN : localeInfo.TOOLTIP_APPLY_IMMUNE_STUN,
  400.         item.APPLY_IMMUNE_SLOW : localeInfo.TOOLTIP_APPLY_IMMUNE_SLOW,
  401.         item.APPLY_IMMUNE_FALL : localeInfo.TOOLTIP_APPLY_IMMUNE_FALL,
  402.         item.APPLY_BOW_DISTANCE : localeInfo.TOOLTIP_BOW_DISTANCE,
  403.         item.APPLY_DEF_GRADE_BONUS : localeInfo.TOOLTIP_DEF_GRADE,
  404.         item.APPLY_ATT_GRADE_BONUS : localeInfo.TOOLTIP_ATT_GRADE,
  405.         item.APPLY_MAGIC_ATT_GRADE : localeInfo.TOOLTIP_MAGIC_ATT_GRADE,
  406.         item.APPLY_MAGIC_DEF_GRADE : localeInfo.TOOLTIP_MAGIC_DEF_GRADE,
  407.         item.APPLY_MAX_STAMINA : localeInfo.TOOLTIP_MAX_STAMINA,
  408.         item.APPLY_MALL_ATTBONUS : localeInfo.TOOLTIP_MALL_ATTBONUS,
  409.         item.APPLY_MALL_DEFBONUS : localeInfo.TOOLTIP_MALL_DEFBONUS,
  410.         item.APPLY_MALL_EXPBONUS : localeInfo.TOOLTIP_MALL_EXPBONUS,
  411.         item.APPLY_MALL_ITEMBONUS : localeInfo.TOOLTIP_MALL_ITEMBONUS,
  412.         item.APPLY_MALL_GOLDBONUS : localeInfo.TOOLTIP_MALL_GOLDBONUS,
  413.         item.APPLY_SKILL_DAMAGE_BONUS : localeInfo.TOOLTIP_SKILL_DAMAGE_BONUS,
  414.         item.APPLY_NORMAL_HIT_DAMAGE_BONUS : localeInfo.TOOLTIP_NORMAL_HIT_DAMAGE_BONUS,
  415.         item.APPLY_SKILL_DEFEND_BONUS : localeInfo.TOOLTIP_SKILL_DEFEND_BONUS,
  416.         item.APPLY_NORMAL_HIT_DEFEND_BONUS : localeInfo.TOOLTIP_NORMAL_HIT_DEFEND_BONUS,
  417.         item.APPLY_PC_BANG_EXP_BONUS : localeInfo.TOOLTIP_MALL_EXPBONUS_P_STATIC,
  418.         item.APPLY_PC_BANG_DROP_BONUS : localeInfo.TOOLTIP_MALL_ITEMBONUS_P_STATIC,
  419.         item.APPLY_RESIST_WARRIOR : localeInfo.TOOLTIP_APPLY_RESIST_WARRIOR,
  420.         item.APPLY_RESIST_ASSASSIN : localeInfo.TOOLTIP_APPLY_RESIST_ASSASSIN,
  421.         item.APPLY_RESIST_SURA : localeInfo.TOOLTIP_APPLY_RESIST_SURA,
  422.         item.APPLY_RESIST_SHAMAN : localeInfo.TOOLTIP_APPLY_RESIST_SHAMAN,
  423.         item.APPLY_MAX_HP_PCT : localeInfo.TOOLTIP_APPLY_MAX_HP_PCT,
  424.         item.APPLY_MAX_SP_PCT : localeInfo.TOOLTIP_APPLY_MAX_SP_PCT,
  425.         item.APPLY_ENERGY : localeInfo.TOOLTIP_ENERGY,
  426.         item.APPLY_COSTUME_ATTR_BONUS : localeInfo.TOOLTIP_COSTUME_ATTR_BONUS,
  427.        
  428.         item.APPLY_MAGIC_ATTBONUS_PER : localeInfo.TOOLTIP_MAGIC_ATTBONUS_PER,
  429.         item.APPLY_MELEE_MAGIC_ATTBONUS_PER : localeInfo.TOOLTIP_MELEE_MAGIC_ATTBONUS_PER,
  430.         item.APPLY_RESIST_ICE : localeInfo.TOOLTIP_RESIST_ICE,
  431.         item.APPLY_RESIST_EARTH : localeInfo.TOOLTIP_RESIST_EARTH,
  432.         item.APPLY_RESIST_DARK : localeInfo.TOOLTIP_RESIST_DARK,
  433.         item.APPLY_ANTI_CRITICAL_PCT : localeInfo.TOOLTIP_ANTI_CRITICAL_PCT,
  434.         item.APPLY_ANTI_PENETRATE_PCT : localeInfo.TOOLTIP_ANTI_PENETRATE_PCT,
  435.     }

Teraz sprawdź sorry za wygląd ;)

 

Dzięki ślicznie jeszcze tylko jeden błąd, już dostajesz limit lajk:

 

 

 

0409 21:26:06403 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiAffectShower.py(line:8) <module>
system.py(line:130) __pack_import
 
networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiToolTip.py, line 985)
 
0409 21:26:06403 :: ============================================================================================================
0409 21:26:06403 :: Abort!!!!
 
 

 

 

 

 

https://pastebin.com/qWPVScip

 

pierwsza linia to w moim pliku linia nr: 984 a ostatnia to 1035

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...