mavzermete 1
mavzermete
Mt2Hizmet 1
Mt2Hizmet
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Reklam vermek için turkmmo@gmail.com

(Python) Oyun Seçeneklerine Kar Göster Gizle Ekle #Vectors

B9Zx65I.png

Root Constinfo.py eklenir;
Kod:
Kar = 0
uigameoption.py importların altına eklenir;
Kod:
import background
Aratılır;
Kod:
self.RefreshShowSalesText()
Altına eklenir;
Kod:
self.RefreshShow()
Aratılır;
Kod:
self.showsalesTextButtonList = []
Altına eklenir;
Kod:
self.VectorsSnow = []
Aratılır;
Kod:
self.showsalesTextButtonList.append(GetObject("salestext_off_button"))
Altına eklenir;
Kod:
self.VectorsSnow.append(GetObject("snow_on"))
self.VectorsSnow.append(GetObject("snow_off"))
Aratılır;
Kod:
self.showsalesTextButtonList[1].SAFE_SetEvent(self.__OnClickSalesTextOffButton)
Altına eklenir;
Kod:
self.VectorsSnow[0].SAFE_SetEvent(self._snowon)
self.VectorsSnow[1].SAFE_SetEvent(self._snowoff)

Aratılır;
Kod:
def __ClickRadioButton(self, buttonList, buttonIndex):

Kod:
    def _snowon(self):
        background.SetEnvironmentData(1)
        background.EnableSnow(1)
        constInfo.Kar = 1
        self.RefreshShow()


    def _snowoff(self):
        background.SetEnvironmentData(0)
        background.EnableSnow(0)
        constInfo.Kar = 0
        self.RefreshShow()


    def RefreshShow(self):
        if constInfo.Kar == 1:
            self.VectorsSnow[0].Down()
            self.VectorsSnow[1].SetUp()
        else:
            self.VectorsSnow[0].SetUp()
            self.VectorsSnow[1].Down()


uiscript gameoptiondialog.py aratılır;
(İki adet var ikisinede uygulayın.)
Kod:
25*11+8,
Değiştirilir;
Kod:
27*11+8,
Aratılır;
Kod:
"name" : "salestext_off_button",

Kod:
                {
                    "name" : "@Vectors",
                    "type" : "text",




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




                    "text" : "Kar",
                },
                {
                    "name" : "snow_on",
                    "type" : "radio_button",




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




                    "text" : uiScriptLocale.OPTION_VIEW_CHAT_ON,




                    "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" : "snow_off",
                    "type" : "radio_button",




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




                    "text" : uiScriptLocale.OPTION_VIEW_CHAT_OFF,




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

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

Geri
Üst