Exemplo n.º 1
0
                public DefaultEntry(GameManager manager, String text)
                    : base(manager.world)
                {
                    this.manager = manager;

                    AssetSpriteFont font = AssetManager.getAssetSpriteFont("menuHeaderFont");

                    texture       = new DrawableText(font, this, text, Color.Gray);
                    texture.layer = 0.5f;
                }
Exemplo n.º 2
0
 public Town(Land land, int ID)
     : base(land)
 {
     this.ID = ID;
     texture = new DrawableTexture("whiteSquare", this);
     texture.filter = Color.Orange;
     texture.layer = 0.95f;
     label = new DrawableText(AssetManager.getAssetSpriteFont("townLabelFont"), this, "Town " + ID, Color.White);
     label.layer = 0.949f;
 }
Exemplo n.º 3
0
 public Town(Land land, int ID)
     : base(land)
 {
     this.ID        = ID;
     texture        = new DrawableTexture("whiteSquare", this);
     texture.filter = Color.Orange;
     texture.layer  = 0.95f;
     label          = new DrawableText(AssetManager.getAssetSpriteFont("townLabelFont"), this, "Town " + ID, Color.White);
     label.layer    = 0.949f;
 }
Exemplo n.º 4
0
        public LandLoadPreviewer(World world, Land loadingLand)
            : base(world)
        {
            this.loadingLand = loadingLand;

            AssetSpriteFont font = AssetManager.CreateAssetSpriteFont("landLoaderFont", "defaultFont");
            statusText = new DrawableText(font, this, "", Color.White);

            statusBar = new DrawableTexture("whiteSquare", this);
            statusBar.size = new Vector2(20f, 10f);
            statusBar.position = new Vector2(0f, 30f);
        }
Exemplo n.º 5
0
        public LandLoadPreviewer(World world, Land loadingLand)
            : base(world)
        {
            this.loadingLand = loadingLand;

            AssetSpriteFont font = AssetManager.CreateAssetSpriteFont("landLoaderFont", "defaultFont");

            statusText = new DrawableText(font, this, "", Color.White);

            statusBar          = new DrawableTexture("whiteSquare", this);
            statusBar.size     = new Vector2(20f, 10f);
            statusBar.position = new Vector2(0f, 30f);
        }