Example #1
0
        public void Main()
        {
            Instance = this;
            Logger   = base.Logger;

            CurrentPluginMode = Config.Bind("Config", "Plugin Mode", PluginMode.RelationshipBased,
                                            "Controls how plugin operates");

            CorrectHighlight = Config.Bind("General", "Highlight (correct)", "←",
                                           "String to append to highlighting correct answers");
            IncorrectHighlight = Config.Bind("General", "Highlight (incorrect)", "∅",
                                             "String to append when highlighting incorrect answers");

            MinimumRelationshipLevel = Config.Bind("Relationship Mode", "Minimum Relationship",
                                                   RelationshipLevel.Friend,
                                                   "Highlight correct choice if relationship with character is the selected level or higher");

            CurrentPluginMode.SettingChanged += CurrentPluginMode_SettingChanged;

            SetupPluginModeLogic(CurrentPluginMode.Value);
        }
 protected override void OnGameLoad(GameSaveLoadEventArgs args)
 {
     GameDialogHelper.DoReset();
     LoadFromGame();
 }