예제 #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;
        }
예제 #2
0
파일: FavCatMod.cs 프로젝트: knah/VRCMods
        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!");
        }