Tipologie server:PvM
*Resursă folosită:sursa/battlepass-t90289.html
*ServerFiles utilizat:-
*Syserr:

Poză:
*Detalii suplimentare:Am incercat sa-i dau de cap.. n am reusit am facut tot partea sursa de 10 ori si partea client si aceiasi chestie..





poti sa te uiti discord si sa mi dai un files de are asta al lui grimm?banuliciraul123 scrie: ↑14 Oct 2021, 16:47 am avut si eu problema asta cand l-am băgat mai demult pe un svf,am rezolvat din topicul ăsta. arhiva-prob/topic91628.html
Încearcă să iei dintr-un alt svf,cauţi funcţiile din tutorial in alt svf şi faci compare la linii.![]()
Cod: Selectaţi tot
def MakeButton(self, index, parent, x, y):
self.tab[index] = ui.MakeButton(parent, x, y, False, "d:/ymir work/battle_pass/", "tab_normal.tga", "tab_select.tga", "tab_normal.tga")
self.gauge[index] = ui.MakeGauge(self.tab[index], 41, 23, 130)
self.gauge_f = ui.MakeGauge(parent, 326, 235, 92)
self.text[index] = ui.TextLine()
self.text[index].SetParent(self.tab[index])
self.text[index].SetPosition(50, 8)
self.text[index].SetText(str(constInfo.info_missions_bp[int(index)]["Name"]))
self.text[index].Show()
self.reward1[index] = ui.MakeGridSlot(self.tab[index], 180+7, 2+4, self.Get3(index, "iVnum1"), self.Get3(index, "iCount1"))
self.reward1[index].SetOverInItemEvent(lambda slotindex = 0, ivnumz = index: self.OverInItem(slotindex, ivnumz, "iVnum1"))
self.reward1[index].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
self.reward2[index] = ui.MakeGridSlot(self.tab[index], 180+32+7, 2+4, self.Get3(index, "iVnum2"), self.Get3(index, "iCount2"))
self.reward2[index].SetOverInItemEvent(lambda slotindex = 0, ivnumz = index: self.OverInItem(slotindex, ivnumz, "iVnum2"))
self.reward2[index].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
self.reward3[index] = ui.MakeGridSlot(self.tab[index], 217+28+7, 2+4, self.Get3(index, "iVnum3"), self.Get3(index, "iCount3"))
self.reward3[index].SetOverInItemEvent(lambda slotindex = 0, ivnumz = index: self.OverInItem(slotindex, ivnumz, "iVnum3"))
self.reward3[index].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
self.icon[index] = ui.MakeImageBoxNoImg(self.tab[index], 1, 2)
if self.Get(index, "iType") == 1: # Category: Use Items
item.SelectItem(self.Get(index, "iVnum"))
self.icon[index].LoadImage(item.GetIconImageFileName())
if self.Get(index, "iType") > 2:
self.icon[index].LoadImage(self.Type_Images[self.Get(index, "iType")])

acelasi lucru.LastGuards scrie: ↑14 Oct 2021, 17:49 game.py
# PRIVATE_SHOP_PRICE_LIST
## Battle Pass
"missions_bp" :self.SMissionsBP,
"info_missions_bp" :self.SInfoMissions,
"size_missions_bp" :self.SizeMissions,
"rewards_missions_bp" :self.SRewardsMissions,
"final_reward" :self.SFinalRewards,
"show_battlepass" :self.interface.ShowBoardBpass,
"battlepass_status" :self.SBattlePass,
## Battle Pass END
uibattlepass.pyAstea de pe un client cu bp adaugatCod: Selectaţi tot
def MakeButton(self, index, parent, x, y): self.tab[index] = ui.MakeButton(parent, x, y, False, "d:/ymir work/battle_pass/", "tab_normal.tga", "tab_select.tga", "tab_normal.tga") self.gauge[index] = ui.MakeGauge(self.tab[index], 41, 23, 130) self.gauge_f = ui.MakeGauge(parent, 326, 235, 92) self.text[index] = ui.TextLine() self.text[index].SetParent(self.tab[index]) self.text[index].SetPosition(50, 8) self.text[index].SetText(str(constInfo.info_missions_bp[int(index)]["Name"])) self.text[index].Show() self.reward1[index] = ui.MakeGridSlot(self.tab[index], 180+7, 2+4, self.Get3(index, "iVnum1"), self.Get3(index, "iCount1")) self.reward1[index].SetOverInItemEvent(lambda slotindex = 0, ivnumz = index: self.OverInItem(slotindex, ivnumz, "iVnum1")) self.reward1[index].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem)) self.reward2[index] = ui.MakeGridSlot(self.tab[index], 180+32+7, 2+4, self.Get3(index, "iVnum2"), self.Get3(index, "iCount2")) self.reward2[index].SetOverInItemEvent(lambda slotindex = 0, ivnumz = index: self.OverInItem(slotindex, ivnumz, "iVnum2")) self.reward2[index].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem)) self.reward3[index] = ui.MakeGridSlot(self.tab[index], 217+28+7, 2+4, self.Get3(index, "iVnum3"), self.Get3(index, "iCount3")) self.reward3[index].SetOverInItemEvent(lambda slotindex = 0, ivnumz = index: self.OverInItem(slotindex, ivnumz, "iVnum3")) self.reward3[index].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem)) self.icon[index] = ui.MakeImageBoxNoImg(self.tab[index], 1, 2) if self.Get(index, "iType") == 1: # Category: Use Items item.SelectItem(self.Get(index, "iVnum")) self.icon[index].LoadImage(item.GetIconImageFileName()) if self.Get(index, "iType") > 2: self.icon[index].LoadImage(self.Type_Images[self.Get(index, "iType")])
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 153 vizitatori