Пример #1
0
        private void GameToggleClicked(bool value)
        {
            Plugin.Log.Info("GameToggleClicked");
            currectEff.showInGame = value;
            currectEff.SetActiveRefs();
            MiscConfigObject configObject = MiscConfig.ReadObject(EffectModel.GetNameWithoutSceneName(currectEff.Desc.EffectName));

            configObject.showInGame = value;
            MiscConfig.WriteToObject(configObject);
        }
Пример #2
0
        private void MenuToggleClicked(bool value)
        {
            Plugin.Log.Info("MenuToggleClicked");
            currectEff.showInMenu = value;
            currectEff.SetActiveRefs();
            MiscConfigObject configObject = MiscConfig.ReadObject(EffectModel.GetNameWithoutSceneName(currectEff.Desc.EffectName));

            configObject.showInMenu = value;
            MiscConfig.WriteToObject(configObject);
            if (value)
            {
                currectEff.SetSceneMaterials();
            }
            if (!value)
            {
                currectEff.RemoveSceneMaterials();
            }
        }