# aratın self.RefreshShowSalesText() # altına ekleyin if app.ENABLE_DOG_MODE: self.RefreshDogMode() # aratın self.showsalesTextButtonList = [] # altına ekleyin if app.ENABLE_DOG_MODE: self.dogModeButtonList = [] # aratın self.showsalesTextButtonList.append(GetObject("salestext_off_button")) # altına ekleyin if app.ENABLE_DOG_MODE: self.dogModeButtonList.append(GetObject("dog_mode_open")) self.dogModeButtonList.append(GetObject("dog_mode_close")) # aratın #global MOBILE if MOBILE: self.inputMobileButton.SetEvent(ui.__mem_func__(self.__OnChangeMobilePhoneNumber)) self.deleteMobileButton.SetEvent(ui.__mem_func__(self.__OnDeleteMobilePhoneNumber)) # altına ekleyin if app.ENABLE_DOG_MODE: self.dogModeButtonList[0].SAFE_SetEvent(self.__OnClickDogButton) self.dogModeButtonList[1].SAFE_SetEvent(self.__OffClickDogButton) # aratın def refreshviewchat(self): # altına ekleyin if app.ENABLE_DOG_MODE: self.RefreshDogMode() # def refreshviewchat fonksiyonu altına if app.ENABLE_DOG_MODE: def __OnClickDogButton(self): systemSetting.SetDogMode(True) self.RefreshDogMode() def __OffClickDogButton(self): systemSetting.SetDogMode(False) self.RefreshDogMode() def RefreshDogMode(self): if systemSetting.GetDogMode(): self.dogModeButtonList[0].Down() self.dogModeButtonList[1].SetUp() else: self.dogModeButtonList[0].SetUp() self.dogModeButtonList[1].Down() ########### UI GAMEOPTION ########### { "name" : "dogmode_on_off", "type" : "text", "x" : LINE_LABEL_X, "y" : 290+2 + 25, "text" : "Kopek Modu", }, { "name" : "dog_mode_open", "type" : "radio_button", "x" : LINE_DATA_X, "y" : 290 + 25, "text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_ON, "default_image" : "d:/ymir work/middle1.tga", "over_image" : "d:/ymir work/middle2.tga", "down_image" : "d:/ymir work/middle3.tga", }, { "name" : "dog_mode_close", "type" : "radio_button", "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH, "y" : 290 + 25, "text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF, "default_image" : "d:/ymir work/middle1.tga", "over_image" : "d:/ymir work/middle2.tga", "down_image" : "d:/ymir work/middle3.tga", },