improve a bit length of the label to prevent lint warning
This commit is contained in:
parent
74adae2a8c
commit
a56c3e89ec
@ -159,18 +159,7 @@ foreach (Event in UIManager.PendingEvents) {
|
|||||||
}
|
}
|
||||||
case "DebugMode.VarInsp.ForVars.Dump.Player": {
|
case "DebugMode.VarInsp.ForVars.Dump.Player": {
|
||||||
declare CSmPlayer Player;
|
declare CSmPlayer Player;
|
||||||
if (TL::Length(Event.CustomEventData[0]) == 36) {
|
+++DebugMode_FindPlayer+++
|
||||||
Player <=> ModeUtils::GetPlayerFromAccountId(Event.CustomEventData[0]);
|
|
||||||
} else if (TL::Length(Event.CustomEventData[0]) == 22) {
|
|
||||||
Player <=> GetPlayer(Event.CustomEventData[0]);
|
|
||||||
} else {
|
|
||||||
foreach (TmpPlayer in AllPlayers) {
|
|
||||||
if (TL::ToLowerCase(Event.CustomEventData[0]) == TL::ToLowerCase(TmpPlayer.User.Name)) {
|
|
||||||
Player <=> TmpPlayer;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Player != Null) {
|
if (Player != Null) {
|
||||||
if (Event.CustomEventData[1] == "player") {
|
if (Event.CustomEventData[1] == "player") {
|
||||||
@ -191,18 +180,7 @@ foreach (Event in UIManager.PendingEvents) {
|
|||||||
}
|
}
|
||||||
case "DebugMode.VarInsp.Struct.Dump.Player": {
|
case "DebugMode.VarInsp.Struct.Dump.Player": {
|
||||||
declare CSmPlayer Player;
|
declare CSmPlayer Player;
|
||||||
if (TL::Length(Event.CustomEventData[0]) == 36) {
|
|
||||||
Player <=> ModeUtils::GetPlayerFromAccountId(Event.CustomEventData[0]);
|
|
||||||
} else if (TL::Length(Event.CustomEventData[0]) == 22) {
|
|
||||||
Player <=> GetPlayer(Event.CustomEventData[0]);
|
|
||||||
} else {
|
|
||||||
foreach (TmpPlayer in AllPlayers) {
|
|
||||||
if (TL::ToLowerCase(Event.CustomEventData[0]) == TL::ToLowerCase(TmpPlayer.User.Name)) {
|
|
||||||
Player <=> TmpPlayer;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Player != Null) {
|
if (Player != Null) {
|
||||||
if (Event.CustomEventData[1] == "player") {
|
if (Event.CustomEventData[1] == "player") {
|
||||||
@ -230,6 +208,22 @@ foreach (Event in UIManager.PendingEvents) {
|
|||||||
+++DebugMode_LogEvents+++
|
+++DebugMode_LogEvents+++
|
||||||
***
|
***
|
||||||
|
|
||||||
|
***DebugMode_FindPlayer***
|
||||||
|
***
|
||||||
|
if (TL::Length(Event.CustomEventData[0]) == 36) {
|
||||||
|
Player <=> ModeUtils::GetPlayerFromAccountId(Event.CustomEventData[0]);
|
||||||
|
} else if (TL::Length(Event.CustomEventData[0]) == 22) {
|
||||||
|
Player <=> GetPlayer(Event.CustomEventData[0]);
|
||||||
|
} else {
|
||||||
|
foreach (TmpPlayer in AllPlayers) {
|
||||||
|
if (TL::ToLowerCase(Event.CustomEventData[0]) == TL::ToLowerCase(TmpPlayer.User.Name)) {
|
||||||
|
Player <=> TmpPlayer;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
***
|
||||||
|
|
||||||
***DebugMode_LogEvents***
|
***DebugMode_LogEvents***
|
||||||
***
|
***
|
||||||
foreach (Event in PendingEvents) {
|
foreach (Event in PendingEvents) {
|
||||||
|
Loading…
Reference in New Issue
Block a user