删除图鉴内容
This commit is contained in:
@@ -585,66 +585,9 @@ namespace LoveLegend
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);
|
||||
});
|
||||
ui.btn_look_ad.SetClick(() => { LookAd(); });
|
||||
Setbg();
|
||||
}
|
||||
private SpriteRenderer game_bg = GameObject.Find("game_bg").GetComponent<SpriteRenderer>();
|
||||
public void Setbg(object a = null)
|
||||
{
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
if (GameHelper.GetLevel() < GameHelper.GetCommonModel().MultiModal)
|
||||
{
|
||||
TextureHelper.setGamebg(ConfigSystem.GetConfig<LevelUnlock>()[GameHelper.GetLevel() - 1].Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
Levelunlock levelunlock_ = DataMgr.LevelUnlockListNew.Value.FirstOrDefault(x => x.level_ == GameHelper.GetLevel());
|
||||
if (levelunlock_ != null)
|
||||
{
|
||||
if (levelunlock_.type == 0)
|
||||
{
|
||||
if (levelunlock_.config_index >= ConfigSystem.GetConfig<FreeImageLibrary>().Count) levelunlock_.config_index = ConfigSystem.GetConfig<FreeImageLibrary>().Count - 1;
|
||||
FreeImageLibrary _leveldata = ConfigSystem.GetConfig<FreeImageLibrary>()[levelunlock_.config_index];
|
||||
TextureHelper.setGamebg(_leveldata.Name);
|
||||
|
||||
}
|
||||
else if (levelunlock_.type == 1)
|
||||
{
|
||||
if (levelunlock_.config_index >= ConfigSystem.GetConfig<ADImageLibrary>().Count) levelunlock_.config_index = ConfigSystem.GetConfig<ADImageLibrary>().Count - 1;
|
||||
ADImageLibrary _leveldata = ConfigSystem.GetConfig<ADImageLibrary>()[levelunlock_.config_index];
|
||||
TextureHelper.setGamebg(_leveldata.Name);
|
||||
}
|
||||
else if (levelunlock_.type == 2)
|
||||
{
|
||||
if (levelunlock_.config_index >= ConfigSystem.GetConfig<SpecialImageLibrary>().Count) levelunlock_.config_index = ConfigSystem.GetConfig<SpecialImageLibrary>().Count - 1;
|
||||
SpecialImageLibrary _leveldata = ConfigSystem.GetConfig<SpecialImageLibrary>()[levelunlock_.config_index];
|
||||
TextureHelper.setGamebg(_leveldata.Name);
|
||||
}
|
||||
else if (levelunlock_.type == 3)
|
||||
{
|
||||
if (levelunlock_.config_index >= ConfigSystem.GetConfig<VIPImageLibrary>().Count) levelunlock_.config_index = ConfigSystem.GetConfig<VIPImageLibrary>().Count - 1;
|
||||
VIPImageLibrary _leveldata = ConfigSystem.GetConfig<VIPImageLibrary>()[levelunlock_.config_index];
|
||||
TextureHelper.setGamebg(_leveldata.Name);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (game_bg && game_bg.sprite && game_bg.sprite.texture.name != "")
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (GameHelper.GetLevel() - 1 < ConfigSystem.GetConfig<LevelUnlock>().Count)
|
||||
{
|
||||
TextureHelper.setGamebg(ConfigSystem.GetConfig<LevelUnlock>()[GameHelper.GetLevel() - 1].Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
TextureHelper.setGamebg(ConfigSystem.GetConfig<LevelUnlock>()[ConfigSystem.GetConfig<LevelUnlock>().Count - 1].Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckEnd(object a = null)
|
||||
{
|
||||
if (out_list.Count == 0)//是否通关
|
||||
@@ -778,7 +721,7 @@ namespace LoveLegend
|
||||
}
|
||||
ui.btn_pass.red.visible = SaveData.getRed();
|
||||
checkThreeGift();
|
||||
Setbg();
|
||||
|
||||
if ((!SaveData.GetSaveObject().is_get_packreward || !SaveData.GetSaveObject().is_get_removead) && !SaveData.GetSaveObject().is_autopack_show
|
||||
&& GameHelper.showGameUI && Time.time > ConfigSystem.GetCommonConf().Activetimes * 60)
|
||||
{
|
||||
@@ -1031,7 +974,7 @@ namespace LoveLegend
|
||||
SaveData.GetSaveObject().usePropsNum[i] = 0;
|
||||
}
|
||||
|
||||
Setbg();
|
||||
|
||||
CheckFeature();
|
||||
if (GameHelper.IsGiftSwitch() && GameHelper.GetCommonModel().Assitant == 1 && GameHelper.GetLevel() >= GameHelper.GetCommonModel().AssitantPreview)
|
||||
{
|
||||
|
||||
@@ -227,56 +227,56 @@ namespace LoveLegend
|
||||
SaveData.SaveDataFunc();
|
||||
purch_number = ConfigSystem.GetConfig<Multigift>()[0].Paid_price2.ToString();
|
||||
}
|
||||
else if (type.StartsWith("vip_club"))
|
||||
{
|
||||
is_maxPay = true;
|
||||
int startIndex = "vip_club".Length;
|
||||
string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
int suffixNum = int.Parse(suffix);
|
||||
// else if (type.StartsWith("vip_club"))
|
||||
// {
|
||||
// is_maxPay = true;
|
||||
// int startIndex = "vip_club".Length;
|
||||
// string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
// int suffixNum = int.Parse(suffix);
|
||||
|
||||
if (!MaxPayManager.isIOSPay)
|
||||
{
|
||||
var days = 0;
|
||||
switch (suffixNum)
|
||||
{
|
||||
case 0:
|
||||
days = (int)VipDay.Week;
|
||||
break;
|
||||
case 1:
|
||||
days = (int)VipDay.Month;
|
||||
break;
|
||||
case 2:
|
||||
days = (int)VipDay.Year;
|
||||
break;
|
||||
}
|
||||
// if (!MaxPayManager.isIOSPay)
|
||||
// {
|
||||
// var days = 0;
|
||||
// switch (suffixNum)
|
||||
// {
|
||||
// case 0:
|
||||
// days = (int)VipDay.Week;
|
||||
// break;
|
||||
// case 1:
|
||||
// days = (int)VipDay.Month;
|
||||
// break;
|
||||
// case 2:
|
||||
// days = (int)VipDay.Year;
|
||||
// break;
|
||||
// }
|
||||
|
||||
if (days > 0)
|
||||
{
|
||||
// 设置 VIP 到期时间(当前时间戳 + VIP 天数对应的秒数)
|
||||
if (DataMgr.VipExpirationTime.Value > ServerClock.GetCurrentServerTime())
|
||||
{
|
||||
DataMgr.VipExpirationTime.Value = DataMgr.VipExpirationTime.Value + days * 24 * 60 * 60;
|
||||
}
|
||||
else DataMgr.VipExpirationTime.Value = ServerClock.GetCurrentServerTime() + days * 24 * 60 * 60;
|
||||
}
|
||||
DataMgr.VipLevel.Value = suffixNum + 1;
|
||||
}
|
||||
purch_number = ConfigSystem.GetConfig<VipClub>()[suffixNum].DiscountPrice.ToString();
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.BuyVip);
|
||||
}
|
||||
else if (type.StartsWith("secret_albnums"))
|
||||
{
|
||||
is_maxPay = true;
|
||||
int startIndex = "secret_albnums".Length;
|
||||
string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
int suffix_num = int.Parse(suffix);
|
||||
var model = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num];
|
||||
if (model.PayType == (int)UnlockPayType.Pay && !GameHelper.isVipUnlock)
|
||||
{
|
||||
purch_number = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num].DiscountPrice.ToString();
|
||||
}
|
||||
GameHelper.isVipUnlock = false;
|
||||
}
|
||||
// if (days > 0)
|
||||
// {
|
||||
// // 设置 VIP 到期时间(当前时间戳 + VIP 天数对应的秒数)
|
||||
// if (DataMgr.VipExpirationTime.Value > ServerClock.GetCurrentServerTime())
|
||||
// {
|
||||
// DataMgr.VipExpirationTime.Value = DataMgr.VipExpirationTime.Value + days * 24 * 60 * 60;
|
||||
// }
|
||||
// else DataMgr.VipExpirationTime.Value = ServerClock.GetCurrentServerTime() + days * 24 * 60 * 60;
|
||||
// }
|
||||
// DataMgr.VipLevel.Value = suffixNum + 1;
|
||||
// }
|
||||
// purch_number = ConfigSystem.GetConfig<VipClub>()[suffixNum].DiscountPrice.ToString();
|
||||
// GameDispatcher.Instance.Dispatch(GameMsg.BuyVip);
|
||||
// }
|
||||
// else if (type.StartsWith("secret_albnums"))
|
||||
// {
|
||||
// is_maxPay = true;
|
||||
// int startIndex = "secret_albnums".Length;
|
||||
// string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
// int suffix_num = int.Parse(suffix);
|
||||
// var model = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num];
|
||||
// if (model.PayType == (int)UnlockPayType.Pay && !GameHelper.isVipUnlock)
|
||||
// {
|
||||
// purch_number = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num].DiscountPrice.ToString();
|
||||
// }
|
||||
// GameHelper.isVipUnlock = false;
|
||||
// }
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PayloadingUI_Close);
|
||||
|
||||
if ((!GameHelper.IsAdModelOfPay() || is_maxPay) && !string.IsNullOrEmpty(purch_number) && decimal.TryParse(purch_number, out decimal revenue))
|
||||
|
||||
Reference in New Issue
Block a user