private static void OnRewardSettingschanged(object sender, SettingsChangedArgs e) { var key = guiScript.rewardSettings.reward.id; if (e.Data is RavenMessageData) { RewardsConfig.Set(key, e.Data as RavenMessageData); } else if (e.Data is SpawnCreatureData) { RewardsConfig.Set(key, e.Data as SpawnCreatureData); } else if (e.Data is HUDMessageData) { RewardsConfig.Set(key, e.Data as HUDMessageData); } else { RewardsConfig.Set(key, e.Data); } UpdateRewardGrid(); }
private void Settings_SettingsChanged(SettingsChangedArgs e) { ApplySettings(); }