Exemplo n.º 1
0
        public override void VRChat_OnUiManagerInit()
        {
            AssetsHandler.Load();

            try
            {
                if (FavCatSettings.IsEnableAvatarFavs)
                {
                    AvatarModule = new AvatarModule();
                }
            }
            catch (Exception ex)
            {
                MelonLogger.LogError($"Exception in avatar module init: {ex}");
            }

            try
            {
                if (FavCatSettings.IsEnableWorldFavs)
                {
                    myWorldsModule = new WorldsModule();
                }
            }
            catch (Exception ex)
            {
                MelonLogger.LogError($"Exception in world module init: {ex}");
            }

            try
            {
                if (FavCatSettings.IsEnablePlayerFavs)
                {
                    myPlayerModule = new PlayersModule();
                }
            }
            catch (Exception ex)
            {
                MelonLogger.LogError($"Exception in player module init: {ex}");
            }

            MelonLogger.Log("Initialized!");
            ourInitDone = true;
        }
Exemplo n.º 2
0
        public void OnUiManagerInit()
        {
            AssetsHandler.Load();

            try
            {
                if (FavCatSettings.EnableAvatarFavs.Value)
                {
                    AvatarModule = new AvatarModule();
                }
            }
            catch (Exception ex)
            {
                MelonLogger.Error($"Exception in avatar module init: {ex}");
            }

            try
            {
                if (FavCatSettings.EnableWorldFavs.Value)
                {
                    WorldsModule = new WorldsModule();
                }
            }
            catch (Exception ex)
            {
                MelonLogger.Error($"Exception in world module init: {ex}");
            }

            try
            {
                if (FavCatSettings.EnablePlayerFavs.Value)
                {
                    PlayerModule = new PlayersModule();
                }
            }
            catch (Exception ex)
            {
                MelonLogger.Error($"Exception in player module init: {ex}");
            }

            PageUserInfo = GameObject.Find("UserInterface/MenuContent/Screens/UserInfo").GetComponent <PageUserInfo>();
            MelonLogger.Msg("Initialized!");
        }