Revision 09cf2a36
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/config/ConfigScreenPane.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
package org.distorted.config; |
21 | 21 |
|
22 |
import java.io.InputStream; |
|
23 |
|
|
22 | 24 |
import android.util.TypedValue; |
23 | 25 |
import android.widget.ImageView; |
24 | 26 |
import android.widget.LinearLayout; |
... | ... | |
32 | 34 |
import org.distorted.objects.RubikObject; |
33 | 35 |
import org.distorted.objects.RubikObjectList; |
34 | 36 |
|
35 |
import java.io.InputStream; |
|
37 |
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE; |
|
38 |
import static org.distorted.objectlib.main.TwistyObject.MESH_FAST; |
|
36 | 39 |
|
37 | 40 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
38 | 41 |
|
39 | 42 |
public class ConfigScreenPane |
40 | 43 |
{ |
41 |
public static final int MESH_NICE = 0; |
|
42 |
public static final int MESH_FAST = 1; |
|
43 |
|
|
44 | 44 |
private static final int[] IMAGES = |
45 | 45 |
{ |
46 | 46 |
R.id.configDifficulty0, |
... | ... | |
64 | 64 |
private void switchMeshState(ConfigActivity act, int meshState) |
65 | 65 |
{ |
66 | 66 |
RubikObjectList.setMeshState(mObjectOrdinal,meshState); |
67 |
|
|
68 |
// TODO: rebuild the mesh
|
|
67 |
RubikObject object = RubikObjectList.getObject(mObjectOrdinal); |
|
68 |
act.changeMeshState(object);
|
|
69 | 69 |
} |
70 | 70 |
|
71 | 71 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Introduce 'Simple' and 'Nice' meshes.