コード例 #1
0
        public override void OnClicked(Page_ModsConfig window)
        {
            ModMetaData modWithIdentifier = ModLister.GetModWithIdentifier(packageId, ignorePostfix: true);

            if (modWithIdentifier != null && modWithIdentifier.Active)
            {
                window.SelectMod(modWithIdentifier);
            }
        }
コード例 #2
0
        public override void OnClicked(Page_ModsConfig window)
        {
            ModMetaData modWithIdentifier = ModLister.GetModWithIdentifier(packageId, ignorePostfix: true);

            if (modWithIdentifier == null)
            {
                if (!Url.NullOrEmpty())
                {
                    SteamUtility.OpenUrl(Url);
                }
            }
            else if (!modWithIdentifier.Active)
            {
                window.SelectMod(modWithIdentifier);
            }
        }