private Image GetPlayerImage() { ControlPlus.TipImage tipData = new ControlPlus.TipImage(); tipData.AddTextNewLine(string.Format("{0}(Lv{1})", UserProfile.ProfileName, UserProfile.InfoBasic.Level), "LightBlue", 20); tipData.AddLine(2); tipData.AddTextNewLine(string.Format("生命:{0}", UserProfile.InfoBasic.HealthPoint), "Red"); tipData.AddTextNewLine(string.Format("精神:{0}", UserProfile.InfoBasic.MentalPoint), "LightBlue"); tipData.AddTextNewLine(string.Format("食物:{0}", UserProfile.InfoBasic.FoodPoint), "LightGreen"); return(tipData.Image); }
private Image GetSceneImage() { var config = ConfigData.GetSceneConfig(UserProfile.InfoBasic.MapId); ControlPlus.TipImage tipData = new ControlPlus.TipImage(); tipData.AddTextNewLine(string.Format("{0}(Lv{1})", sceneName, config.Level), "LightBlue", 20); tipData.AddLine(2); tipData.AddTextNewLine(string.Format("格子:{0}", sceneItems.Count), "White"); foreach (var questData in SceneQuestBook.GetQuestConfigData(UserProfile.InfoBasic.MapId)) { var questConfig = ConfigData.GetSceneQuestConfig(questData.Id); if (questConfig.Type == SceneQuestTypes.Hidden) { continue; } var happend = GetDisableEventCount(questData.Id); var evtLevel = questConfig.Level == 0 ? config.Level : questConfig.Level; tipData.AddTextNewLine(string.Format(" {0}Lv{3}({1}/{2})", questConfig.Name, happend, questData.Value, evtLevel), happend == questData.Value ? "DimGray" : HSTypes.I2QuestDangerColor(questConfig.Danger)); } return(tipData.Image); }