Revision 2f5783d4
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/main/RubikActivity.java | ||
---|---|---|
87 | 87 |
mScreenHeight=displaymetrics.heightPixels; |
88 | 88 |
|
89 | 89 |
mIsChinese = localeIsChinese(); |
90 |
/* |
|
91 |
final int REQUEST_EXTERNAL_STORAGE = 1; |
|
92 |
|
|
93 |
String[] PERMISSIONS_STORAGE = |
|
94 |
{ |
|
95 |
Manifest.permission.READ_EXTERNAL_STORAGE, |
|
96 |
Manifest.permission.WRITE_EXTERNAL_STORAGE |
|
97 |
}; |
|
98 |
|
|
99 |
int permission = ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE); |
|
100 |
|
|
101 |
if (permission != PackageManager.PERMISSION_GRANTED) |
|
102 |
{ |
|
103 |
ActivityCompat.requestPermissions( this, PERMISSIONS_STORAGE, REQUEST_EXTERNAL_STORAGE ); |
|
104 |
} |
|
105 |
*/ |
|
90 | 106 |
} |
91 | 107 |
|
92 | 108 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
src/main/java/org/distorted/objects/RubikObject.java | ||
---|---|---|
59 | 59 |
private static final float MAX_SIZE_CHANGE = 1.3f; |
60 | 60 |
private static final float MIN_SIZE_CHANGE = 0.8f; |
61 | 61 |
|
62 |
private static boolean mCreateFromDMesh = false;
|
|
62 |
private static boolean mCreateFromDMesh = true;
|
|
63 | 63 |
|
64 | 64 |
private static final Static3D CENTER = new Static3D(0,0,0); |
65 | 65 |
static final int INTERIOR_COLOR = 0xff000000; |
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
68 | 68 |
|
69 | 69 |
SKEW ( |
70 | 70 |
new int[][] { |
71 |
{2 , 11, R.raw.dino, R.drawable.ui_small_skewb, R.drawable.ui_medium_skewb, R.drawable.ui_big_skewb, R.drawable.ui_huge_skewb} ,
|
|
71 |
{2 , 11, R.raw.skewb, R.drawable.ui_small_skewb, R.drawable.ui_medium_skewb, R.drawable.ui_big_skewb, R.drawable.ui_huge_skewb} ,
|
|
72 | 72 |
}, |
73 | 73 |
RubikSkewb.class, |
74 | 74 |
new RubikMovementSkewb(), |
Also available in: Unified diff
Skewb Mesh.