Revision 7cf2637d
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/states/RubikStatePlay.java | ||
---|---|---|
51 | 51 |
public static final int DEF_OBJECT= ObjectList.CUBE.ordinal(); |
52 | 52 |
public static final int DEF_SIZE = 3; |
53 | 53 |
|
54 |
private static final int[] BUTTON_LABELS = { R.string.scores, R.string.patterns, R.string.solver, R.string.tutorials, R.string.about }; |
|
54 |
private static final int[] BUTTON_LABELS = { R.string.scores, |
|
55 |
R.string.patterns, |
|
56 |
R.string.control, |
|
57 |
R.string.solver, |
|
58 |
R.string.tutorials, |
|
59 |
R.string.about }; |
|
60 |
|
|
55 | 61 |
private static final int NUM_BUTTONS = BUTTON_LABELS.length; |
56 | 62 |
private static final float LAST_BUTTON = 1.5f; |
57 | 63 |
|
... | ... | |
363 | 369 |
adjustLevels(act); |
364 | 370 |
} |
365 | 371 |
|
372 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
373 |
|
|
374 |
private void controlTheCube() |
|
375 |
{ |
|
376 |
android.util.Log.e("D", "Control"); |
|
377 |
} |
|
378 |
|
|
366 | 379 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
367 | 380 |
|
368 | 381 |
private void MenuAction(RubikActivity act, int button) |
... | ... | |
387 | 400 |
pDiag.setArguments(pBundle); |
388 | 401 |
pDiag.show( act.getSupportFragmentManager(), RubikDialogPattern.getDialogTag() ); |
389 | 402 |
break; |
390 |
case 2: StateList.switchState(act, StateList.SVER); |
|
403 |
case 2: controlTheCube(); |
|
404 |
break; |
|
405 |
case 3: StateList.switchState(act, StateList.SVER); |
|
391 | 406 |
break; |
392 |
case 3: RubikDialogTutorial tDiag = new RubikDialogTutorial();
|
|
407 |
case 4: RubikDialogTutorial tDiag = new RubikDialogTutorial();
|
|
393 | 408 |
Bundle tBundle = new Bundle(); |
394 | 409 |
int tOrd = getTutorialOrdinal(); |
395 | 410 |
tBundle.putInt("tab", tOrd ); |
396 | 411 |
tDiag.setArguments(tBundle); |
397 | 412 |
tDiag.show( act.getSupportFragmentManager(), RubikDialogTutorial.getDialogTag() ); |
398 | 413 |
break; |
399 |
case 4: RubikDialogAbout aDiag = new RubikDialogAbout();
|
|
414 |
case 5: RubikDialogAbout aDiag = new RubikDialogAbout();
|
|
400 | 415 |
aDiag.show(act.getSupportFragmentManager(), null); |
401 | 416 |
break; |
402 | 417 |
} |
Also available in: Unified diff
Control the Cube: beginnings.