예제 #1
0
 public BGUISliderDrawRequest(BGUIGroup group, float width, BGUIValueDelegate <float> del, float current, float left, float right)
 {
     Delegate = del;
     Current  = current;
     Left     = left;
     Right    = right;
     Width    = width;
     pos      = group.RequestNextRect(Width, GUI.skin.horizontalSlider.fixedHeight);
 }
예제 #2
0
파일: BGUIGroup.cs 프로젝트: JonSnowbd/Bone
 /// <summary>
 /// Starts a new slider inside of the current group
 /// </summary>
 /// <param name="del">The delegate function that takes a float. Looking like `void YourFunction(float val);`</param>
 /// <param name="current_value">What the value currently is</param>
 /// <param name="left">If the knob was at the farthest left, what would you want that value to be</param>
 /// <param name="right">If the knob was at the farthest right, what would you want that value to be</param>
 /// <param name="width">How wide you want the slider to be</param>
 /// <returns>Returns the group for easy method chaining.</returns>
 public BGUIGroup Slider(BGUIValueDelegate <float> del, float current_value, float left, float right, float width)
 {
     RegisterDrawRequest(new BGUISliderDrawRequest(this, width, del, current_value, left, right));
     return(this);
 }