- Katılım
- 16 Mart 2015
- Mesajlar
- 10
- Tepkime puanı
- 0
- Puanları
- 0
Kod:
Kod:
import interfaceModule
Kod:
Kod:
import background
Kod:
Kod:
self.RefreshShowSalesText()
Kod:
Kod:
self.RefreshShowNightText()
Kod:
Kod:
self.showsalesTextButtonList = []
Kod:
Kod:
self.showNightButtonList = []
Kod:
Kod:
self.showsalesTextButtonList.append(GetObject("salestext_on_button"))
self.showsalesTextButtonList.append(GetObject("salestext_off_button"))
Kod:
Kod:
self.showNightButtonList.append(GetObject("showNight_on_button"))
self.showNightButtonList.append(GetObject("showNight_off_button"))
Kod:
Kod:
self.showsalesTextButtonList[0].SAFE_SetEvent(self.__OnClickSalesTextOnButton)
self.showsalesTextButtonList[1].SAFE_SetEvent(self.__OnClickSalesTextOffButton)
Kod:
Kod:
self.showNightButtonList[0].SAFE_SetEvent(self.__OnClickShowNightOnButton)
self.showNightButtonList[1].SAFE_SetEvent(self.__OnClickShowNightOffButton)
Kod:
Kod:
def __OnClickSalesTextOnButton(self):
systemSetting.SetShowSalesTextFlag(TRUE)
self.RefreshShowSalesText()
uiPrivateShopBuilder.UpdateADBoard()
def __OnClickSalesTextOffButton(self):
systemSetting.SetShowSalesTextFlag(FALSE)
self.RefreshShowSalesText()
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()
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()
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()
Kod:
Kod:
ENVIRONMENT_NIGHT="d:/ymir work/environment/moonlight04.msenv"
Kod:
Kod:
Night = 0
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
Kod:
Kod:
26*11+8, or 25*11+8,
Kod:
Kod:
28*11+8,
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