public ResearchButtonWidget(ShowResearchButtonWidget showResearch, int posx, int posy, string researchItem, int ResearchTime, int ResearchCost) { this.showResearch = showResearch; this.posx = posx; this.posy = posy; this.researchItem = researchItem; researchTime = ResearchTime; this.ResearchCost = ResearchCost; AddChild(tooltip = new BamToolTipWidget ( this.showResearch.ActorActions, this.showResearch.ActorActions.BamUi.World.Map.Rules.Actors[researchItem].TraitInfo <TooltipInfo>().Name, 0, ResearchCost, researchTime, 0, 0, 0, true, false ) { Visible = false }); }
public ConvertToButtonWidget(ActorActionsWidget actorActions, int posx, int posy, string animationString, string actorString) { this.actorActions = actorActions; this.posx = posx; this.posy = posy; this.animationString = animationString; this.actorString = actorString; AddChild(tooltip = new BamToolTipWidget ( this.actorActions, actorActions.BamUi.World.Map.Rules.Actors[this.actorString].TraitInfo <TooltipInfo>().Name, actorActions.BamUi.World.Map.Rules.Actors[this.actorString].TraitInfo <ValuedInfo>().Cost, 0, 0, actorActions.BamUi.World.Map.Rules.Actors[this.actorString].TraitInfo <DungeonsAndDragonsStatsInfo>().Damage, actorActions.BamUi.World.Map.Rules.Actors[this.actorString].TraitInfo <DungeonsAndDragonsStatsInfo>().Armor, actorActions.BamUi.World.Map.Rules.Actors[this.actorString].TraitInfo <DungeonsAndDragonsStatsInfo>().Speed, false, true ) { Visible = false }); }