Revision 8f5116ec
Added by Leszek Koltunski 2 months ago
src/main/java/org/distorted/objectlib/objects/TwistyJing.java | ||
---|---|---|
68 | 68 |
} |
69 | 69 |
|
70 | 70 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
71 |
// make the 'center' sticker artificially smaller, so that we paint over the area in the center of the face. |
|
72 | 71 |
|
73 | 72 |
@Override |
74 |
public void adjustStickerCoords()
|
|
73 |
protected float[][][] getStickerRadii()
|
|
75 | 74 |
{ |
76 | 75 |
int type = getObjectType(); |
77 | 76 |
|
78 |
if( type==JING_3 || type==JING_5 )
|
|
77 |
if( type==JING_3 ) |
|
79 | 78 |
{ |
80 |
float CENTER_CORR = (type==JING_3 ? 0.85f : 0.76f);
|
|
81 |
int index = (type==JING_3 ? 3 : 5);
|
|
82 |
|
|
83 |
mStickerCoords[index][0][2][0] *= CENTER_CORR;
|
|
84 |
mStickerCoords[index][0][2][1] *= CENTER_CORR;
|
|
79 |
float R = 0.06f;
|
|
80 |
float L = 0.16f;
|
|
81 |
float[][] t1 = {{ R,R,R,R }}; |
|
82 |
float[][] t2 = {{ R,R,L,R }};
|
|
83 |
return new float[][][] { t1,t1,t1,t2 };
|
|
85 | 84 |
} |
85 |
|
|
86 |
return super.getStickerRadii(); |
|
86 | 87 |
} |
87 | 88 |
|
88 | 89 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Major improvement for the FactorySticker: now all changes to border thickness & size of corners should work.