- 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.
root > uidragonsoul.py
Arat ;
Altıne ekle ;
Arat ;
Altına ekle ;
Arat ;
Altına ekle ;
locale_tr > locale > tr > ui > dragonsoulwindow.py
Arat ;
DragonSoul.cpp:
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:
self.activateButton = self.GetChild("activate")
uidragonsoul.py:
self.arindirButton = self.GetChild("arindir")
uidragonsoul.py:
self.activateButton.SetToggleUpEvent(ui.__mem_func__(self.ActivateButtonClick))
uidragonsoul.py:
self.arindirButton.SetToggleDownEvent(ui.__mem_func__(self.ArindirButtonClick))
self.arindirButton.SetToggleUpEvent(ui.__mem_func__(self.ArindirButtonUnClick))
uidragonsoul.py:
def DeactivateDragonSoul(self):
self.DeactivateEquipSlotWindow()
self.isActivated = False
self.activateButton.SetUp()
uidragonsoul.py:
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()
Arat ;
dragonsoulwindow.py:
{
"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:
{
"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",
},