private void 发动能力ToolStripMenuItem_Click(object sender, EventArgs e) { Card thisCard = ((CardPic)CardPicClicked).thisCard; if (PointedOutCardPic == null) { if (AppConfig.GetValue("SendSkillDetail") == "True") { if (!CardData[thisCard.SerialNo][16].Contains("$$")) { msgProcessor.Send("Skill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.UnitTitle + " " + thisCard.UnitName + "]发动能力:" + CardData[thisCard.SerialNo][16]); } else { using (UseSkill useskill = new UseSkill(CardData[thisCard.SerialNo])) { if (useskill.ShowDialog() == DialogResult.OK) { msgProcessor.Send("Skill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.UnitTitle + " " + thisCard.UnitName + "]发动能力:" + useskill.SelectedSkillContent); return; } } } } else { msgProcessor.Send("Skill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.UnitTitle + " " + thisCard.UnitName + "]发动能力。"); } } else { Card PointedOutCard = ((CardPic)PointedOutCardPic).thisCard; if (AppConfig.GetValue("SendSkillDetail") == "True") { if (!CardData[thisCard.SerialNo][16].Contains("$$")) { msgProcessor.Send("Skill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.UnitTitle + " " + thisCard.UnitName + "]以[" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.UnitTitle + " " + PointedOutCard.UnitName + "]为对象发动能力:" + CardData[thisCard.SerialNo][16]); } else { using (UseSkill useskill = new UseSkill(CardData[thisCard.SerialNo])) { if (useskill.ShowDialog() == DialogResult.OK) { msgProcessor.Send("Skill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.UnitTitle + " " + thisCard.UnitName + "]以[" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.UnitTitle + " " + PointedOutCard.UnitName + "]为对象发动能力:" + useskill.SelectedSkillContent); return; } } } } else { msgProcessor.Send("Skill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.UnitTitle + " " + thisCard.UnitName + "]以[" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.UnitTitle + " " + PointedOutCard.UnitName + "]为对象发动能力。"); } } Renew(); }
private void 发动支援能力ToolStripMenuItem_Click(object sender, EventArgs e) { Card thisCard = ((CardPic)CardPicClicked).thisCard; if (PointedOutCardPic == null) { if (AppConfig.GetValue("SendSkillDetail") == "True") { if (!CardData[thisCard.SerialNo][17].Contains("$$")) { if (Language == Language.Chinese) { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]发动支援能力:" + CardData[thisCard.SerialNo][17]); } else { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]uses support skill: " + CardData[thisCard.SerialNo][17]); } } else { using (UseSkill useskill = new UseSkill(CardData[thisCard.SerialNo], this, true)) { if (useskill.ShowDialog() == DialogResult.OK) { if (Language == Language.Chinese) { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]发动支援能力:" + useskill.SelectedSkillContent); } else { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]uses support skill: " + useskill.SelectedSkillContent); } return; } } } } else { if (Language == Language.Chinese) { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]发动支援能力。"); } else { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "] uses support skill."); } } } else { Card PointedOutCard = ((CardPic)PointedOutCardPic).thisCard; if (AppConfig.GetValue("SendSkillDetail") == "True") { if (!CardData[thisCard.SerialNo][17].Contains("$$")) { if (Language == Language.Chinese) { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]以[" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.CardName + "]为对象发动支援能力:" + CardData[thisCard.SerialNo][17]); } else { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "] towards [" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.CardName + "] uses support skill: " + CardData[thisCard.SerialNo][17]); } } else { using (UseSkill useskill = new UseSkill(CardData[thisCard.SerialNo], this, true)) { if (useskill.ShowDialog() == DialogResult.OK) { if (Language == Language.Chinese) { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]以[" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.CardName + "]为对象发动支援能力:" + useskill.SelectedSkillContent); } else { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "] towards [" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.CardName + "] uses support skill: " + useskill.SelectedSkillContent); } return; } } } } else { if (Language == Language.Chinese) { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "]以[" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.CardName + "]为对象发动支援能力。"); } else { msgProcessor.Send("SupportSkill", "#[" + GetRegionNameInString(thisCard.BelongedRegion()) + "][" + thisCard.CardName + "] towards [" + GetRegionNameInString(PointedOutCard.BelongedRegion()) + "][" + PointedOutCard.CardName + "] uses support skill."); } } } Renew(); }