fix:更换sdk,修复bug
This commit is contained in:
@@ -49,6 +49,8 @@ namespace RedHotRoast
|
||||
public int VIPGuideRate;
|
||||
public int HomeInterstitialAd;
|
||||
public int FreeClaims;
|
||||
|
||||
public int non;
|
||||
public int TurnOffPackRate;
|
||||
public int TurnOffRewardsRate;
|
||||
public int TurnOffRewardsCD;
|
||||
|
||||
@@ -35,6 +35,14 @@ namespace RedHotRoast
|
||||
public int isMagic;
|
||||
[JsonProperty("darkWebTimesCT2")]
|
||||
public int darkWebTimesCT2;
|
||||
[JsonProperty("darkWVRefreshtime")]
|
||||
public int[] darkWVRefreshtime;
|
||||
[JsonProperty("darkWVDailyrefreshtimes")]
|
||||
public int darkWVDailyrefreshtimes;
|
||||
[JsonProperty("WVClickAddTime")]
|
||||
public int WVClickAddTime;
|
||||
[JsonProperty("WVOffset")]
|
||||
public int WVOffset;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,7 @@ namespace FGUI.LG_LuckyGift
|
||||
public GTextField text_goldnum2;
|
||||
public GTextField text_time;
|
||||
public GButton btn_buyremovead;
|
||||
public GButton btn_buyremovead1;
|
||||
public GTextField tips2;
|
||||
public GGroup ad_panel;
|
||||
public GTextField ads;
|
||||
@@ -60,14 +61,15 @@ namespace FGUI.LG_LuckyGift
|
||||
text_goldnum2 = (GTextField)GetChildAt(27);
|
||||
text_time = (GTextField)GetChildAt(28);
|
||||
btn_buyremovead = (GButton)GetChildAt(29);
|
||||
tips2 = (GTextField)GetChildAt(30);
|
||||
ad_panel = (GGroup)GetChildAt(33);
|
||||
ads = (GTextField)GetChildAt(34);
|
||||
btn_max_pack = (GButton)GetChildAt(35);
|
||||
btn_go_ad = (GButton)GetChildAt(36);
|
||||
btn_go_lucky = (GButton)GetChildAt(37);
|
||||
btn_max_remove = (GButton)GetChildAt(38);
|
||||
gold = (GButton)GetChildAt(39);
|
||||
btn_buyremovead1 = (GButton)GetChildAt(30);
|
||||
tips2 = (GTextField)GetChildAt(31);
|
||||
ad_panel = (GGroup)GetChildAt(34);
|
||||
ads = (GTextField)GetChildAt(35);
|
||||
btn_max_pack = (GButton)GetChildAt(36);
|
||||
btn_go_ad = (GButton)GetChildAt(37);
|
||||
btn_go_lucky = (GButton)GetChildAt(38);
|
||||
btn_max_remove = (GButton)GetChildAt(39);
|
||||
gold = (GButton)GetChildAt(40);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ namespace FGUI.ZM_Game_04
|
||||
public GButton btn_vip;
|
||||
public GButton btn_album;
|
||||
public GButton btn_chat;
|
||||
public GButton btn_wv;
|
||||
public GGroup group_;
|
||||
public GComponent slot;
|
||||
public GGraph out_parent;
|
||||
@@ -30,7 +31,6 @@ namespace FGUI.ZM_Game_04
|
||||
public btn_prop btn_remove;
|
||||
public btn_prop btn_refresh;
|
||||
public btn_look_ad btn_look_ad;
|
||||
public GButton btn_wv;
|
||||
public const string URL = "ui://g3iqdlgcopwgw";
|
||||
|
||||
public static com_game CreateInstance()
|
||||
@@ -56,16 +56,16 @@ namespace FGUI.ZM_Game_04
|
||||
btn_vip = (GButton)GetChildAt(10);
|
||||
btn_album = (GButton)GetChildAt(11);
|
||||
btn_chat = (GButton)GetChildAt(12);
|
||||
group_ = (GGroup)GetChildAt(14);
|
||||
slot = (GComponent)GetChildAt(15);
|
||||
out_parent = (GGraph)GetChildAt(16);
|
||||
btn_secret = (GButton)GetChildAt(17);
|
||||
btn_add = (btn_add)GetChildAt(18);
|
||||
btn_back = (btn_prop)GetChildAt(19);
|
||||
btn_remove = (btn_prop)GetChildAt(20);
|
||||
btn_refresh = (btn_prop)GetChildAt(21);
|
||||
btn_look_ad = (btn_look_ad)GetChildAt(22);
|
||||
btn_wv = (GButton)GetChildAt(23);
|
||||
btn_wv = (GButton)GetChildAt(13);
|
||||
group_ = (GGroup)GetChildAt(15);
|
||||
slot = (GComponent)GetChildAt(16);
|
||||
out_parent = (GGraph)GetChildAt(17);
|
||||
btn_secret = (GButton)GetChildAt(18);
|
||||
btn_add = (btn_add)GetChildAt(19);
|
||||
btn_back = (btn_prop)GetChildAt(20);
|
||||
btn_remove = (btn_prop)GetChildAt(21);
|
||||
btn_refresh = (btn_prop)GetChildAt(22);
|
||||
btn_look_ad = (btn_look_ad)GetChildAt(23);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,9 @@ namespace FGUI.ZM_store_17
|
||||
public partial class buygold_item : GComponent
|
||||
{
|
||||
public Controller index;
|
||||
public GTextField off_text;
|
||||
public GTextField content_text;
|
||||
public GGroup discount;
|
||||
public GTextField coin_text;
|
||||
public btn_buy btn_buy;
|
||||
public GTextField text_ads;
|
||||
@@ -23,9 +26,12 @@ namespace FGUI.ZM_store_17
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
index = GetControllerAt(0);
|
||||
coin_text = (GTextField)GetChildAt(1);
|
||||
btn_buy = (btn_buy)GetChildAt(3);
|
||||
text_ads = (GTextField)GetChildAt(4);
|
||||
off_text = (GTextField)GetChildAt(2);
|
||||
content_text = (GTextField)GetChildAt(3);
|
||||
discount = (GGroup)GetChildAt(4);
|
||||
coin_text = (GTextField)GetChildAt(5);
|
||||
btn_buy = (btn_buy)GetChildAt(7);
|
||||
text_ads = (GTextField)GetChildAt(8);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -933,7 +933,8 @@ namespace RedHotRoast
|
||||
public static void addInterAdnumber()
|
||||
{
|
||||
|
||||
return;
|
||||
if(!IsGiftSwitch()) return;
|
||||
|
||||
if (GetVipPrivilege(Subscription.RemoveInterstitialAd.As<int>())) return;
|
||||
look_interad_numbers++;
|
||||
Debug.Log($"[back hall]1 SaveData.GetSaveObject().is_get_removead=========={SaveData.GetSaveObject().is_get_removead} ");
|
||||
|
||||
@@ -796,53 +796,53 @@ public static IEnumerator LoadTexture(string fileName, GLoader loader, Action<NT
|
||||
return;
|
||||
}
|
||||
|
||||
// 调用统一的 SetImgLoader,不需要再自己写下载逻辑
|
||||
// SetImgLoader(null, fileName, nTex =>
|
||||
// {
|
||||
// if (nTex != null && nTex.nativeTexture != null)
|
||||
// {
|
||||
// Debug.Log("背景图片加载成功!");
|
||||
//
|
||||
// var tex2D = nTex.nativeTexture as Texture2D;
|
||||
// if (tex2D == null)
|
||||
// {
|
||||
// Debug.LogError("NTexture 转换失败!");
|
||||
// return;
|
||||
// }
|
||||
// tex2D.name = fileName;
|
||||
// // 创建 Sprite
|
||||
// var sprite = Sprite.Create(
|
||||
// tex2D,
|
||||
// new Rect(0, 0, tex2D.width, tex2D.height),
|
||||
// new Vector2(0.5f, 0.5f)
|
||||
// );
|
||||
// _spriteRenderer.sprite = sprite;
|
||||
//
|
||||
// if (_currentNTexture != null)
|
||||
// {
|
||||
// _currentNTexture.Dispose();
|
||||
// _currentNTexture = null;
|
||||
// }
|
||||
// if (_currentBackgroundSprite != null)
|
||||
// {
|
||||
// Object.Destroy(_currentBackgroundSprite);
|
||||
// _currentBackgroundSprite = null;
|
||||
// }
|
||||
//
|
||||
// _currentNTexture = nTex;
|
||||
// _currentBackgroundSprite = sprite;
|
||||
//
|
||||
// var currentWidth = _spriteRenderer.sprite.bounds.size.x;
|
||||
// var scaleFactor = 64f / currentWidth;
|
||||
//
|
||||
// // 等比缩放
|
||||
// _spriteRenderer.transform.localScale = new Vector3(scaleFactor, scaleFactor, 1);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Debug.LogError("背景图片加载失败!");
|
||||
// }
|
||||
// }, "LevelAlbums/", FolderNames.AlbumName, true, false, true); // ✅ 背景一般是立刻需要的,走优先下载
|
||||
//调用统一的 SetImgLoader,不需要再自己写下载逻辑
|
||||
SetImgLoader(null, fileName, nTex =>
|
||||
{
|
||||
if (nTex != null && nTex.nativeTexture != null)
|
||||
{
|
||||
Debug.Log("背景图片加载成功!");
|
||||
|
||||
var tex2D = nTex.nativeTexture as Texture2D;
|
||||
if (tex2D == null)
|
||||
{
|
||||
Debug.LogError("NTexture 转换失败!");
|
||||
return;
|
||||
}
|
||||
tex2D.name = fileName;
|
||||
// 创建 Sprite
|
||||
var sprite = Sprite.Create(
|
||||
tex2D,
|
||||
new Rect(0, 0, tex2D.width, tex2D.height),
|
||||
new Vector2(0.5f, 0.5f)
|
||||
);
|
||||
_spriteRenderer.sprite = sprite;
|
||||
|
||||
if (_currentNTexture != null)
|
||||
{
|
||||
_currentNTexture.Dispose();
|
||||
_currentNTexture = null;
|
||||
}
|
||||
if (_currentBackgroundSprite != null)
|
||||
{
|
||||
Object.Destroy(_currentBackgroundSprite);
|
||||
_currentBackgroundSprite = null;
|
||||
}
|
||||
|
||||
_currentNTexture = nTex;
|
||||
_currentBackgroundSprite = sprite;
|
||||
|
||||
var currentWidth = _spriteRenderer.sprite.bounds.size.x;
|
||||
var scaleFactor = 64f / currentWidth;
|
||||
|
||||
// 等比缩放
|
||||
_spriteRenderer.transform.localScale = new Vector3(scaleFactor, scaleFactor, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("背景图片加载失败!");
|
||||
}
|
||||
}, "LevelAlbums/", FolderNames.AlbumName, true, false, true); // ✅ 背景一般是立刻需要的,走优先下载
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user