public static Image GetPreview(int key) { var config = ConfigData.GetBlessConfig(key); var lastTime = 0; if (UserProfile.InfoWorld.Blesses.ContainsKey(key)) { lastTime = UserProfile.InfoWorld.Blesses[key]; } TipImage tipData = new TipImage(); tipData.AddTextNewLine(config.Name, config.Type == 1 ? "Green" : "Red", 20); tipData.AddLine(2); tipData.AddTextLines(config.Descript, "White", 15, true); tipData.AddTextNewLine(String.Format("剩余步数{0}", lastTime), "Wheat"); return(tipData.Image); }
public static Image GetPreview(int key) { var config = ConfigData.GetDungeonGismoConfig(key); TipImage tipData = new TipImage(PaintTool.GetTalkColor); var hasGismo = UserProfile.InfoGismo.GetGismo(key); if (hasGismo) { tipData.AddTextNewLine(config.Name, "White", 20); } else { tipData.AddTextNewLine(config.Name + "(未达成)", "Red", 20); tipData.AddTextNewLine("难度:" + ("★★★★★").Substring(5 - config.Hard), "Gold", 20); } tipData.AddLine(2); tipData.AddTextLines(config.Descript, "White", 15, true); return(tipData.Image); }