Example #1
0
 public static void DestroyAllChildrenFX(this Transform root)
 {
     while (root.childCount > 0)
     {
         ObjectFX.DestroyImmediate(root.GetChild(0).gameObject);
     }
 }
Example #2
0
        public void Export(ObjectFX obj, string path)
        {
            UIObjectFX fx           = (UIObjectFX)obj;
            string     originalText = fx.OriginalText;
            List <int> indexList    = new List <int>();

            foreach (ControlObject controlObject in fx.ControlObjects)
            {
                indexList.Add(controlObject._Index);
            }
            indexList.Sort();
            indexList.Reverse();

            foreach (int index in indexList)
            {
                foreach (ControlObject controlObject in fx.ControlObjects)
                {
                    int startIndex = controlObject._Index;

                    if (startIndex == index)
                    {
                        int length = controlObject._Length;

                        originalText = originalText.Remove(startIndex, length);
                        originalText = originalText.Insert(startIndex, Format(controlObject));

                        break;
                    }
                }
            }
            File.WriteAllText(path, originalText, Encoding);
        }
Example #3
0
 public bool IsExportable(ObjectFX obj)
 {
     return(obj is UIObjectFX);
 }
Example #4
0
 public void Export(ObjectFX obj, string path)
 {
 }
Example #5
0
 public bool IsExportable(ObjectFX obj)
 {
     return(true);
 }
Example #6
0
 private void Widget_ValueChanged(object sender, EventArgs e)
 {
     ObjectFX.OnStatusChanged(FileStatus.Changed);
 }
Example #7
0
 public WidgetProxy(ObjectFX obj, IHost host) : this()
 {
     Host     = host;
     ObjectFX = obj;
 }