Exemplo n.º 1
0
        protected override void OnCardBeingSaved(GameMode currentGameMode)
        {
            var pd = new PluginData {
                version = 2
            };

            OverlayStorage.Save(pd);

#if !EC
            if (!EnableInStudioSkin)
            {
                pd.data[nameof(EnableInStudioSkin)] = EnableInStudioSkin;
            }
            if (!EnableInStudioIris)
            {
                pd.data[nameof(EnableInStudioIris)] = EnableInStudioIris;
            }
#endif

            SetExtendedData(pd.data.Count > 0 ? pd : null);

#if KK || KKS
            ExtendedSave.SetExtendedDataById(ChaFileControl, "com.jim60105.kk.charaoverlaysbasedoncoordinate", null);
#endif
        }
Exemplo n.º 2
0
        protected override void OnCardBeingSaved(GameMode currentGameMode)
        {
            var pd = new PluginData {
                version = 2
            };

            OverlayStorage.Save(pd);

#if !EC
            if (!EnableInStudioSkin)
            {
                pd.data[nameof(EnableInStudioSkin)] = EnableInStudioSkin;
            }
            if (!EnableInStudioIris)
            {
                pd.data[nameof(EnableInStudioIris)] = EnableInStudioIris;
            }
#endif

            SetExtendedData(pd.data.Count > 0 ? pd : null);
        }