36 |
|
|
37 |
final private VobScene vs; |
final private VobScene vs; |
38 |
final private float scale; |
final private float scale; |
39 |
final private TextStyle style; |
final static private TextStyle style = GraphicsAPI.getInstance(). |
40 |
|
getTextStyle("sans", 0, 24); |
41 |
final private int into; |
final private int into; |
42 |
final private float offset; |
final private float offset; |
43 |
private float x,y; |
private float x,y; |
44 |
|
|
45 |
public Button(VobScene v, int into, TextStyle s, |
public Button(VobScene v, int into, |
46 |
float x, float y, float offset) { |
float x, float y, float offset) { |
47 |
vs = v; |
vs = v; |
|
style = s; |
|
48 |
scale = style.getScaleByHeight(40); |
scale = style.getScaleByHeight(40); |
49 |
this.into = into; |
this.into = into; |
50 |
this.x=x; this.y=y; |
this.x=x; this.y=y; |