Simya Paneline "Arındır" Butonu Eklemek

mhmtakfsrt

Üye
Üye
Mesaj
50
Çözümler
3
Beğeni
108
Puan
669
Ticaret Puanı
0
game > src > DragonSoul.cpp açılır, her biri aratılıp silinir.

DragonSoul.cpp:
Genişlet Daralt Kopyala
    if (!ch->DragonSoul_RefineWindow_CanRefine())
    {
        sys_err ("%s do not activate DragonSoulRefineWindow. But how can he come here?", ch->GetName());
        ch->ChatPacket(CHAT_TYPE_INFO, "[SYSTEM ERROR]You cannot upgrade dragon soul without refine window.");
        return false;
    }

----------------------------------------------------------------------------------

    if (!ch->DragonSoul_RefineWindow_CanRefine())
    {
        sys_err ("%s do not activate DragonSoulRefineWindow. But how can he come here?", ch->GetName());
        ch->ChatPacket(CHAT_TYPE_INFO, "[SYSTEM ERROR]You cannot use dragon soul refine window.");
        return false;
    }

----------------------------------------------------------------------------------

    if (!ch->DragonSoul_RefineWindow_CanRefine())
    {
        sys_err ("%s do not activate DragonSoulRefineWindow. But how can he come here?", ch->GetName());
        ch->ChatPacket(CHAT_TYPE_INFO, "[SYSTEM ERROR]You cannot use dragon soul refine window.");
        return false;
    }

root > uidragonsoul.py
Arat ;
uidragonsoul.py:
Genişlet Daralt Kopyala
        self.activateButton = self.GetChild("activate")
Altıne ekle ;
uidragonsoul.py:
Genişlet Daralt Kopyala
        self.arindirButton = self.GetChild("arindir")
Arat ;
uidragonsoul.py:
Genişlet Daralt Kopyala
        self.activateButton.SetToggleUpEvent(ui.__mem_func__(self.ActivateButtonClick))
Altına ekle ;
uidragonsoul.py:
Genişlet Daralt Kopyala
        self.arindirButton.SetToggleDownEvent(ui.__mem_func__(self.ArindirButtonClick))
        self.arindirButton.SetToggleUpEvent(ui.__mem_func__(self.ArindirButtonUnClick))
Arat ;
uidragonsoul.py:
Genişlet Daralt Kopyala
    def DeactivateDragonSoul(self):
        self.DeactivateEquipSlotWindow()
        self.isActivated = False
        self.activateButton.SetUp()
Altına ekle ;
uidragonsoul.py:
Genişlet Daralt Kopyala
    def ArindirButtonClick(self):
        if False == player.IsObserverMode():
            if app.ENABLE_DRAGON_SOUL_SYSTEM:
                if False == self.wndDragonSoulRefine.IsShow():
                    self.wndDragonSoulRefine.Show()


    def ArindirButtonUnClick(self):
        if False == player.IsObserverMode():
            if app.ENABLE_DRAGON_SOUL_SYSTEM:
                if True == self.wndDragonSoulRefine.IsShow():
                    self.wndDragonSoulRefine.Close()
locale_tr > locale > tr > ui > dragonsoulwindow.py
Arat ;
dragonsoulwindow.py:
Genişlet Daralt Kopyala
                {                   
                    "name" : "activate",
                    "type" : "toggle_button",

                    "x" : 217,
                    "y" : 492,

                    "text" : uiScriptLocale.DRAGONSOUL_ACTIVATE,

                    "default_image" : "d:/ymir work/ui/dragonsoul/m_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/m_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/m_button03.tga",
                },
dragonsoulwindow.py:
Genişlet Daralt Kopyala
                {
                    "name" : "arindir",
                    "type" : "toggle_button",

                    "x" : 155,
                    "y" : 492,

                    "text" : uiScriptLocale.DO_REFINE,

                    "default_image" : "d:/ymir work/ui/dragonsoul/m_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/m_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/m_button03.tga",
                },
0423_030935.webp
 
İyi akşamlar konu çok eski biliyorum ama arındır tuşu esc ile arındırma ekranını kapatınca takılı kalıyor yardımcı olur musunuz ?
 
Geri
Üst