1. private static SliderStyle genDefaultSliderStyle(){
  2. SliderStyle style = new SliderStyle();
  3. style.knob = new TextureRegionDrawable(new TextureRegion(getTexture("slider_knob")));
  4. NinePatch p = new NinePatch(getTexture("slider_before"), 4, 4, 0, 0);
  5. style.knobBefore = new NinePatchDrawable(p);
  6. p = new NinePatch(getTexture("slider_after"), 4, 4, 0, 0);
  7. style.background = new NinePatchDrawable(p);
  8. return style;
  9. }

goto line:
Compare with:
text copy window edit this code post new code