Esempio n. 1
0
        /// <summary>
        /// 
        /// </summary>
        public override void OnEnable()
        {
            base.OnEnable();
            addonName = ADDON_NAME;
            addonKey = ADDON_KEY;
            allSteps = 2;

            MFPSAddonsInfo addonInfo = MFPSAddonsData.Instance.Addons.Find(x => x.KeyName == addonKey);
            Dictionary<string, string> info = new Dictionary<string, string>();
            if (addonInfo != null) { info = addonInfo.GetInfoInDictionary(); }
            Initializate(info);

#if LOCALIZATION
            currentStep = 2;//skip the activation step.
#endif
        }
Esempio n. 2
0
    /// <summary>
    ///
    /// </summary>
    public override void OnEnable()
    {
        base.OnEnable();
        addonName = "Mini Map";
        addonKey  = "UMM";
        allSteps  = 2;

        MFPSAddonsInfo addonInfo         = MFPSAddonsData.Instance.Addons.Find(x => x.KeyName == addonKey);
        Dictionary <string, string> info = new Dictionary <string, string>();

        if (addonInfo != null)
        {
            info = addonInfo.GetInfoInDictionary();
        }
        Initializate(info);
    }