private Image GetTerrainImage(int monType, double[] attrAtk, double[] attrDef) {//todo ControlPlus.TipImage tipData = new ControlPlus.TipImage(); tipData.AddTextNewLine("属性:" + HSTypes.I2Attr(monType), "White", 20); for (int i = 0; i <= 6; i++) { tipData.AddTextNewLine("Vs", "Yellow", 16); tipData.AddImageXY(HSIcons.GetIconsByEName("atr" + i), 0, 0, 32, 32, 23, 20 + i * 16 + 1, 14, 14); // tipData.AddText(string.Format(" AT={0}%",100+attrAtk[i]*100), attrAtk[i]==0?"White": attrAtk[i]>0?"Lime": "Red"); tipData.AddTextOff(string.Format("DF={0}%", 100 + attrDef[i] * 100), attrDef[i] == 0 ? "White" : attrDef[i] > 0 ? "Lime" : "Red", 50); } return(tipData.Image); }
public Image GetPreview() { ControlPlus.TipImage tipData = new ControlPlus.TipImage(160); tipData.AddTextNewLine(string.Format("{0} Lv{1}", Name, Level.ToString()), Camp == CampConfig.Indexer.Reborn ? "Lime" : "Red", 20); tipData.AddTextNewLine("", "White", 20); tipData.AddImageXY(HSIcons.GetIconsByEName("hatt1"), 0, 0, 32, 32, 5, 20, 20, 20); tipData.AddTextOff(Atk.ToString(), "White", 30); tipData.AddImageXY(HSIcons.GetIconsByEName("hatt2"), 0, 0, 32, 32, 5 + 80, 20, 20, 20); tipData.AddTextOff(Def.ToString(), "White", 30 + 80); tipData.AddTextNewLine("", "White", 20); tipData.AddImageXY(HSIcons.GetIconsByEName("hatt5"), 0, 0, 32, 32, 5, 40, 20, 20); tipData.AddTextOff(Mov.ToString(), "White", 30); tipData.AddImageXY(HSIcons.GetIconsByEName("hatt8"), 0, 0, 32, 32, 5 + 80, 40, 20, 20); tipData.AddTextOff(Range.ToString(), "White", 30 + 80); tipData.AddTextNewLine("", "White", 20); tipData.AddImageXY(HSIcons.GetIconsByEName("hatt7"), 0, 0, 32, 32, 5, 60, 20, 20); tipData.AddTextOff(string.Format("{0}/{1}", LeftHp, baseAttr.Hp), "White", 30); return(tipData.Image); }
private void AddText(ControlPlus.TipImage tipData, string title, int source, int real, string color, bool isLeft) { if (isLeft) { tipData.AddTextNewLine(string.Format("{0} {1,3:D}", title, source), color); } else { tipData.AddTextOff(string.Format("{0} {1,3:D}", title, source), color, 90); } int temp = real - source; if (temp > 0) { tipData.AddText(string.Format("+{0,2:D}", temp), "Lime"); } else if (temp < 0) { tipData.AddText(string.Format("{0,2:D}", temp), "Red"); } }
private Image GetTerrainImage(int monType, double[] attrAtk, double[] attrDef) {//todo ControlPlus.TipImage tipData = new ControlPlus.TipImage(); tipData.AddTextNewLine("属性:"+HSTypes.I2Attr(monType), "White", 20); for (int i = 0; i <= 6; i++) { tipData.AddTextNewLine("Vs", "Yellow", 16); tipData.AddImageXY(HSIcons.GetIconsByEName("atr" + i),0,0,32,32,23,20+i*16+1,14,14); // tipData.AddText(string.Format(" AT={0}%",100+attrAtk[i]*100), attrAtk[i]==0?"White": attrAtk[i]>0?"Lime": "Red"); tipData.AddTextOff(string.Format("DF={0}%", 100 + attrDef[i] * 100), attrDef[i] == 0 ? "White" : attrDef[i] > 0 ? "Lime" : "Red", 50); } return tipData.Image; }