コード例 #1
0
        public BamToolTipWidget
        (
            ActorActionsWidget actorActions,
            string name      = "",
            int cost         = 0,
            int researcost   = 0,
            int researchtime = 0,
            int attack       = 0,
            int armor        = 0,
            int speed        = 0,
            bool showRes     = false,
            bool showStats   = false
        )
        {
            this.actorActions = actorActions;
            this.name         = name;
            this.cost         = cost;
            this.researcost   = researcost;
            this.researchtime = researchtime;
            this.attack       = attack;
            this.armor        = armor;
            this.speed        = speed;
            this.showRes      = showRes;
            this.showStats    = showStats;

            anim = new Animation(actorActions.BamUi.World, "basic_ui");

            anim.PlayFetchIndex("ui_tooltipbar", () => 0);
            xWidth = anim.Image.Bounds.Width;
            Bounds = new Rectangle(0 - xWidth, 0, xWidth, 10);
        }
コード例 #2
0
        public DrawTransformStatisticsWidget(ActorActionsWidget actorActions)
        {
            this.actorActions = actorActions;

            moonPhase2 = new Sprite(actorActions.BamUi.Sheet, new Rectangle(147, 940, 12, 14), TextureChannel.RGBA);
            moonPhase3 = new Sprite(actorActions.BamUi.Sheet, new Rectangle(172, 940, 12, 14), TextureChannel.RGBA);
            moonPhase4 = new Sprite(actorActions.BamUi.Sheet, new Rectangle(198, 940, 14, 14), TextureChannel.RGBA);
            moonPhase5 = new Sprite(actorActions.BamUi.Sheet, new Rectangle(224, 940, 16, 14), TextureChannel.RGBA);
            moonPhase6 = new Sprite(actorActions.BamUi.Sheet, new Rectangle(252, 940, 17, 14), TextureChannel.RGBA);

            readyMen = new Sprite(actorActions.BamUi.Sheet, new Rectangle(47, 964, 50, 60), TextureChannel.RGBA);

            emptyMoons  = new Sprite(actorActions.BamUi.Sheet, new Rectangle(114, 958, 172, 29), TextureChannel.RGBA);
            background2 = new Sprite(actorActions.BamUi.Sheet, new Rectangle(452, 374, 90, 34), TextureChannel.RGBA);
            background3 = new Sprite(actorActions.BamUi.Sheet, new Rectangle(867, 376, 90, 34), TextureChannel.RGBA);

            emptyMen = new Sprite(actorActions.BamUi.Sheet, new Rectangle(282, 958, 56, 63), TextureChannel.RGBA);
        }
コード例 #3
0
 public DrawActorStatisticsWidget(ActorActionsWidget actorActions)
 {
     this.actorActions = actorActions;
 }
コード例 #4
0
 public SelectionNameWidget(ActorActionsWidget actorActions)
 {
     this.actorActions = actorActions;
 }
コード例 #5
0
 public HealthBarUIWidget(ActorActionsWidget actorActions)
 {
     this.actorActions = actorActions;
 }