Пример #1
0
        private void OnEnable()
        {
            if (!_skin)
            {
                _skin = E_Helpers.LoadSkin(E_Core.e_guiSkinPath);
            }

            //Make window title
            this.titleContent = new GUIContent("Main Menu", null, "Steps to setup multiplayer support.");
        }
Пример #2
0
 private void OnEnable()
 {
     if (!_skin)
     {
         _skin = E_Helpers.LoadSkin(E_Core.e_guiSkinPath);
     }
     this.minSize = _minrect;
     this.maxSize = _maxrect;
     titleContent = new GUIContent("Welcome To The Invector Multiplayer Add-On");
 }
Пример #3
0
        private void OnEnable()
        {
            if (!_skin)
            {
                _skin = E_Helpers.LoadSkin(E_Core.e_guiSkinPath);
            }

            //Make window title
            this.titleContent = new GUIContent("Check File Status'", null, "What files have been modified and what add-ons are enabled.");
        }
Пример #4
0
        private void OnEnable()
        {
            if (!_skin)
            {
                _skin = E_Helpers.LoadSkin(E_Core.e_guiSkinPath);
            }

            //Set title bar colors
            _lockColor           = new Color32(158, 158, 158, 200); //dark blue
            _convertBar          = new Color32(95, 165, 245, 255);  //dark blue
            _titleBoxColor       = new Color32(1, 16, 51, 255);     //Lighter Blue
            _convertColor        = new Color32(173, 127, 0, 255);   //Darker Yellow
            _convertSuccessColor = new Color32(8, 156, 0, 255);     //Light Green
            _convertErrorColor   = new Color32(222, 11, 0, 255);    //Red

            //Make window title
            this.titleContent = new GUIContent("Scene Conversion", null, "Convert a objects in the scene to support multiplayer.");

            GetSceneObjects();
            _scrollHeight = 35 * convertables.Count;
            _scrollPos    = new Vector2(0, _scrollHeight);

            //Set starting help text
            _help = "This is a list of objects that will be converted to support multiplayer. " +
                    "Select the object name button to see a preview of the target and what will be converted " +
                    "on that target. If you wish to remove an object from being converted click the 'X' " +
                    "button next to the object name to remove it from the list. Once you are satistfied with " +
                    "your selections click the 'CONVERT ALL' button to begin the conversion process.\n\n " +
                    "Found objects in this scene: " + convertables.Count;

            _target = null;
            if (_convertedGenericTriggers == true)
            {
                if (EditorUtility.DisplayDialog("Friendly Reminder",
                                                "You have converted some vTriggerGenericAction's in this scene. Not everything " +
                                                "is able to be auto converted by default. Look through these objects and make sure " +
                                                "the unity events that you want to be triggered over the network are being run by " +
                                                "the \"CallNetworkEvents\" component." +
                                                "",
                                                "Thanks For The Info"))
                {
                    _convertedGenericTriggers = false;
                }
            }
        }
Пример #5
0
        private void OnEnable()
        {
            if (!_skin)
            {
                _skin = E_Helpers.LoadSkin(E_Core.e_guiSkinPath);
            }

            //Make window title
            this.titleContent = new GUIContent("Scenes Database", null, "List Of All Transition Scenes/Points.");

            SceneDatabase database = (SceneDatabase)AssetDatabase.LoadAssetAtPath("Assets/Resources/ScenesDatabase/ScenesDatabase.asset", typeof(SceneDatabase));

            databaseScenes.Clear();
            if (database)
            {
                databaseScenes = database.storedScenesData;
            }
        }
Пример #6
0
        private void OnEnable()
        {
            if (!_skin)
            {
                _skin = E_Helpers.LoadSkin(E_Core.e_guiSkinPath);
            }

            //Set title bar colors
            _titleColor          = new Color32(1, 9, 28, 255);    //dark blue
            _titleBoxColor       = new Color32(1, 16, 51, 255);   //Lighter Blue
            _convertColor        = new Color32(173, 127, 0, 255); //Darker Yellow
            _convertSuccessColor = new Color32(8, 156, 0, 255);   //Light Green
            _convertErrorColor   = new Color32(222, 11, 0, 255);  //Red

            //Make window title
            this.titleContent = new GUIContent("Player Conversion", null, "Convert a player to support multiplayer.");
            FindAllPlayers();
        }