Skip to content
Home
Post Code
Jass (Warcraft III)
Wurst
GUI (Warcraft III)
Galaxy (StarCraft II)
GUI (StarCraft II)
C++
Java
Delphi
Text
Search Code
Compare Code
Uploads
Draw
Create New Drawing
View Drawings
Graph
Log in
[code][color=7777FF][b]private[/b][/color] static SliderStyle genDefaultSliderStyle()[color=999999][i]{[/i][/color] [color=999999][i] SliderStyle style = new SliderStyle();[/i][/color] [color=999999][i] style.knob = new TextureRegionDrawable(new TextureRegion(getTexture("slider_knob")));[/i][/color] [color=999999][i] NinePatch p = new NinePatch(getTexture("slider_before"), 4, 4, 0, 0);[/i][/color] [color=999999][i] style.knobBefore = new NinePatchDrawable(p);[/i][/color] [color=999999][i] p = new NinePatch(getTexture("slider_after"), 4, 4, 0, 0);[/i][/color] [color=999999][i] style.background = new NinePatchDrawable(p);[/i][/color] [color=999999][i] return style;[/i][/color] [color=999999][i]}[/i][/color] [/code]
select language
jass
java
> delphi
C++
php
GSL
galaxy
visualBasic
wurst
Text
Markdown
select style
default
> bbcode - default
Jasscraft
jasscraft html
visual
lightweight
lightweightNr
goto line:
Compare with:
text copy window
edit this code
post new code
private static SliderStyle genDefaultSliderStyle(){ SliderStyle style = new SliderStyle(); style.knob = new TextureRegionDrawable(new TextureRegion(getTexture("slider_knob"))); NinePatch p = new NinePatch(getTexture("slider_before"), 4, 4, 0, 0); style.knobBefore = new NinePatchDrawable(p); p = new NinePatch(getTexture("slider_after"), 4, 4, 0, 0); style.background = new NinePatchDrawable(p); return style; }