Esempio n. 1
0
File: IG.cs Progetto: Rio-Git/XL2SO
            /// <summary>
            /// Initializes a new instance of the <see cref="IG"/> class.
            /// <summary>
            /// <param name="_Parent"></param>
            override public void Initialize(XL2SO _Parent)
            {
                m_Parent = _Parent;

                m_General          = new General();
                m_ScriptPart       = new ScriptPart();
                m_ExcelPart        = new ExcelPart();
                m_InstanceListPart = new InstanceListPart();
                m_OutputPart       = new OutputPart();

                m_General.FoldoutStyle           = new GUIStyle("FoldOut");
                m_General.FoldoutStyle.fontStyle = FontStyle.Bold;
            }
Esempio n. 2
0
            /// <summary>
            /// Initializes a new instance of the <see cref="SG"/> class.
            /// </summary>
            /// <remarks>
            /// Set instance members and check if template file exists.
            /// </remarks>
            /// <param name="_Parent"> Parent <see cref="XL2SO"/> instance </param>
            override public void Initialize(XL2SO _Parent)
            {
                // Initialize instance members
                m_Parent        = _Parent;
                m_General       = new General();
                m_ExcelPart     = new ExcelPart();
                m_FieldListPart = new FieldListPart();
                m_OutputPart    = new OutputPart();
                CreateDataTypeList();
                CreateGUIStyles();

                // Check if template file exists
                MonoScript mono_this        = MonoScript.FromScriptableObject(m_Parent);
                string     script_path      = AssetDatabase.GetAssetPath(mono_this);
                string     script_directory = Path.GetDirectoryName(script_path);

                m_General.TemplatePath   = script_directory + "\\ScriptTemplate.txt";
                m_General.TemplateExists = File.Exists(m_General.TemplatePath);
            }