public ChildTalkerBackButton(string _text, string _imagePath, Phrases _root, bool _inColor)
 {
     Text      = _text;
     ImagePath = _imagePath;
     InColor   = false;
     root      = _root;
     Xml       = null;
     //Xml.Text = null;
     //Xml.ImagePath = null;
     scan = Autoscan2.Instance;
 }
示例#2
0
 public ChildTalkerTile(string _text, string _imagePath, bool _inColor)
 {
     Text      = _text;
     ImagePath = _imagePath;
     InColor   = false;
     //collection initializer
     Xml = new ChildTalkerXml()
     {
         Text      = _text,
         ImagePath = _imagePath,
         TileType  = ChildTalkerXml.Tile.talker
     };
 }
 public ChildTalkerFolderAdder(string _text, string _imagePath, Phrases _root, bool _hasColor)
 {
     Text      = _text;
     ImagePath = _imagePath;
     HasColor  = _hasColor;
     Root      = _root;
     // collection initializer
     Xml = new ChildTalkerXml
     {
         Text      = _text,
         ImagePath = _imagePath,
         TileType  = ChildTalkerXml.Tile.folder
     };
 }
 public ChildTalkerTileAdder(string _text, string _imagePath, Phrases _root)
 {
     Text      = _text;
     ImagePath = _imagePath;
     HasColor  = IsFileTypeTransparent(_imagePath);
     Root      = _root;
     // collection initializer
     Xml = new ChildTalkerXml()
     {
         Text      = _text,
         ImagePath = _imagePath,
         TileType  = ChildTalkerXml.Tile.talker
     };
 }
示例#5
0
        public ChildTalkerFolder(string _text, string _imagePath, Phrases _root, bool _inColor, List <IChildTalkerTile> _children = null)
        {
            Text      = _text;
            ImagePath = _imagePath;
            InColor   = !(TalkerViews.PhrasesPage.PhraseButton.CheckForTransparency(ImagePath));
            SetChildren(_children);
            Root = _root;
            Xml  = new ChildTalkerXml
            {
                Text      = _text,
                ImagePath = _imagePath,
                TileType  = ChildTalkerXml.Tile.folder,
                Children  = XmlChildren
            };

            /*
             * Used Collection initializer instead
             * Xml.Text = Text;
             * Xml.ImagePath = ImagePath;
             * Xml.TileType = ChildTalkerXml.Tile.folder;
             * Xml.Children = XmlChildren;
             */
            scan = Utilities.Autoscan.Autoscan2.Instance;
        }