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
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;
}
Diesen Code in Original-Formatierung anzeigen
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; }