private static bool[] MakeSecondaryTileBargs(SecondaryTileData data)
 {
     bool[] bargs = new bool[6];
     bargs[0] = data.backgroundColorSet;
     bargs[1] = data.lockScreenDisplayBadgeAndTileText;
     bargs[2] = data.roamingEnabled;
     bargs[3] = data.showNameOnSquare150x150Logo;
     bargs[4] = data.showNameOnSquare310x310Logo;
     bargs[5] = data.showNameOnWide310x150Logo;
     return(bargs);
 }
Example #2
0
 private static bool[] MakeSecondaryTileBargs(SecondaryTileData data)
 {
     return(new bool[]
     {
         data.backgroundColorSet,
         data.lockScreenDisplayBadgeAndTileText,
         data.roamingEnabled,
         data.showNameOnSquare150x150Logo,
         data.showNameOnSquare310x310Logo,
         data.showNameOnWide310x150Logo
     });
 }
Example #3
0
        /// <summary>
        /// <para>Creates new or updates existing secondary tile.</para>
        /// </summary>
        /// <param name="data">The data used to create or update secondary tile.</param>
        /// <param name="pos">The coordinates for a request to create new tile.</param>
        /// <param name="area">The area on the screen above which the request to create new tile will be displayed.</param>
        /// <returns>
        /// <para>New Tile object, that can be used for further work with the tile.</para>
        /// </returns>
        public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Vector2 pos)
        {
            string[] sargs           = MakeSecondaryTileSargs(data);
            bool[]   bargs           = MakeSecondaryTileBargs(data);
            Color32  backgroundColor = data.backgroundColor;
            string   str             = CreateOrUpdateSecondaryTilePoint(sargs, bargs, ref backgroundColor, (int)data.foregroundText, pos);

            if (string.IsNullOrEmpty(str))
            {
                return(null);
            }
            return(new Tile(str));
        }
Example #4
0
        public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Rect area)
        {
            string[] sargs           = Tile.MakeSecondaryTileSargs(data);
            bool[]   bargs           = Tile.MakeSecondaryTileBargs(data);
            Color32  backgroundColor = data.backgroundColor;
            string   text            = Tile.CreateOrUpdateSecondaryTileArea(sargs, bargs, ref backgroundColor, (int)data.foregroundText, area);

            if (string.IsNullOrEmpty(text))
            {
                return(null);
            }
            return(new Tile(text));
        }
 private static string[] MakeSecondaryTileSargs(SecondaryTileData data)
 {
     string[] sargs = new string[10];
     sargs[0] = data.arguments;
     sargs[1] = data.displayName;
     sargs[2] = data.lockScreenBadgeLogo;
     sargs[3] = data.phoneticName;
     sargs[4] = data.square150x150Logo;
     sargs[5] = data.square30x30Logo;
     sargs[6] = data.square310x310Logo;
     sargs[7] = data.square70x70Logo;
     sargs[8] = data.tileId;
     sargs[9] = data.wide310x150Logo;
     return(sargs);
 }
Example #6
0
 private static string[] MakeSecondaryTileSargs(SecondaryTileData data)
 {
     return(new string[]
     {
         data.arguments,
         data.displayName,
         data.lockScreenBadgeLogo,
         data.phoneticName,
         data.square150x150Logo,
         data.square30x30Logo,
         data.square310x310Logo,
         data.square70x70Logo,
         data.tileId,
         data.wide310x150Logo
     });
 }
Example #7
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.WSA.SecondaryTileData o;
         System.String a1;
         checkType(l, 2, out a1);
         System.String a2;
         checkType(l, 3, out a2);
         o = new UnityEngine.WSA.SecondaryTileData(a1, a2);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #8
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);
            Tile     result;

            if (string.IsNullOrEmpty(text))
            {
                result = null;
            }
            else
            {
                result = new Tile(text);
            }
            return(result);
        }
Example #9
0
 /// <summary>
 ///   <para>Creates new or updates existing secondary tile.</para>
 /// </summary>
 /// <param name="data">The data used to create or update secondary tile.</param>
 /// <param name="pos">The coordinates for a request to create new tile.</param>
 /// <param name="area">The area on the screen above which the request to create new tile will be displayed.</param>
 /// <returns>
 ///   <para>New Tile object, that can be used for further work with the tile.</para>
 /// </returns>
 public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Rect area)
 {
   string[] sargs = Tile.MakeSecondaryTileSargs(data);
   bool[] bargs = Tile.MakeSecondaryTileBargs(data);
   Color32 backgroundColor = data.backgroundColor;
   string secondaryTileArea = Tile.CreateOrUpdateSecondaryTileArea(sargs, bargs, ref backgroundColor, (int) data.foregroundText, area);
   if (string.IsNullOrEmpty(secondaryTileArea))
     return (Tile) null;
   return new Tile(secondaryTileArea);
 }
Example #10
0
 private static bool[] MakeSecondaryTileBargs(SecondaryTileData data)
 {
   return new bool[6]{ data.backgroundColorSet, data.lockScreenDisplayBadgeAndTileText, data.roamingEnabled, data.showNameOnSquare150x150Logo, data.showNameOnSquare310x310Logo, data.showNameOnWide310x150Logo };
 }
Example #11
0
 private static string[] MakeSecondaryTileSargs(SecondaryTileData data)
 {
   return new string[10]{ data.arguments, data.displayName, data.lockScreenBadgeLogo, data.phoneticName, data.square150x150Logo, data.square30x30Logo, data.square310x310Logo, data.square70x70Logo, data.tileId, data.wide310x150Logo };
 }