Hızlı Konu Açma

Hızlı Konu Açmak için tıklayınız.

Son Mesajlar

Konulardaki Son Mesajlar

Reklam

Forumda Reklam Vermek İçin Bize Ulaşın

Oyun Seçeneklerine Gece - Gündüz Ekleme ( Panel Yeri )

GoodSoftware

Üye
Kayıtlı Üye
Katılım
16 Mart 2015
Mesajlar
10
Tepkime puanı
0
Puanları
0
1) root/uigameoption.py aç VE ara:
Kod:
Kod:
import interfaceModule
Altına ekle:




Kod:
Kod:
import background
Ara :




Kod:
Kod:
        self.RefreshShowSalesText()
Altına ekle :




Kod:
Kod:
        self.RefreshShowNightText()
Ara :




Kod:
Kod:
        self.showsalesTextButtonList = []
Altına ekle :




Kod:
Kod:
        self.showNightButtonList = []
Ara :




Kod:
Kod:
        self.showsalesTextButtonList.append(GetObject("salestext_on_button"))
        self.showsalesTextButtonList.append(GetObject("salestext_off_button"))
Altına ekle :




Kod:
Kod:
        self.showNightButtonList.append(GetObject("showNight_on_button"))
        self.showNightButtonList.append(GetObject("showNight_off_button"))
Ara :




Kod:
Kod:
        self.showsalesTextButtonList[0].SAFE_SetEvent(self.__OnClickSalesTextOnButton)
        self.showsalesTextButtonList[1].SAFE_SetEvent(self.__OnClickSalesTextOffButton)
Altına ekle :




Kod:
Kod:
        self.showNightButtonList[0].SAFE_SetEvent(self.__OnClickShowNightOnButton)
        self.showNightButtonList[1].SAFE_SetEvent(self.__OnClickShowNightOffButton)
Ara :




Kod:
Kod:
    def __OnClickSalesTextOnButton(self):
        systemSetting.SetShowSalesTextFlag(TRUE)
        self.RefreshShowSalesText()
        uiPrivateShopBuilder.UpdateADBoard()
        
    def __OnClickSalesTextOffButton(self):
        systemSetting.SetShowSalesTextFlag(FALSE)
        self.RefreshShowSalesText()
Altına ekle :




Kod:
Kod:
    def __OnClickShowNightOnButton(self):
        background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
        background.SetEnvironmentData(1)
        constInfo.Night = 1
        self.RefreshShowNightText()    
        
    def __OnClickShowNightOffButton(self):
        background.SetEnvironmentData(0)
        constInfo.Night = 0
        self.RefreshShowNightText()
Ara :




Kod:
Kod:
    def RefreshShowSalesText(self):
        if systemSetting.IsShowSalesText():
            self.showsalesTextButtonList[0].Down()
            self.showsalesTextButtonList[1].SetUp()
        else:
            self.showsalesTextButtonList[0].SetUp()
            self.showsalesTextButtonList[1].Down()
Altına ekle :




Kod:
Kod:
    def RefreshShowNightText(self):
        if constInfo.Night == 1:
            self.showNightButtonList[0].Down()
            self.showNightButtonList[1].SetUp()
        else:
            self.showNightButtonList[0].SetUp()
            self.showNightButtonList[1].Down()
2) root/constInfo.py aç ve ara :




Kod:
Kod:
ENVIRONMENT_NIGHT="d:/ymir work/environment/moonlight04.msenv"
altına ekle :




Kod:
Kod:
Night = 0
03) uiscript/gameoptiondialog.py aç VE başlangıçta yazan kısmı bununla değiştir :




Kod:
Kod:
TEMPORARY_X = +14
BUTTON_TEMPORARY_X = 5
PVP_X = -10




LINE_LABEL_X = 30
LINE_DATA_X = 90
LINE_STEP = 0
SMALL_BUTTON_WIDTH = 45
MIDDLE_BUTTON_WIDTH = 65
Ara :




Kod:
Kod:
26*11+8, or 25*11+8,
Değiştir :




Kod:
Kod:
28*11+8,
Ve bunu dosyada herhangi bir kod bloğunun altına ekleyin :




Kod:
Kod:
#Gece Gündüz Sistemi
                {
                    "name" : "showNight_on_off",
                    "type" : "text",








                    "x" : LINE_LABEL_X,
                    "y" : 265+2,








                    "text" : "Hava Ayarı",
                },
                {
                    "name" : "showNight_on_button",
                    "type" : "radio_button",








                    "x" : LINE_DATA_X,
                    "y"    : 265,








                    "text" : "Gece",








                    "default_image" : ROOT_PATH + "middle_button_01.sub",
                    "over_image" : ROOT_PATH + "middle_button_02.sub",
                    "down_image" : ROOT_PATH + "middle_button_03.sub",
                },
                {
                    "name" : "showNight_off_button",
                    "type" : "radio_button",








                    "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
                    "y" : 265,








                    "text" : "Gündüz",








                    "default_image" : ROOT_PATH + "middle_button_01.sub",
                    "over_image" : ROOT_PATH + "middle_button_02.sub",
                    "down_image" : ROOT_PATH + "middle_button_03.sub",
                },








# Panel Yeri

Yapamayan Arkadaşlarımız Verdiğim Dosyayı İndirip Yapabilirler.



Linkleri sadece kayıtlı üyeler görebilir. Linkleri görebilmek için Üye Girişi yapın veya ücretsiz olarak Kayıt Olun

 

Users Who Are Viewing This Konu (Users: 0, Guests: 1)

Üst