|
|
@@ -58,7 +58,7 @@ public class PKComp : Singleton<PKComp>
|
|
|
public void onInviteFriendGamePK(MatchPlayerInfo matchPlayerInfo, int gameType, string roomKey) {
|
|
|
string pkTypeName = GetPKTypeName(gameType);
|
|
|
if (pkTypeName == null) return;
|
|
|
- string tip = $"好友邀请你参加{pkTypeName}PK";
|
|
|
+ string tip = TextAutoLanguage2.GetTextByKey("tip_pk_friend-invite-join") + pkTypeName;
|
|
|
System.Action cb = delegate() {
|
|
|
if (CanShowFriendInviteOrMatch()) {
|
|
|
PKMatchingView view = PKMatchingView.Create();
|
|
|
@@ -67,7 +67,7 @@ public class PKComp : Singleton<PKComp>
|
|
|
GlobalData.pkMatchType = PKMatchType.OnlinePK;
|
|
|
GlobalData.matchGameType = gameType;
|
|
|
} else if (PKMatchingView.ins) {
|
|
|
- PopupMgr.ins.ShowTip("当前正处于匹配状态,无法接受好友PK邀请!");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("当前正处于匹配状态,无法接受好友PK邀请!"));
|
|
|
}
|
|
|
};
|
|
|
System.Action cbCancel = delegate() {
|
|
|
@@ -80,7 +80,7 @@ public class PKComp : Singleton<PKComp>
|
|
|
public void onInviteOtherTryAgainGamePK(MatchPlayerInfo matchPlayerInfo, int gameType, string roomKey) {
|
|
|
string pkTypeName = GetPKTypeName(gameType);
|
|
|
if (pkTypeName == null) return;
|
|
|
- string tip = $"对方邀请你再来一次{pkTypeName}PK";
|
|
|
+ string tip = TextAutoLanguage2.GetTextByKey("tip_pk_invite-try-again") + pkTypeName;
|
|
|
System.Action cb = delegate() {
|
|
|
if (CanShowTryAgainInviteOrMatch(matchPlayerInfo)) {
|
|
|
PKMatchingView view = PKMatchingView.Create();
|
|
|
@@ -89,7 +89,7 @@ public class PKComp : Singleton<PKComp>
|
|
|
GlobalData.pkMatchType = PKMatchType.OnlinePK;
|
|
|
GlobalData.matchGameType = gameType;
|
|
|
} else {
|
|
|
- PopupMgr.ins.ShowTip("目前状态下,无法接受该邀请!");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("目前状态下,无法接受该邀请!"));
|
|
|
}
|
|
|
};
|
|
|
System.Action cbCancel = delegate() {
|
|
|
@@ -113,16 +113,16 @@ public class PKComp : Singleton<PKComp>
|
|
|
string pkTypeName = null;
|
|
|
switch (gameType) {
|
|
|
case 9:
|
|
|
- pkTypeName = "静止靶";
|
|
|
+ pkTypeName = TextAutoLanguage2.GetTextByKey("tip_pk_gametype_1");
|
|
|
break;
|
|
|
case 10:
|
|
|
- pkTypeName = "野兔闯关";
|
|
|
+ pkTypeName = TextAutoLanguage2.GetTextByKey("tip_pk_gametype_2");
|
|
|
break;
|
|
|
case 11:
|
|
|
- pkTypeName = "野鸡闯关";
|
|
|
+ pkTypeName = TextAutoLanguage2.GetTextByKey("tip_pk_gametype_3");
|
|
|
break;
|
|
|
case 12:
|
|
|
- pkTypeName = "野狼闯关";
|
|
|
+ pkTypeName = TextAutoLanguage2.GetTextByKey("tip_pk_gametype_4");
|
|
|
break;
|
|
|
}
|
|
|
return pkTypeName;
|