1
This commit is contained in:
@@ -18,6 +18,9 @@ public class UIHome_BY_UISignViewPanel : SubUIBase
|
||||
//SLZPDieEvent这个脚本有之前写好的多层转盘的逻辑 签到这里只有单层 你可以直接看一下里面正确的
|
||||
public List<Text> text_CoinNums;
|
||||
public List<TextMeshProUGUI> text_CoinNums_TMP;
|
||||
public TextMeshProUGUI tmp_VipJiaCheng; // 显示VIP签到加成百分比
|
||||
|
||||
public TextMeshProUGUI tmp_EndCoin; // 显示最终奖励金币数
|
||||
public Button btn_ChouJiang;
|
||||
public GameObject zhuanPan;
|
||||
Dictionary<int, SignConfig> order_singConfig;
|
||||
@@ -47,6 +50,15 @@ public class UIHome_BY_UISignViewPanel : SubUIBase
|
||||
BuildOrderSignConfig();
|
||||
UpdateSlotTexts();
|
||||
UpdateBtnState();
|
||||
UpdateVipAddText();
|
||||
}
|
||||
|
||||
/// <summary>显示VIP签到加成百分比(signInAdd 0.15 → +15%)</summary>
|
||||
private void UpdateVipAddText()
|
||||
{
|
||||
if (tmp_VipJiaCheng == null) return;
|
||||
double add = GetSignInAdd();
|
||||
tmp_VipJiaCheng.text = $"+{add * 100:0}%";
|
||||
}
|
||||
|
||||
/// <summary>从GameManager的activityConfig读取signConfigs,按order建立字典</summary>
|
||||
@@ -146,6 +158,9 @@ public class UIHome_BY_UISignViewPanel : SubUIBase
|
||||
{
|
||||
UIManager.Instance.ShowBoardError($"签到成功,获得{FormatGold(reward)}金币");
|
||||
|
||||
if (tmp_EndCoin != null)
|
||||
tmp_EndCoin.text = FormatGold(reward);
|
||||
|
||||
APIRequestList.GetUser(user =>
|
||||
{
|
||||
GameManager.Instance.UpdataUserData(user);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user