protected void CombatMsg(Client.E_MessageType type, short exp, short cash) { if (exp == 0 && cash == 0) { GuiHUD.Instance.ShowCombatText(type, ""); } else if (exp == 0) { GuiHUD.Instance.ShowCombatText(type, cash.ToString() + TextDatabase.instance[0500921]); } else if (cash == 0) { GuiHUD.Instance.ShowCombatText(type, exp.ToString() + TextDatabase.instance[0500920]); } else { GuiHUD.Instance.ShowCombatText(type, exp.ToString() + TextDatabase.instance[0500920] + "/" + cash.ToString() + TextDatabase.instance[0500921]); } }
// ----- public void Add(Client.E_MessageType message, string text) { switch (message) { case Client.E_MessageType.Kill: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500200], Text = text, CaptionScale = 1.2f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.KillAssist: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500201], Text = text, CaptionScale = 0.9f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.HeadShot: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0503006], Text = text, CaptionScale = 0.9f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.Turret: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500207], Text = text, CaptionScale = 0.55f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.Spider: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500208], Text = text, CaptionScale = 0.7f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.ZoneNeutral: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500203], Text = text, CaptionScale = 0.6f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.ZoneControl: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500204], Text = text, CaptionScale = 0.8f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.ZoneDefended: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500202], Text = text, CaptionScale = 0.7f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.ZoneAttacked: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500209], Text = text, CaptionScale = 0.65f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.Rank: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500901], Text = text, CaptionScale = 1.2f, TextScale = 0.7f, ShowTime = 5.0f }); break; case Client.E_MessageType.Unlock: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500902], Text = text, CaptionScale = 0.9f, TextScale = 0.7f, ShowTime = 4.0f }); break; case Client.E_MessageType.Win: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500903], Text = text, CaptionScale = 1.2f, TextScale = 0.7f, ShowTime = 5.0f }); break; case Client.E_MessageType.Lost: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500904], Text = text, CaptionScale = 1.2f, TextScale = 0.7f, ShowTime = 5.0f }); break; case Client.E_MessageType.Ammo: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500205], Text = text, CaptionScale = 0.7f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.Heal: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500206], Text = text, CaptionScale = 0.9f, TextScale = 0.7f, ShowTime = 3.0f }); break; case Client.E_MessageType.ExclusiveKill: MessageQueue.Enqueue(new Message() { Type = message, Caption = TextDatabase.instance[0500210], Text = text, CaptionScale = 0.8f, TextScale = 1.0f, ShowTime = 4.0f }); break; default: Debug.Log("Unknow type for client Combat Text " + message); break; } }
// ------- public void AddNewMessage(Client.E_MessageType type, string text) { CombatInfo.Add(type, text); }