public TrinketDropButtonWidget(ActorActionsWidget actorActions) { this.actorActions = actorActions; background = new Sprite(actorActions.BamUi.Sheet, new Rectangle(948, 91, 76, 18), TextureChannel.RGBA); backgroundDown = new Sprite(actorActions.BamUi.Sheet, new Rectangle(948, 109, 76, 18), TextureChannel.RGBA); }
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 }); }
public AbilityButtonWidget(ActorActionsWidget actorActions) { this.actorActions = actorActions; anim = new Animation(actorActions.BamUi.World, "basic_ui"); Bounds = new Rectangle(1, 265, 180, 34); //0, 264 }
public ShowResearchButtonWidget(ActorActionsWidget actorActions) { ActorActions = actorActions; var resProperty = ActorActions.BamUi.World.LocalPlayer.PlayerActor.TraitsImplementing <Research>().ToArray(); var faction = ActorActions.BamUi.World.RenderPlayer.Faction.InternalName; var setfaction = resProperty.Where(r => r.Info.Faction == faction); research = setfaction.FirstOrDefault(); }
public SpawnGolemWidget(ActorActionsWidget actorActions) { this.actorActions = actorActions; }
public TransformToBuildingButtonWidget(ActorActionsWidget actorActions) { this.actorActions = actorActions; }
public TrinketButtonsWidget(ActorActionsWidget actorActions) { this.actorActions = actorActions; }
public ManaSendButtonWidget(ActorActionsWidget actorActions) { this.actorActions = actorActions; background = new Sprite(actorActions.BamUi.Sheet, new Rectangle(152, 818, 180, 35), TextureChannel.RGBA); backgroundDown = new Sprite(actorActions.BamUi.Sheet, new Rectangle(152, 853, 180, 35), TextureChannel.RGBA); }