shrpnl 1
shrpnl
DEVLOPER 1
DEVLOPER
Manwe Work 1
Manwe Work
Agora Metin2 1
Agora Metin2
Karan2offical 1
Karan2offical
mavzermete 1
mavzermete
M 1
m2referencee
Fethi Polat 1
Fethi Polat
InfernoShade 1
InfernoShade
farkmt2official 1
farkmt2official
romegames 1
romegames
bikral 1
bikral
Hikaye Ekle

[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

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

çok teşekür ederim
 
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.








55 K fileste denedim hiç bir şekilde Çalıştırammadım loadigde takıldı vs
 
Eline sağlık iyi bir paylaşım olmuş :)
 

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

Geri
Üst