*Problemă/Întrebare:Nu pot pune skill-urile in taskbar
Tipologie server:PVM
*Resursă folosită:--
*ServerFiles utilizat:--
*Syserr:--
Poză:
*Detalii suplimentare:Problema este ca nu pot pune skill-urile in taskbar, nu am nimic in syserr in client.
Skill-ul nu se pune in taskbar
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
Le poti pune cu ctrl + click stanga pe ele sau nici asa nu merge?
Nici asa, acum am probat.
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
root/uicharacter.py cauta def SelectSkill(self, skillSlotIndex): si verifica sa fie asa:
Cod: Selectaţi tot
def SelectSkill(self, skillSlotIndex):
mouseController = mouseModule.mouseController
if FALSE == mouseController.isAttached():
srcSlotIndex = self.__RealSkillSlotToSourceSlot(skillSlotIndex)
selectedSkillIndex = player.GetSkillIndex(srcSlotIndex)
if skill.CanUseSkill(selectedSkillIndex):
if app.IsPressed(app.DIK_LCONTROL):
player.RequestAddToEmptyLocalQuickSlot(player.SLOT_TYPE_SKILL, srcSlotIndex)
return
mouseController.AttachObject(self, player.SLOT_TYPE_SKILL, srcSlotIndex, selectedSkillIndex)
else:
mouseController.DeattachObject()Este la fel, sa fie din sursa?
Am incercat prin alt client, si functioneaza se vad pe slot-uri..
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
uitaskbar.py, verifica sa fie asa class-ul SkillButton:
Daca tot nu merge, compara tot uitaskbar.py de la clientul unde merge cu al tau.
Cod: Selectaţi tot
class SkillButton(ui.SlotWindow):
def __init__(self):
ui.SlotWindow.__init__(self)
self.event = 0
self.arg = 0
self.slotIndex = 0
self.skillIndex = 0
slotIndex = 0
wndMgr.SetSlotBaseImage(self.hWnd, "d:/ymir work/ui/public/slot_base.sub", 1.0, 1.0, 1.0, 1.0)
wndMgr.AppendSlot(self.hWnd, slotIndex, 0, 0, 32, 32)
self.SetCoverButton(slotIndex, "d:/ymir work/ui/public/slot_cover_button_01.sub",\
"d:/ymir work/ui/public/slot_cover_button_02.sub",\
"d:/ymir work/ui/public/slot_cover_button_03.sub",\
"d:/ymir work/ui/public/slot_cover_button_04.sub", TRUE, FALSE)
self.SetSize(32, 32)
def __del__(self):
ui.SlotWindow.__del__(self)
def Destroy(self):
if 0 != self.tooltipSkill:
self.tooltipSkill.HideToolTip()
def RefreshSkill(self):
if 0 != self.slotIndex:
self.SetSkill(self.slotIndex)
def SetSkillToolTip(self, tooltip):
self.tooltipSkill = tooltip
def SetSkill(self, skillSlotNumber):
slotNumber = 0
skillIndex = player.GetSkillIndex(skillSlotNumber)
skillGrade = player.GetSkillGrade(skillSlotNumber)
skillLevel = player.GetSkillLevel(skillSlotNumber)
skillType = skill.GetSkillType(skillIndex)
self.skillIndex = skillIndex
if 0 == self.skillIndex:
self.ClearSlot(slotNumber)
return
self.slotIndex = skillSlotNumber
self.SetSkillSlotNew(slotNumber, skillIndex, skillGrade, skillLevel)
self.SetSlotCountNew(slotNumber, skillGrade, skillLevel)
## NOTE : CoolTime 체크
if player.IsSkillCoolTime(skillSlotNumber):
(coolTime, elapsedTime) = player.GetSkillCoolTime(skillSlotNumber)
self.SetSlotCoolTime(slotNumber, coolTime, elapsedTime)
## NOTE : Activate 되어 있다면 아이콘도 업데이트
if player.IsSkillActive(skillSlotNumber):
self.ActivateSlot(slotNumber)
def SetSkillEvent(self, event, arg=0):
self.event = event
self.arg = arg
def GetSkillIndex(self):
return self.skillIndex
def GetSlotIndex(self):
return self.slotIndex
def Activate(self, coolTime):
self.SetSlotCoolTime(0, coolTime)
if skill.IsToggleSkill(self.skillIndex):
self.ActivateSlot(0)
def Deactivate(self):
if skill.IsToggleSkill(self.skillIndex):
self.DeactivateSlot(0)
def OnOverInItem(self, dummy):
self.tooltipSkill.SetSkill(self.skillIndex)
def OnOverOutItem(self):
self.tooltipSkill.HideToolTip()
def OnSelectItemSlot(self, dummy):
if 0 != self.event:
if 0 != self.arg:
self.event(self.arg)
else:
self.event()Daca tot nu merge, compara tot uitaskbar.py de la clientul unde merge cu al tau.
Am verificat si le am comparat cu notepad++ si sunt match ambele.
Update: Am reusit sa le fac sa se puna pe slot, dar acum cand iau skill-ul/item-ul genereaza alte animatii, gen ambuscada cand o iau din taskbar are animatie de fiere.
[imagelink]https://pasteboard.co/TixyCt5Kh5Jy.jpg[/imagelink]
[imagelink]https://pasteboard.co/TixyCt5Kh5Jy.jpg[/imagelink]
up
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Baidu [Spider] și 60 vizitatori


