metiin2hero 1
metiin2hero
Bodyguardd 1
Bodyguardd
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
ByYlmzTR 1
ByYlmzTR
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Reklam vermek için turkmmo@gmail.com

[Python] 5 Sekmeli Hızlı Ekipman İlk Paylaşım #Vectors

  • Konuyu başlatan Konuyu başlatan Vectors
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 279
  • Görüntüleme Görüntüleme 43K
3pqsX1o.jpg


F5 EKLEME​
Root game.py aratılır
Kod:
onPressKeyDict[app.DIK_F4]    = lambda : self.__PressQuickSlot(7)
Altına eklenir
Kod:
onPressKeyDict[app.DIK_F5]     = lambda : self._VectorsHzl()

Game.py sonuna eklenir
Kod:
    def _VectorsHzl(self):
        import uiVectorsHzl 
        self.VectorsHzl = uiVectorsHzl.VectorsKSK()
        self.VectorsHzl.Show()

vo0Mpp.jpg

ENVANTER İÇİNE BUTON OLARAK EKLEME​
root uiinventory.py aratılır
Kod:
self.costumeButton = self.GetChild2("CostumeButton")
altına eklenir
Kod:
self.VectorsHzl = self.GetChild2("VectorsHzl")
aratılır
Kod:
        # Costume Button
        if self.costumeButton:
            self.costumeButton.SetEvent(ui.__mem_func__(self.ClickCostumeButton))


        self.wndCostume = None
altına eklenir
Kod:
        # Hzl Ekpmn
        if self.VectorsHzl:
            self.VectorsHzl.SetEvent(ui.__mem_func__(self._VectorsHzl))


        self.wndCostume = None
aratılır
Kod:
    def ClickCostumeButton(self):
        print "Click Costume Button"
        if self.wndCostume:
            if self.wndCostume.IsShow(): 
                self.wndCostume.Hide()
            else:
                self.wndCostume.Show()
        else:
            self.wndCostume = CostumeWindow(self)
            self.wndCostume.Show()
altına eklenir
Kod:
    def _VectorsHzl(self):
        import uiVectorsHzl 
        self.VectorsHzl = uiVectorsHzl.VectorsKSK()
        self.VectorsHzl.Show()
locale inventorywindow.py açılır aratılır
Kod:
                        ## CostumeButton
                        {
                            "name" : "CostumeButton",
                            "type" : "button",


                            "x" : 78,
                            "y" : 5,


                            "tooltip_text" : uiScriptLocale.COSTUME_TITLE,


                            "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
                            "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
                            "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
                        },
altına eklenir
Kod:
                        {
                            "name" : "VectorsHzl",
                            "type" : "button",


                            "x" : 118,
                            "y" : 107,


                            "tooltip_text" : uiScriptLocale.HZL,


                            "default_image" : "costume_01.tga",
                            "over_image" : "costume_02.tga",
                            "down_image" : "costume_03.tga",
                        },
locale/de & locale/tr (hangisini kullanıyorsanız.)
locale_interface.txt açılır en alta eklenir
Kod:
HZL    Hızlı Ekipman
Vgy1ly.jpg

TASKBARA BUTON OLARAK EKLEME
​
Root uitaskbar.py aratılır
Kod:
toggleButtonDict[TaskBar.BUTTON_CHAT]=self.GetChild("ChatButton")
altına eklenir
Kod:
toggleButtonDict[TaskBar.BUTTON_HZL]=self.GetChild("VectorsHzl")
aratılır
Kod:
BUTTON_CHAT = 4
altına eklenir
Kod:
BUTTON_HZL = 5
interfacemodule.py aratılır
Kod:
self.wndTaskBar.SetToggleButtonEvent(uiTaskBar.TaskBar.BUTTON_CHAT, ui.__mem_func__(self.ToggleChat))
altına eklenir
Kod:
self.wndTaskBar.SetToggleButtonEvent(uiTaskBar.TaskBar.BUTTON_HZL, ui.__mem_func__(self.ToggleVectorsHzl))
aratılır
Kod:
    def ToggleChat(self):
altına eklenir
Kod:
    def ToggleVectorsHzl(self):
        import uiVectorsHzl 
        self.VectorsHzl = uiVectorsHzl.VectorsKSK()
        self.VectorsHzl.Show()
locale taskbar.py aratılır
Kod:
        {
            "name" : "MessengerButton",
            "type" : "button",


            "x" : SCREEN_WIDTH - 76,
            "y" : 3 + Y_ADD_POSITION,


            "tooltip_text" : uiScriptLocale.TASKBAR_MESSENGER,


            "default_image" : ROOT + "TaskBar/Community_Button_01.sub",
            "over_image" : ROOT + "TaskBar/Community_Button_02.sub",
            "down_image" : ROOT + "TaskBar/Community_Button_03.sub",
        },
altına eklenir
Kod:
        {
            "name" : "VectorsHzl",
            "type" : "button",


            "x" : SCREEN_WIDTH - 178,
            "y" : 3 + Y_ADD_POSITION,


            "tooltip_text" : uiScriptLocale.HZL,


            "default_image" : "costume_01.tga",
            "over_image" : "costume_02.tga",
            "down_image" : "costume_03.tga",
        },
locale/de & locale/tr (hangisini kullanıyorsanız.)
locale_interface.txt açılır en alta eklenir
Kod:
HZL    Hızlı Ekipman

Taskbara ekleyenler siteden alt kısımdan kopyalasın yada down. edip eklesin.
.Rar içerisinde ki dosyalar root içine atılır.Kodları .Rar içerisinden kopyalayın.





​


Güzel paylaşım teşekkür ederim yalnız hızlı ekipman sisteminde tıpkı envanter gibi bir sistem mevcut olamaz mı yani hızlı ekipmana koyulan itemler envanterde değilde ekipman sekmesinde kalsa çok daha iyi olur hem envanterde Fuzuli yer kaplamaz itemler .
 
Güzel paylaşım teşekkür ederim yalnız hızlı ekipman sisteminde tıpkı envanter gibi bir sistem mevcut olamaz mı yani hızlı ekipmana koyulan itemler envanterde değilde ekipman sekmesinde kalsa çok daha iyi olur hem envanterde Fuzuli yer kaplamaz itemler .
Sadece python ile dediğin yapılmaz maalesef.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst