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
<pre class="jasscode"><span class="style_keyword">private</span> static SliderStyle genDefaultSliderStyle()<span class="style_comment">{</span> <span class="style_comment"> SliderStyle style = new SliderStyle();</span> <span class="style_comment"> style.knob = new TextureRegionDrawable(new TextureRegion(getTexture("slider_knob")));</span> <span class="style_comment"> NinePatch p = new NinePatch(getTexture("slider_before"), 4, 4, 0, 0);</span> <span class="style_comment"> style.knobBefore = new NinePatchDrawable(p);</span> <span class="style_comment"> p = new NinePatch(getTexture("slider_after"), 4, 4, 0, 0);</span> <span class="style_comment"> style.background = new NinePatchDrawable(p);</span> <span class="style_comment"> return style;</span> <span class="style_comment">}</span> </pre>
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; }