- Katılım
- 28 Mar 2011
- Konular
- 1,226
- Mesajlar
- 3,568
- Online süresi
- 1ay 18g
- Reaksiyon Skoru
- 460
- Altın Konu
- 0
- Başarım Puanı
- 267
- Yaş
- 32
- TM Yaşı
- 15 Yıl 26 Gün
- MmoLira
- 6,082
- DevLira
- 15
Metin2 EP, Valorant VP dahil tüm oyun ürünlerini en uygun fiyatlarla bulabilir, Item ve Karakterlerinizi hızlıca satabilirsiniz. HEMEN TIKLA!
Teşekkürler hocam deneyecemfilezilladaki configi var ondan hangi aydaysak onu seç oraya onu yaz düzelir haftadan haftaya olması lazımdı
- Katılım
- 4 Ağu 2020
- Konular
- 44
- Mesajlar
- 766
- Online süresi
- 3ay 15g
- Reaksiyon Skoru
- 463
- Altın Konu
- 0
- Başarım Puanı
- 144
- TM Yaşı
- 5 Yıl 8 Ay 20 Gün
- MmoLira
- 2,631
- DevLira
- 51
filezilladaki configi var ondan hangi aydaysak onu seç oraya onu yaz düzelir haftadan haftaya olması lazımdı
Calışan bir ui.py koyma ihtimalin var mıdır acaba?
- Katılım
- 20 Kas 2016
- Konular
- 65
- Mesajlar
- 1,263
- Online süresi
- 1ay 3g
- Reaksiyon Skoru
- 619
- Altın Konu
- 0
- Başarım Puanı
- 201
- TM Yaşı
- 9 Yıl 5 Ay 2 Gün
- MmoLira
- 2,443
- DevLira
- 82
Kod:
class ScrollBar2(Window):
SCROLLBAR_WIDTH = 13
SCROLLBAR_MIDDLE_HEIGHT = 1
SCROLLBAR_BUTTON_WIDTH = 17
SCROLLBAR_BUTTON_HEIGHT = 17
SCROLL_BTN_XDIST = 2
SCROLL_BTN_YDIST = 2
class MiddleBar(DragButton):
def __init__(self):
DragButton.__init__(self)
self.AddFlag("movable")
self.SetWindowName("scrollbar_middlebar")
def MakeImage(self):
top = ImageBox()
top.SetParent(self)
top.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_middle_top.tga")
top.AddFlag("not_pick")
top.Show()
topScale = ExpandedImageBox()
topScale.SetParent(self)
topScale.SetPosition(0, top.GetHeight())
topScale.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_middle_topscale.tga")
topScale.AddFlag("not_pick")
topScale.Show()
bottom = ImageBox()
bottom.SetParent(self)
bottom.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_middle_bottom.tga")
bottom.AddFlag("not_pick")
bottom.Show()
bottomScale = ExpandedImageBox()
bottomScale.SetParent(self)
bottomScale.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_middle_bottomscale.tga")
bottomScale.AddFlag("not_pick")
bottomScale.Show()
middle = ExpandedImageBox()
middle.SetParent(self)
middle.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_middle_middle.tga")
middle.AddFlag("not_pick")
middle.Show()
self.top = top
self.topScale = topScale
self.bottom = bottom
self.bottomScale = bottomScale
self.middle = middle
def SetSize(self, height):
minHeight = self.top.GetHeight() + self.bottom.GetHeight() + self.middle.GetHeight()
height = max(minHeight, height)
DragButton.SetSize(self, 10, height)
scale = (height - minHeight) / 2
extraScale = 0
if (height - minHeight) % 2 == 1:
extraScale = 1
self.topScale.SetRenderingRect(0, 0, 0, scale - 1)
self.middle.SetPosition(0, self.top.GetHeight() + scale)
self.bottomScale.SetPosition(0, self.middle.GetBottom())
self.bottomScale.SetRenderingRect(0, 0, 0, scale - 1 + extraScale)
self.bottom.SetPosition(0, height - self.bottom.GetHeight())
def __init__(self):
Window.__init__(self)
self.pageSize = 1
self.curPos = 0.0
self.eventScroll = None
self.eventArgs = None
self.lockFlag = False
self.CreateScrollBar()
self.SetScrollBarSize(0)
self.scrollStep = 0.20
self.SetWindowName("NONAME_ScrollBar")
def __del__(self):
Window.__del__(self)
def CreateScrollBar(self):
topImage = ImageBox()
topImage.SetParent(self)
topImage.AddFlag("not_pick")
topImage.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_top.tga")
topImage.Show()
bottomImage = ImageBox()
bottomImage.SetParent(self)
bottomImage.AddFlag("not_pick")
bottomImage.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_bottom.tga")
bottomImage.Show()
middleImage = ExpandedImageBox()
middleImage.SetParent(self)
middleImage.AddFlag("not_pick")
middleImage.SetPosition(0, topImage.GetHeight())
middleImage.LoadImage("d:/ymir work/battle_pass/scrollbar/scrollbar_middle.tga")
middleImage.Show()
self.topImage = topImage
self.bottomImage = bottomImage
self.middleImage = middleImage
middleBar = self.MiddleBar()
middleBar.SetParent(self)
middleBar.SetMoveEvent(__mem_func__(self.OnMove))
middleBar.Show()
middleBar.MakeImage()
middleBar.SetSize(0) # set min height
self.middleBar = middleBar
def Destroy(self):
self.eventScroll = None
self.eventArgs = None
def SetScrollEvent(self, event, *args):
self.eventScroll = event
self.eventArgs = args
def SetMiddleBarSize(self, pageScale):
self.middleBar.SetSize(int(pageScale * float(self.GetHeight() - self.SCROLL_BTN_YDIST*2)))
realHeight = self.GetHeight() - self.SCROLL_BTN_YDIST*2 - self.middleBar.GetHeight()
self.pageSize = realHeight
def SetScrollBarSize(self, height):
self.SetSize(self.SCROLLBAR_WIDTH, height)
self.pageSize = height - self.SCROLL_BTN_YDIST*2 - self.middleBar.GetHeight()
middleImageScale = float((height - self.SCROLL_BTN_YDIST*2) - self.middleImage.GetHeight()) / float(self.middleImage.GetHeight())
self.middleImage.SetRenderingRect(0, 0, 0, middleImageScale)
self.bottomImage.SetPosition(0, height - self.bottomImage.GetHeight())
self.middleBar.SetRestrictMovementArea(self.SCROLL_BTN_XDIST, self.SCROLL_BTN_YDIST, \
self.middleBar.GetWidth(), height - self.SCROLL_BTN_YDIST * 2)
self.middleBar.SetPosition(self.SCROLL_BTN_XDIST, self.SCROLL_BTN_YDIST)
def SetScrollStep(self, step):
self.scrollStep = step
def GetScrollStep(self):
return self.scrollStep
def GetPos(self):
return self.curPos
def OnUp(self):
self.SetPos(self.curPos-self.scrollStep)
def OnDown(self):
self.SetPos(self.curPos+self.scrollStep)
def SetPos(self, pos, moveEvent = True):
pos = max(0.0, pos)
pos = min(1.0, pos)
newPos = float(self.pageSize) * pos
self.middleBar.SetPosition(self.SCROLL_BTN_XDIST, int(newPos) + self.SCROLL_BTN_YDIST)
if moveEvent == True:
self.OnMove()
def OnMove(self):
if self.lockFlag:
return
if 0 == self.pageSize:
return
(xLocal, yLocal) = self.middleBar.GetLocalPosition()
self.curPos = float(yLocal - self.SCROLL_BTN_YDIST) / float(self.pageSize)
if self.eventScroll:
apply(self.eventScroll, self.eventArgs)
def OnMouseLeftButtonDown(self):
(xMouseLocalPosition, yMouseLocalPosition) = self.GetMouseLocalPosition()
newPos = float(yMouseLocalPosition) / float(self.GetHeight())
self.SetPos(newPos)
def LockScroll(self):
self.lockFlag = True
def UnlockScroll(self):
self.lockFlag = False
Kod:
def __OnClickBattlePass(self):
net.SendChatPacket("/open_battlepass")
- Katılım
- 28 Mar 2011
- Konular
- 1,226
- Mesajlar
- 3,568
- Online süresi
- 1ay 18g
- Reaksiyon Skoru
- 460
- Altın Konu
- 0
- Başarım Puanı
- 267
- Yaş
- 32
- TM Yaşı
- 15 Yıl 26 Gün
- MmoLira
- 6,082
- DevLira
- 15
1011 14:12:20157 :: File "game.py", line 3137, in BINARY_ServerCommand_Run
1011 14:12:20158 :: File "stringCommander.py", line 63, in Run
1011 14:12:20158 :: File "stringCommander.py", line 31, in __call__
1011 14:12:20158 :: File "stringCommander.py", line 11, in __call__
1011 14:12:20159 :: File "interfaceModule.py", line 2041, in ShowBoardBpass
1011 14:12:20159 :: File "uibattlepass.py", line 64, in Show
1011 14:12:20160 :: File "uibattlepass.py", line 178, in MakeButton
1011 14:12:20160 :: AttributeError
1011 14:12:20160 :: :
1011 14:12:20160 :: 'module' object has no attribute 'MakeGauge'
1011 14:12:20160 ::
1011 14:12:20160 :: Unknown Server Command show_battlepass | show_battlepass
şu hatayı verıyor şimdid
1011 14:12:20158 :: File "stringCommander.py", line 63, in Run
1011 14:12:20158 :: File "stringCommander.py", line 31, in __call__
1011 14:12:20158 :: File "stringCommander.py", line 11, in __call__
1011 14:12:20159 :: File "interfaceModule.py", line 2041, in ShowBoardBpass
1011 14:12:20159 :: File "uibattlepass.py", line 64, in Show
1011 14:12:20160 :: File "uibattlepass.py", line 178, in MakeButton
1011 14:12:20160 :: AttributeError
1011 14:12:20160 :: :
1011 14:12:20160 :: 'module' object has no attribute 'MakeGauge'
1011 14:12:20160 ::
1011 14:12:20160 :: Unknown Server Command show_battlepass | show_battlepass
şu hatayı verıyor şimdid
- Katılım
- 20 Kas 2016
- Konular
- 65
- Mesajlar
- 1,263
- Online süresi
- 1ay 3g
- Reaksiyon Skoru
- 619
- Altın Konu
- 0
- Başarım Puanı
- 201
- TM Yaşı
- 9 Yıl 5 Ay 2 Gün
- MmoLira
- 2,443
- DevLira
- 82
ui.pynde def MakeGauge(self, width, color): yokmu1011 14:12:20157 :: File "game.py", line 3137, in BINARY_ServerCommand_Run
1011 14:12:20158 :: File "stringCommander.py", line 63, in Run
1011 14:12:20158 :: File "stringCommander.py", line 31, in __call__
1011 14:12:20158 :: File "stringCommander.py", line 11, in __call__
1011 14:12:20159 :: File "interfaceModule.py", line 2041, in ShowBoardBpass
1011 14:12:20159 :: File "uibattlepass.py", line 64, in Show
1011 14:12:20160 :: File "uibattlepass.py", line 178, in MakeButton
1011 14:12:20160 :: AttributeError
1011 14:12:20160 :: :
1011 14:12:20160 :: 'module' object has no attribute 'MakeGauge'
1011 14:12:20160 ::
1011 14:12:20160 :: Unknown Server Command show_battlepass | show_battlepass
şu hatayı verıyor şimdid
Şu an konuyu görüntüleyenler (Toplam : 1, Üye: 0, Misafir: 1)
Benzer konular
- Cevaplar
- 222
- Görüntüleme
- 45K



