public ActorActionsWidget(BamUIWidget bamUi) { BamUi = bamUi; AddChild(manaSend = new ManaSendButtonWidget(this) { Visible = false }); AddChild(SpawnGolem = new SpawnGolemWidget(this) { Visible = false }); AddChild(TransformToBuilding = new TransformToBuildingButtonWidget(this) { Visible = false }); AddChild(DrawActorStatisticsW = new DrawActorStatisticsWidget(this) { Visible = false }); AddChild(drawTransformStatistics = new DrawTransformStatisticsWidget(this) { Visible = false }); AddChild(DrawValueStatistics = new DrawValueStatisticsWidget(this) { Visible = false }); AddChild(HealthBarUI = new HealthBarUIWidget(this) { Visible = false }); AddChild(SelectionName = new SelectionNameWidget(this) { Visible = false }); AddChild(AbilityButton = new AbilityButtonWidget(this) { Visible = false }); AddChild(ResearchEnabler = new ShowResearchButtonWidget(this) { Visible = true }); AddChild(TrinketButtons = new TrinketButtonsWidget(this) { Visible = false }); AddChild(TrinketDropButton = new TrinketDropButtonWidget(this) { Visible = false }); }
public SideBarBackgroundWidget(BamUIWidget bamUi, int posX, int posy, int boundsx, int boundsy, int boundsxmax, int boundsymax) { this.bamUi = bamUi; PosX = posX; PosY = posy; BoundsX = boundsx; BoundsY = boundsy; BoundsXMax = boundsxmax; BoundsYMax = boundsymax; background = new Sprite(bamUi.Sheet, new Rectangle(BoundsX, BoundsY, BoundsXMax, BoundsYMax), TextureChannel.RGBA); }
public ManaCounterWidget(BamUIWidget bamUi) { this.bamUi = bamUi; background = new Sprite(bamUi.Sheet, new Rectangle(0, 734, 160, 17), TextureChannel.RGBA); playerResources = bamUi.World.LocalPlayer.PlayerActor.Trait <PlayerResources>(); }