public ApplyMessage(S_OTHER_USER_APPLY_PARTY x) { Channel = ChatChannel.Apply; Author = x.Name; PlayerId = x.PlayerId; PlayerLevel = x.Level; UserClass = x.Class; }
internal void S_OTHER_USER_APPLY_PARTY(S_OTHER_USER_APPLY_PARTY message) { if (BasicTeraData.Instance.WindowData.ShowAfkEventsIngame || !TeraWindow.IsTeraActive()) { PacketProcessor.Instance.FlashMessage.Add(DefaultNotifyAction(message.PlayerName + " " + LP.ApplyToYourParty, LP.Class + ": " + LP.ResourceManager.GetString(message.PlayerClass.ToString(), LP.Culture) + Environment.NewLine + LP.Lvl + ": " + message.Lvl + Environment.NewLine, EventType.OtherUserApply)); } if (BasicTeraData.Instance.WindowData.CopyInspect) { var thread = new Thread(() => CopyPaste.CopyInspect(message.PlayerName)); thread.SetApartmentState(ApartmentState.STA); thread.Start(); } }
internal static void HandleUserApplyToParty(S_OTHER_USER_APPLY_PARTY x) { ChatWindowManager.Instance.AddChatMessage(new ApplyMessage(x)); //TODO: got NullRefEx here if (WindowManager.LfgListWindow.VM.MyLfg == null) return; var dest = WindowManager.LfgListWindow.VM.MyLfg.Applicants; if (dest.Any(u => u.PlayerId == x.PlayerId)) return; dest.Add(new User(WindowManager.LfgListWindow.Dispatcher) { PlayerId = x.PlayerId, UserClass = x.Class, Level = Convert.ToUInt32(x.Level), Name = x.Name, Online = true }); }
internal static void HandleUserApplyToParty(S_OTHER_USER_APPLY_PARTY x) { ChatWindowViewModel.Instance.AddChatMessage(new ApplyMessage(x)); }
private void OnOtherUserApplyParty(S_OTHER_USER_APPLY_PARTY m) { AddChatMessage(new ApplyMessage(m.PlayerId, m.Class, m.Level, m.Name)); }