Blogumuzdaki yazıya yorum yapılmıştır. Paylaşımın Adresi

Serverine Exp Bağışlama Butonu Ekle - Vector

8 Eylül 2014 Pazartesi tarihinde yazılmıştır.


Root game.py açılır

aratılır;

import chat
altına eklenir;
import event

Son hali;

aratılır;

testAlignment = 0
altına eklenir;
BPisLodaded = 0

Son hali;

aratılır;

self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())
altına eklenir;
self.Vectors_Menu = ui.Button()
self.Vectors_Menu.SetPosition(wndMgr.GetScreenWidt h()-10,wndMgr.GetScreenHeight()/2+250)
self.Vectors_Menu.SetUpVisual("Vectors/1_1.tga")
self.Vectors_Menu.SetOverVisual("Vectors/1_2.tga")
self.Vectors_Menu.SetDownVisual("Vectors/1_3.tga")
self.Vectors_Menu.SetEvent(ui.__mem_func__(self.__ menubg))
self.Vectors_Menu.Show()

self.Vector_Menu = ui.Button()
self.Vector_Menu.SetPosition(wndMgr.GetScreenWidth ()-60,wndMgr.GetScreenHeight()/2+250)
self.Vector_Menu.SetUpVisual("Vectors/2_1.tga")
self.Vector_Menu.SetOverVisual("Vectors/2_2.tga")
self.Vector_Menu.SetDownVisual("Vectors/2_3.tga")
self.Vector_Menu.SetEvent(ui.__mem_func__(self.__m enubg))
self.Vector_Menu.Hide()


menu_bg = ui.AniImageBox()
menu_bg.AppendImage("Vectors/Vector.tga") 
self.menu_bg = menu_bg
self.menu_bg.SetPosition(wndMgr.GetScreenWidth()-50,wndMgr.GetScreenHeight()/2+250)
self.menu_bg.SetSize(50, 250) 
self.menu_bg.Hide()

self.AntiExp = ui.Button()
self.AntiExp.SetParent(self.menu_bg) 
self.AntiExp.SetPosition(10, 40)
self.AntiExp.SetUpVisual("Vectors/7.tga")
self.AntiExp.SetOverVisual("Vectors/8.tga")
self.AntiExp.SetDownVisual("Vectors/7.tga")
self.AntiExp.SetEvent(self.__Vectors_antiexp)
self.AntiExp.Show()

Son hali;


aratılır;

chat.Close()
altına eklenir;
self.menu_bg.Hide()
self.Vector_Menu.Hide()
self.Vectors_Menu.Hide()

Son hali;


aratılır;

serverCommandList={
altına eklenir;
"antiexp_index" :self.__antiexp_questindex,

Son hali;


aratılır;

BINARY_ServerCommand_Run
üstüne eklenir;
def __menubg(self):
if constInfo.MENU_BG == 0:
constInfo.MENU_BG = 1
self.menu_bg.Show()
self.Vectors_Menu.Hide()
self.Vector_Menu.Show()
else:
constInfo.MENU_BG = 0
self.menu_bg.Hide()
self.Vectors_Menu.Show()
self.Vector_Menu.Hide()
def __antiexp_questindex(self, value1):
constInfo.ANTIEXP_QUESTINDEX = int(value1)
def __Vectors_antiexp(self):
Vectors_antiexp = constInfo.ANTIEXP_QUESTINDEX
event.QuestButtonClick(Vectors_antiexp)

Son hali;



Costininfo.py açılır

aratılır;

LOGIN_COUNT_LIMIT_ENABLE = 0
altına eklenir;
ANTIEXP_QUESTINDEX = 0
MENU_BG = 0

Son hali;

Ui.py açılır

aratılır;

self.ButtonText.SetText(text)
altına eklenir;
def GetText(self):
if not self.ButtonText:
return
return self.ButtonText.GetText()

Son hali;




son olarak root içine Vectors klasörü atılır kapatılır.
Vector_questini eklemeyi unutmayın.
Kodları konudan değil rar içerisinde ki pylerden kopyalayın.





Vectora emeğinden dolayı teşekkür ederiz.

Serverine Exp Bağışlama Butonu Ekle - Vector için “0 yorum” bulunmaktadır.