public static void PutThings(whereHUD wh) { LocationPreset tempPreset = new LocationPreset(); switch (wh) { case whereHUD.HMD: tempPreset = Configuration.PluginConfig.Instance.HMD; break; case whereHUD.Pause: tempPreset = Configuration.PluginConfig.Instance.Pause; break; } try { Combo.SetActive(tempPreset.elements.combo); Score.SetActive(tempPreset.elements.score); Rank.SetActive(tempPreset.elements.rank); Multiplier.SetActive(tempPreset.elements.multiplier); Progress.SetActive(tempPreset.elements.progress); Health.SetActive(tempPreset.elements.health); } catch (NullReferenceException) { FindHUDElements(); PutThings(wh); } }
public LocationPreset(whereHUD where, HudElements elements, bool everything = true) { this.where = where; this.elements = elements; this.everything = everything; }
public void Where(whereHUD w) { this.where = w; }