public override bool RenderObjective(NewQuestGump g, bool offer) { if (offer) { g.AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer } else { g.AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log } g.AddHtmlObject(160, 70, 200, 40, Title, BaseQuestGump.DarkGreen, false, false); g.AddHtmlLocalized(98, 140, 312, 16, 1049073, 0x2710, false, false); // Objective: g.AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false); // All of the following int offset = 172; string str; foreach (QuestionAndAnswerObjective obj in Objectives.OfType <QuestionAndAnswerObjective>()) { if (offer) { str = String.Format("Answer {0} questions correctly.", obj.MaxProgress); } else { str = String.Format("Answer {0}/{1} questions answered correctly.", obj.CurProgress, obj.MaxProgress); } g.AddHtmlObject(98, offset, 312, 16, str, BaseQuestGump.LightGreen, false, false); offset += 16; } return(true); }
public virtual bool RenderObjective(NewQuestGump g, bool offer) { return(false); }
public virtual bool RenderDescription(NewQuestGump g, bool offer) { return(false); }