metin2united

Blend

Member
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Blend

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Blend

    [RELEASE] Notice color fix (from Lua)

    Yes i know use re library, but my client get error if i use re, so i try to find fix without re library. Just with str.find() and str.split(). I think its good example for begginers to learn str. functions.
  2. Hello devs. Here is my fix of lua color string. Look at screens. Here is the problem: And here is fixed screen: How to fix? Open uitip.py and find self.__AppendText(curTime, text) (must by Class TipBoard, not BigBoard) Repleace to: After go to last line of Class TipBoard and paste: Its all. Nothing hard. Fix by Blend.
  3. Blend

    python Skills cooldown tooltip

    I have the same problem :/
  4. Blend

    python Skills cooldown tooltip

    Hello guys, first sorry for my bad english. Thank you for share, i have just one reservation. Its a centering of string. Your centering is not good because if i have lenght > 1, i have the result more left. Here is my proposal to improvement startNumber = 0 for slot in self.quickslot: for i in xrange(4): slotNumber = i+startNumber (Type, Position) = player.GetLocalQuickSlot(slotNumber) if player.IsSkillCoolTime(Position): (coolTime, elapsedTime) = player.GetSkillCoolTime(Position) slot.SetSlotCoolTime(slotNumber, coolTime, elapsedTime) cooldownDelay = 0 cooldown = int(coolTime-elapsedTime+cooldownDelay) self.cooldownText[slotNumber].SetOutline() self.cooldownText[slotNumber].SetText("%d" % cooldown) cooldown = str(cooldown) if len(cooldown) <= 1: self.cooldownText[slotNumber].SetPosition(8,0) else: self.cooldownText[slotNumber].SetPosition(8 - (len(cooldown) + 2), 0) self.cooldownText[slotNumber].Show() else: self.cooldownText[slotNumber].Hide() startNumber += 4 if len(cooldown) <= 1: self.cooldownText[slotNumber].SetPosition(8,0) else: self.cooldownText[slotNumber].SetPosition(8 - (len(cooldown) + 2),0) self.cooldownText[slotNumber].Show() EDIT: This is good if i have bold:16. If you use more bold, u must change SetPosition(8 - (len(cooldown) + 2), 0) to SetPosition(8 - (len(cooldown) + x), 0). If your bold is highest, x is highest too. How much? You must try.