Example #1
0
        public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Vector2 pos)
        {
            string[] sargs           = Tile.MakeSecondaryTileSargs(data);
            bool[]   bargs           = Tile.MakeSecondaryTileBargs(data);
            Color32  backgroundColor = data.backgroundColor;
            string   text            = Tile.CreateOrUpdateSecondaryTilePoint(sargs, bargs, ref backgroundColor, (int)data.foregroundText, pos);

            if (string.IsNullOrEmpty(text))
            {
                return(null);
            }
            return(new Tile(text));
        }