通行证多语言配置 更新配置表

main
zhangaotian 2025-04-21 16:18:18 +08:00
parent d938a35b70
commit b9dea4176e
14 changed files with 150 additions and 36 deletions

View File

@ -94,6 +94,14 @@ public class BattlePassManager : Singlenton<BattlePassManager>
specialRewardLevels = curBattlePassData.SpecialRewardLevel;
specialRewardLevels.Sort();
}
/// <summary>
/// 获取瞩目商品可购买等级
/// </summary>
public int GetSpecialItemLevel()
{
return curBattlePassData.SpecialItemLevel;
}
/// <summary>
/// 获取当前经验点数

View File

@ -197,6 +197,7 @@ public class UI_BattlePassController : UIWindow
public TMP_Text Text_Reward;
public TMP_Text Text_TaskUnselected;
public TMP_Text Text_RewardUnselected;
public TMP_Text Text_Tip;
public Slider Slider_Exp;
@ -229,7 +230,7 @@ public class UI_BattlePassController : UIWindow
private RawImage rawImageGaussianBlurMask;
#endregion
/// <summary>
/// 奖励预览是否停留在当前位置
/// </summary>
@ -361,6 +362,10 @@ public class UI_BattlePassController : UIWindow
var path = BattlePassManager.Instance.CurBattlePassData.ProductPath;
Image_BG.sprite = await AssetManager.Instance.LoadAssetAsync<Sprite>(path);
// 瞩目商品提示
var tipContent = CommonUtils.GetLocalizeText("battlepass_specialItem_level");
Text_Tip.text = string.Format(tipContent, BattlePassManager.Instance.GetSpecialItemLevel());
// 等级
Text_Level.text = BattlePassManager.Instance.GetBattlePassLevel().ToString();
@ -506,7 +511,6 @@ public class UI_BattlePassController : UIWindow
private void ClickTaskNode(int itemID)
{
}
private void RefreshTaskTabItem(int index, RectTransform item)

View File

@ -295,6 +295,8 @@ public class UI_ExChangeShopPurchaseController : UIWindow
originalText = string.Format(scrollTextKey, priceName, priceCount);
if (textComponent == null) return;
textComponent.enableWordWrapping = false;
textComponent.overflowMode = TextOverflowModes.Masking;

View File

@ -13,6 +13,7 @@ public class UI_BattlePassBinder
window.Button_Back = window.GetComponent<Button>("BattlePass/Main/Button_Back/Button_back");
window.Button_Home = window.GetComponent<Button>("BattlePass/Main/Button_Back/Button_Home");
window.Button_Search = window.GetComponent<Button>("BattlePass/Main/LeftNode/Button_Search");
window.Text_Tip = window.GetComponent<TMP_Text>("BattlePass/Main/LeftNode/Text_Tip");
window.Toggle_ReawrdList = window.GetComponent<Button>("BattlePass/Main/MainNode/ToggleNode/Toggle_ReawrdList");
window.Toggle_Task = window.GetComponent<Button>("BattlePass/Main/MainNode/ToggleNode/Toggle_Task");
window.Text_SeasonEnd = window.GetComponent<TMP_Text>("BattlePass/Main/MainNode/Image_TimeBG/Text_SeasonEnd");

View File

@ -53,6 +53,10 @@ namespace cfg.ActorCfg
/// 角色皮肤id
/// </summary>
CharacterSkinID = 2,
/// <summary>
/// 好感度经验值
/// </summary>
LikelyExp = 2,
}
}

View File

@ -30,9 +30,9 @@ namespace cfg.ActorCfg
/// </summary>
SelectableChest = 3,
/// <summary>
/// 月卡
/// 角色好感度经验
/// </summary>
MonthlyPass = 4,
LikelyExp = 4,
}
}

View File

@ -20,6 +20,7 @@ public sealed partial class DataBattlePass : Luban.BeanBase
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["PointItem"].IsNumber) { throw new SerializationException(); } PointItem = _buf["PointItem"]; }
{ if(!_buf["MaxPurchaseLevel"].IsNumber) { throw new SerializationException(); } MaxPurchaseLevel = _buf["MaxPurchaseLevel"]; }
{ if(!_buf["SpecialItemLevel"].IsNumber) { throw new SerializationException(); } SpecialItemLevel = _buf["SpecialItemLevel"]; }
{ var __json0 = _buf["SpecialRewardLevel"]; if(!__json0.IsArray) { throw new SerializationException(); } SpecialRewardLevel = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpecialRewardLevel.Add(__v0); } }
{ var __json0 = _buf["AdvancedPassPrice"]; if(!__json0.IsArray) { throw new SerializationException(); } AdvancedPassPrice = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AdvancedPassPrice.Add(__v0); } }
{ var __json0 = _buf["AdvancedPassExtraRewards"]; if(!__json0.IsArray) { throw new SerializationException(); } AdvancedPassExtraRewards = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AdvancedPassExtraRewards.Add(__v0); } }
@ -30,11 +31,12 @@ public sealed partial class DataBattlePass : Luban.BeanBase
{ if(!_buf["BuyProductPath"].IsString) { throw new SerializationException(); } BuyProductPath = _buf["BuyProductPath"]; }
}
public DataBattlePass(int ID, int PointItem, int MaxPurchaseLevel, System.Collections.Generic.List<int> SpecialRewardLevel, System.Collections.Generic.List<int> AdvancedPassPrice, System.Collections.Generic.List<int> AdvancedPassExtraRewards, System.Collections.Generic.List<int> DailyMissionGroup, System.Collections.Generic.List<int> WeeklyMissionGroup, System.Collections.Generic.List<int> SeasonMissionGroup, string ProductPath, string BuyProductPath )
public DataBattlePass(int ID, int PointItem, int MaxPurchaseLevel, int SpecialItemLevel, System.Collections.Generic.List<int> SpecialRewardLevel, System.Collections.Generic.List<int> AdvancedPassPrice, System.Collections.Generic.List<int> AdvancedPassExtraRewards, System.Collections.Generic.List<int> DailyMissionGroup, System.Collections.Generic.List<int> WeeklyMissionGroup, System.Collections.Generic.List<int> SeasonMissionGroup, string ProductPath, string BuyProductPath )
{
this.ID = ID;
this.PointItem = PointItem;
this.MaxPurchaseLevel = MaxPurchaseLevel;
this.SpecialItemLevel = SpecialItemLevel;
this.SpecialRewardLevel = SpecialRewardLevel;
this.AdvancedPassPrice = AdvancedPassPrice;
this.AdvancedPassExtraRewards = AdvancedPassExtraRewards;
@ -64,6 +66,10 @@ public sealed partial class DataBattlePass : Luban.BeanBase
/// </summary>
public int MaxPurchaseLevel { get; private set; }
/// <summary>
/// 瞩目商品解锁等级
/// </summary>
public int SpecialItemLevel { get; private set; }
/// <summary>
/// 注目等级奖励组
/// </summary>
public System.Collections.Generic.List<int> SpecialRewardLevel { get; private set; }
@ -109,6 +115,7 @@ public sealed partial class DataBattlePass : Luban.BeanBase
+ "ID:" + ID + ","
+ "PointItem:" + PointItem + ","
+ "MaxPurchaseLevel:" + MaxPurchaseLevel + ","
+ "SpecialItemLevel:" + SpecialItemLevel + ","
+ "SpecialRewardLevel:" + Luban.StringUtil.CollectionToString(SpecialRewardLevel) + ","
+ "AdvancedPassPrice:" + Luban.StringUtil.CollectionToString(AdvancedPassPrice) + ","
+ "AdvancedPassExtraRewards:" + Luban.StringUtil.CollectionToString(AdvancedPassExtraRewards) + ","

View File

@ -153,6 +153,10 @@ namespace cfg.LegionBattleCfg
/// 系统默认,玩家后续可通过设置更改。
/// </summary>
LowHPWarningPercent = 34,
/// <summary>
/// 格子减速比例
/// </summary>
HexSpeedDown = 35,
}
}

View File

@ -11553,8 +11553,8 @@
{
"Key": "ChapterName_202",
"Name": "ChapterName_202",
"value": "渴望变革",
"Desc": "渴望变革",
"value": "别无选择",
"Desc": "别无选择",
"Notes": "",
"Param0": "",
"Param1": "",
@ -11592,8 +11592,8 @@
{
"Key": "ChapterName_203",
"Name": "ChapterName_203",
"value": "一个国家的诞生",
"Desc": "一个国家的诞生",
"value": "当我离开的时候",
"Desc": "当我离开的时候",
"Notes": "",
"Param0": "",
"Param1": "",
@ -32977,7 +32977,7 @@
{
"Key": "uilogin_PhoneNumber",
"Name": "uilogin_PhoneNumber",
"value": "验证码",
"value": "手机号码",
"Desc": "",
"Notes": "",
"Param0": "",
@ -32990,7 +32990,7 @@
{
"Key": "uilogin_VerifyCode",
"Name": "uilogin_VerifyCode",
"value": "手机号码",
"value": "验证码",
"Desc": "",
"Notes": "",
"Param0": "",
@ -36029,6 +36029,19 @@
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "battlepass_specialItem_level",
"Name": "battlepass_specialItem_level",
"value": "开通<color=#f4ec13>高级账号</color>后于通行证<color=#f4ec13>{0}级</color>获得",
"Desc": "",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
"InnerCalculate": false,
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "team_commanderskill",
"Name": "team_commanderskill",
@ -132301,7 +132314,7 @@
"Name": "Guide_100",
"value": "点开战斗开始进行战斗",
"Desc": "",
"Notes": "",
"Notes": "准备开始战斗",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132314,7 +132327,7 @@
"Name": "Guide_101",
"value": "点击选中卡露拉以下达指令",
"Desc": "点击选中卡露拉以下达指令",
"Notes": "选择卡露拉",
"Notes": "选择编队",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132327,7 +132340,7 @@
"Name": "Guide_102",
"value": "命令卡露拉移动到指示位置",
"Desc": "命令卡露拉移动到指示位置",
"Notes": "",
"Notes": "先给小队配置一名指挥角色吧",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132340,7 +132353,7 @@
"Name": "Guide_103",
"value": "这里显示的是单位的生命值当生命值归0时单位将退出战场",
"Desc": "这里显示的是单位的生命值当生命值归0时单位将退出战场",
"Notes": "",
"Notes": "选择指挥【卡露拉】",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132366,7 +132379,7 @@
"Name": "Guide_105",
"value": "这里显示的是单位的士气值,士气值会影响单位的状态",
"Desc": "这里显示的是单位的士气值,士气值会影响单位的状态",
"Notes": "",
"Notes": "点击返回",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132379,7 +132392,7 @@
"Name": "Guide_106",
"value": "点击选中卡露拉以下达指令",
"Desc": "点击选中卡露拉以下达指令",
"Notes": "选择卡露拉",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132413,6 +132426,19 @@
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "Guide_110",
"Name": "Guide_110",
"value": "双击战斗员头像开始释放技能",
"Desc": "双击战斗员头像开始释放技能",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
"InnerCalculate": false,
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "Guide_111",
"Name": "Guide_111",
@ -132600,7 +132626,7 @@
"Name": "Guide_300",
"value": "点击开始战斗",
"Desc": "点击开始战斗",
"Notes": "开始战斗",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
@ -134846,7 +134872,7 @@
},
{
"Key": "LoginError_10620",
"Name": "LoginError_10621",
"Name": "LoginError_10620",
"value": "输入的短信验证码不正确",
"Desc": "输入的短信验证码不正确",
"Notes": "",
@ -135052,6 +135078,19 @@
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "LoginError_10627",
"Name": "LoginError_10627",
"value": "登录暂未开放!",
"Desc": "登录暂未开放!",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
"InnerCalculate": false,
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "LoginError_other",
"Name": "LoginError_other",

View File

@ -16280,8 +16280,8 @@
"Rarity": 0,
"BatchUsing": false,
"MaxCount": 0,
"IconPath": "",
"CoinIconPath": "",
"IconPath": "Assets/Art_Out/UI/Texture/Icon/MaterialFragment/Icon_1120001.png",
"CoinIconPath": "Assets/Art_Out/UI/Texture/Icon/MaterialFragment/Icon_1120001.png",
"Selections": [],
"MaxUseCount": 0,
"ExpireTransfor": 0,

View File

@ -3,6 +3,7 @@
"ID": 101,
"PointItem": 1220001,
"MaxPurchaseLevel": 50,
"SpecialItemLevel": 99,
"SpecialRewardLevel": [
10,
20,

View File

@ -106,7 +106,7 @@
"FlyEffectId": 15
},
{
"ID": 3000010501,
"ID": 3000080201,
"NameRead": "云雀炮塔",
"ModelPath": "P_R00001_01",
"CanAttack": true,

View File

@ -24,6 +24,11 @@
"ParamInt1": 120,
"ParamFloat1": 0
},
{
"ID": 35,
"ParamInt1": 0,
"ParamFloat1": 0.8
},
{
"ID": 5,
"ParamInt1": 5,

View File

@ -11553,8 +11553,8 @@
{
"Key": "ChapterName_202",
"Name": "ChapterName_202",
"value": "渴望变革",
"Desc": "渴望变革",
"value": "别无选择",
"Desc": "别无选择",
"Notes": "",
"Param0": "",
"Param1": "",
@ -11592,8 +11592,8 @@
{
"Key": "ChapterName_203",
"Name": "ChapterName_203",
"value": "一个国家的诞生",
"Desc": "一个国家的诞生",
"value": "当我离开的时候",
"Desc": "当我离开的时候",
"Notes": "",
"Param0": "",
"Param1": "",
@ -32977,7 +32977,7 @@
{
"Key": "uilogin_PhoneNumber",
"Name": "uilogin_PhoneNumber",
"value": "验证码",
"value": "手机号码",
"Desc": "",
"Notes": "",
"Param0": "",
@ -32990,7 +32990,7 @@
{
"Key": "uilogin_VerifyCode",
"Name": "uilogin_VerifyCode",
"value": "手机号码",
"value": "验证码",
"Desc": "",
"Notes": "",
"Param0": "",
@ -36029,6 +36029,19 @@
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "battlepass_specialItem_level",
"Name": "battlepass_specialItem_level",
"value": "开通<color=#f4ec13>高级账号</color>后于通行证<color=#f4ec13>{0}级</color>获得",
"Desc": "",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
"InnerCalculate": false,
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "team_commanderskill",
"Name": "team_commanderskill",
@ -132301,7 +132314,7 @@
"Name": "Guide_100",
"value": "点开战斗开始进行战斗",
"Desc": "",
"Notes": "",
"Notes": "准备开始战斗",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132314,7 +132327,7 @@
"Name": "Guide_101",
"value": "点击选中卡露拉以下达指令",
"Desc": "点击选中卡露拉以下达指令",
"Notes": "选择卡露拉",
"Notes": "选择编队",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132327,7 +132340,7 @@
"Name": "Guide_102",
"value": "命令卡露拉移动到指示位置",
"Desc": "命令卡露拉移动到指示位置",
"Notes": "",
"Notes": "先给小队配置一名指挥角色吧",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132340,7 +132353,7 @@
"Name": "Guide_103",
"value": "这里显示的是单位的生命值当生命值归0时单位将退出战场",
"Desc": "这里显示的是单位的生命值当生命值归0时单位将退出战场",
"Notes": "",
"Notes": "选择指挥【卡露拉】",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132366,7 +132379,7 @@
"Name": "Guide_105",
"value": "这里显示的是单位的士气值,士气值会影响单位的状态",
"Desc": "这里显示的是单位的士气值,士气值会影响单位的状态",
"Notes": "",
"Notes": "点击返回",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132379,7 +132392,7 @@
"Name": "Guide_106",
"value": "点击选中卡露拉以下达指令",
"Desc": "点击选中卡露拉以下达指令",
"Notes": "选择卡露拉",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
@ -132413,6 +132426,19 @@
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "Guide_110",
"Name": "Guide_110",
"value": "双击战斗员头像开始释放技能",
"Desc": "双击战斗员头像开始释放技能",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
"InnerCalculate": false,
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "Guide_111",
"Name": "Guide_111",
@ -132600,7 +132626,7 @@
"Name": "Guide_300",
"value": "点击开始战斗",
"Desc": "点击开始战斗",
"Notes": "开始战斗",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
@ -134846,7 +134872,7 @@
},
{
"Key": "LoginError_10620",
"Name": "LoginError_10621",
"Name": "LoginError_10620",
"value": "输入的短信验证码不正确",
"Desc": "输入的短信验证码不正确",
"Notes": "",
@ -135052,6 +135078,19 @@
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "LoginError_10627",
"Name": "LoginError_10627",
"value": "登录暂未开放!",
"Desc": "登录暂未开放!",
"Notes": "",
"Param0": "",
"Param1": "",
"Param2": "",
"InnerCalculate": false,
"OutCalculate": [],
"CalculateType": 0
},
{
"Key": "LoginError_other",
"Name": "LoginError_other",