public override void Reload(UICollection uic, UIElementLayout uiel) { base.Reload(uic, uiel); var temp = uiel as UIScreenSliderSaveLayout; sliderType = temp.UIST; }
public UISlider(GameObject obj, Sprite[] sprites) : base(obj, sprites) { this.type = UIType.Slider; Log.Debug(obj.name+" screenPos:"+pos); sliderType = UISliderType.VERTICAL; }
public void Set(UISliderType sliderType, Rect rect, float value, float min, float max, float step) { this.sliderType = sliderType; this.rect = rect; this.value = value; this.min = min; this.max = max; this.step = step; //Log.Info(string.Format("Slider set: rect:{0} value: {1} min: {2} max: {3} step: {4}", rect, value, min, max, step)); UpdatePosition(); }