- Katılım
- 6 Mayıs 2022
- Konular
- 48,291
- Mesajlar
- 48,601
- Tepkime puanı
- 75
- M2 Yaşı
- 3 yıl 11 ay 10 gün
- Trophy Puan
- 48
- M2 Yang
- 488,879
GECE GÜNDÜZ ŞIK EKLEME
[/FONT] 1. uigameoption.py:
Kodu:
İthalat interfaceModule
Daha sonra bu aşağıdakini ekleyin:
Kodu:
ithalat arka plan
arayın:
Kodu:
kendini . RefreshShowSalesText ()
Bu aşağıdakini ekleyin:
Kodu:
kendini . RefreshShowNightText ()
arayın:
Kodu:
kendini . showsalesTextButtonList = [*]
Bu aşağıdakini ekleyin:
Kodu:
kendini . showNightButtonList = [*]
arayın:
Kodu:
self . showsalesTextButtonList . append ( GetObject ( "salestext_on_button" ))
self . showsalesTextButtonList . append ( GetObject ( "salestext_off_button" ))
Bu aşağıdakini ekleyin:
Kodu:
self . showNightButtonList . append ( GetObject ( "showNight_on_button" ))
self . showNightButtonList . append ( GetObject ( "showNight_off_button" ))
arayın:
Kodu:
self . showsalesTextButtonList [ 0 ]. SAFE_SetEvent ( self . __OnClickSalesTextOnButton )
self . showsalesTextButtonList [ 1 ]. SAFE_SetEvent ( self . __OnClickSalesTextOffButton )
Bu aşağıdakini ekleyin:
Kodu:
self . showNightButtonList [ 0 ]. SAFE_SetEvent ( self . __OnClickShowNightOnButton )
self . showNightButtonList [ 1 ]. SAFE_SetEvent ( self . __OnClickShowNightOffButton )
arayın
Kodu:
def __OnClickSalesTextOnButton ( self ):
systemSetting . SetShowSalesTextFlag ( TRUE )
self . RefreshShowSalesText ()
uiPrivateShopBuilder . UpdateADBoard ()
def __OnClickSalesTextOffButton ( self ):
systemSetting . SetShowSalesTextFlag ( FALSE )
self . RefreshShowSalesText ()
Bu aşağıdakini ekleyin:
Kodu:
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 ()
arayın:
Kodu:
def RefreshShowSalesText ( self ):
if systemSetting . IsShowSalesText ():
self . showsalesTextButtonList [ 0
[/FONT] 1. uigameoption.py:
Kodu:
İthalat interfaceModule
Daha sonra bu aşağıdakini ekleyin:
Kodu:
ithalat arka plan
arayın:
Kodu:
kendini . RefreshShowSalesText ()
Bu aşağıdakini ekleyin:
Kodu:
kendini . RefreshShowNightText ()
arayın:
Kodu:
kendini . showsalesTextButtonList = [*]
Bu aşağıdakini ekleyin:
Kodu:
kendini . showNightButtonList = [*]
arayın:
Kodu:
self . showsalesTextButtonList . append ( GetObject ( "salestext_on_button" ))
self . showsalesTextButtonList . append ( GetObject ( "salestext_off_button" ))
Bu aşağıdakini ekleyin:
Kodu:
self . showNightButtonList . append ( GetObject ( "showNight_on_button" ))
self . showNightButtonList . append ( GetObject ( "showNight_off_button" ))
arayın:
Kodu:
self . showsalesTextButtonList [ 0 ]. SAFE_SetEvent ( self . __OnClickSalesTextOnButton )
self . showsalesTextButtonList [ 1 ]. SAFE_SetEvent ( self . __OnClickSalesTextOffButton )
Bu aşağıdakini ekleyin:
Kodu:
self . showNightButtonList [ 0 ]. SAFE_SetEvent ( self . __OnClickShowNightOnButton )
self . showNightButtonList [ 1 ]. SAFE_SetEvent ( self . __OnClickShowNightOffButton )
arayın
Kodu:
def __OnClickSalesTextOnButton ( self ):
systemSetting . SetShowSalesTextFlag ( TRUE )
self . RefreshShowSalesText ()
uiPrivateShopBuilder . UpdateADBoard ()
def __OnClickSalesTextOffButton ( self ):
systemSetting . SetShowSalesTextFlag ( FALSE )
self . RefreshShowSalesText ()
Bu aşağıdakini ekleyin:
Kodu:
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 ()
arayın:
Kodu:
def RefreshShowSalesText ( self ):
if systemSetting . IsShowSalesText ():
self . showsalesTextButtonList [ 0
