Blend
-
Posts
8 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Blend
-
-
Post your uicharacter.py
-
Try this:
open uiinventory.py and find function
RefreshEquipSlotWindow(self):
and at the end of funcion (last line) paste this:
setItemVNum(item.COSTUME_SLOT_START+2, getItemVNum(item.COSTUME_SLOT_START+2), 0) -
Post your uitarget.py to https://pastebin.com/
-
15 minutes ago, VegaS™ said:
This fix is very bad, you can use RE library and fix it with 3-4 lines.
m = re.search('\|c([a-zA-Z0-9]+)\|h', '|cFF29bfbf|hMetin2 is dead.') # TODO: Replace |h|r with: str() # TODO: Replace |c + m.groups()[0] + |h with: str()
Is just an example, good luck.
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. -
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:Quoteself.__AppendText(curTime, self.notice(text))
After go to last line of Class TipBoard and paste:
Quotedef notice(self, text):
if text.find("|h") >= 0:
self.a = text.split("|h")
return self.notice2(self.GetTextNot(self.a, len(self.a)))
else:
return self.notice2(text)
def notice2(self, text):
if text.find("|cFF") >= 0:
self.x = text
while self.x.find("|cFF") >=0:
self.le = self.x.find("|cFF")+4
self.a = self.x.split("|cFF" + self.x[self.le] + self.x[self.le+1] + self.x[self.le+2] + self.x[self.le+3] + self.x[self.le+4] + self.x[self.le+5])
self.x = self.GetTextNot(self.a, len(self.a))
if self.x.find("|cff") >= 0:
while self.x.find("|cff") >=0:
self.le = self.x.find("|cff")+4
self.a = self.x.split("|cff" + self.x[self.le] + self.x[self.le+1] + self.x[self.le+2] + self.x[self.le+3] + self.x[self.le+4] + self.x[self.le+5])
self.x = self.GetTextNot(self.a, len(self.a))
return self.x
else:
return self.x
else:
return text
def GetTextNot(self, text, c):
self.out = ""
for i in range(c):
self.out = self.out + text
return self.out
Its all. Nothing hard. Fix by Blend.- 4
-
6 hours ago, Co0L said:
@Dean ???
I have the same problem :/
-
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.- 1
Pls Help :/ mysql5.6
in Community Support - Questions & Answers
Posted
I had this problem this week too.
I installed mysql 5.7. After this you need to go /usr/local/etc/mysql/my.cnf and change bind-adress to 0.0.0.0
Now you can run on mysql 5.7