private void PostParse() { SliderButton.Register(GameObject.Instantiate(leftButton), GameObject.Instantiate(rightButton), multiplierSlider, 0.05f); SliderButton.Register(GameObject.Instantiate(leftButton), GameObject.Instantiate(rightButton), widthSlider, 0.1f); GameObject.Destroy(leftButton.gameObject); GameObject.Destroy(rightButton.gameObject); leftColorModal = leftColorSetting.transform.Find("BSMLModalColorPicker"); rightColorModal = rightColorSetting.transform.Find("BSMLModalColorPicker"); UpdateTable(); }
private void Parse(Transform parent) { if (!parsed) { BSMLParser.instance.Parse(Utilities.GetResourceContent(Assembly.GetExecutingAssembly(), "NiceMiss.UI.hitscoreModal.bsml"), parent.gameObject, this); parsed = true; hitscoreColorModal = hitscoreColorSetting.transform.Find("BSMLModalColorPicker").GetComponent <ModalView>(); SliderButton.Register(GameObject.Instantiate(leftButton), GameObject.Instantiate(rightButton), minSlider, 1); SliderButton.Register(GameObject.Instantiate(leftButton), GameObject.Instantiate(rightButton), maxSlider, 1); GameObject.Destroy(leftButton.gameObject); GameObject.Destroy(rightButton.gameObject); } FieldAccessor <ModalView, bool> .Set(ref hitscoreColorModal, "_animateParentCanvas", false); FieldAccessor <ModalView, bool> .Set(ref modalView, "_animateParentCanvas", true); }