fix:更换sdk,修复bug

This commit is contained in:
barry
2026-06-06 16:55:32 +08:00
parent bd28506b1f
commit 7003140acc
565 changed files with 44334 additions and 43789 deletions
@@ -269,8 +269,14 @@ namespace RedHotRoast
DataMgr.LevelUnlockVIP.Value = Vip_Alubum;
}
FreeImageLibrary free_ImageLibrary = ConfigSystem.GetFreeImageConfig()[DataMgr.LevelUnlockFree.Value];
Debug.Log($"DataMgr.LevelUnlockFree.Value----------------{DataMgr.LevelUnlockFree.Value}");
var freeIamgeList = ConfigSystem.GetFreeImageConfig();
var freeIndex = DataMgr.LevelUnlockFree.Value;
if (freeIndex < 0 || freeIndex >= freeIamgeList.Count)
{
freeIndex = freeIndex < 0 ? 0 : freeIamgeList.Count - 1;
}
FreeImageLibrary free_ImageLibrary = ConfigSystem.GetFreeImageConfig()[freeIndex];
ui.item_0.btn_unlock.pay_type.selectedIndex = 2;
ui.item_0_re.btn_unlock.visible = false;
TextureHelper.SetImgLoader(ui.item_0.com_pic.picture, free_ImageLibrary.Name, (s) =>
@@ -279,6 +285,15 @@ namespace RedHotRoast
}, "LevelAlbums/", FolderNames.AlbumName);
int Free_Alubum_1 = PlayerPrefs.GetInt("Free_Alubum_1", -1);
var freeImageLibraryList = ConfigSystem.GetFreeImageConfig();
if (Free_Alubum_1 < 0)
{
Free_Alubum_1 = 0;
}
else if (Free_Alubum_1 >= freeImageLibraryList.Count)
{
Free_Alubum_1 = freeImageLibraryList.Count - 1;
}
FreeImageLibrary free_ImageLibrary_re = ConfigSystem.GetFreeImageConfig()[Free_Alubum_1];
TextureHelper.SetImgLoader(ui.item_0_re.com_pic.picture, free_ImageLibrary_re.Name, (s) =>
{
@@ -315,7 +330,13 @@ namespace RedHotRoast
ADImageLibrary ad_ImageLibrary = ConfigSystem.GetADImageConfig()[DataMgr.LevelUnlockAD.Value];
var adImageLibraryList = ConfigSystem.GetADImageConfig();
int adIndex = DataMgr.LevelUnlockAD.Value;
if (adIndex < 0 || adIndex >= adImageLibraryList.Count)
{
adIndex = adIndex < 0 ? 0 : adImageLibraryList.Count - 1;
}
ADImageLibrary ad_ImageLibrary = ConfigSystem.GetADImageConfig()[adIndex];
TextureHelper.SetImgLoader(ui.item_1.com_pic.picture, ad_ImageLibrary.Name, (s) =>
{
if (ad_ImageLibrary.State == 1) TextureHelper.SetImageBlur(ui.item_1.com_pic.picture);
@@ -336,12 +357,21 @@ namespace RedHotRoast
});
var specialImageLibraryList = ConfigSystem.GetSpecialImageConfig();
var specialIndex = DataMgr.LevelUnlockSpecial.Value;
if (specialIndex < 0 || specialIndex >= specialImageLibraryList.Count)
{
specialIndex = specialIndex < 0 ? 0 : specialImageLibraryList.Count - 1;
}
bool have_special = GameHelper.GetVipPrivilege(Subscription.SLVLevel.As<int>());
SpecialImageLibrary special_ImageLibrary = ConfigSystem.GetSpecialImageConfig()[DataMgr.LevelUnlockSpecial.Value];
SpecialImageLibrary special_ImageLibrary = ConfigSystem.GetSpecialImageConfig()[specialIndex];
TextureHelper.SetImgLoader(ui.item_2.com_pic.picture, special_ImageLibrary.Name, (s) =>
{
if (special_ImageLibrary.State == 1 && !have_special) TextureHelper.SetImageBlur(ui.item_2.com_pic.picture);
}, "LevelAlbums/", FolderNames.AlbumName);
Debug.Log($"DataMgr.LevelUnlockSpecial.Value======{DataMgr.LevelUnlockSpecial.Value} {have_special}");
if (have_special)
{
ui.item_2.btn_unlock.visible = false;
@@ -389,7 +419,13 @@ namespace RedHotRoast
}
bool have_vip = GameHelper.GetVipPrivilege(Subscription.VipLevel.As<int>());
VIPImageLibrary vip_ImageLibrary = ConfigSystem.GetVIPImageConfig()[DataMgr.LevelUnlockVIP.Value];
var vipImageLibraryList = ConfigSystem.GetVIPImageConfig();
var vipIndex = DataMgr.LevelUnlockVIP.Value;
if (vipIndex < 0 || vipIndex >= vipImageLibraryList.Count)
{
vipIndex = vipIndex < 0 ? 0 : vipImageLibraryList.Count - 1;
}
VIPImageLibrary vip_ImageLibrary = ConfigSystem.GetVIPImageConfig()[vipIndex];
TextureHelper.SetImgLoader(ui.item_3.com_pic.picture, vip_ImageLibrary.Name, (s) =>
{