Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public LocationPreset(whereHUD where, HudElements elements, bool everything = true)
 {
     this.where      = where;
     this.elements   = elements;
     this.everything = everything;
 }
Exemplo n.º 3
0
 public void Where(whereHUD w)
 {
     this.where = w;
 }