Project

General

Profile

« Previous | Next » 

Revision 85b09df4

Added by Leszek Koltunski about 4 years ago

Reorganize UI of the Play state.

View differences:

src/main/java/org/distorted/main/RubikActivity.java
262 262
      RubikDialogAbout diag = new RubikDialogAbout();
263 263
      diag.show(getSupportFragmentManager(), null);
264 264
      }
265

  
266
///////////////////////////////////////////////////////////////////////////////////////////////////
267

  
268
    public void Scramble(View v)
269
      {
270
      RubikSurfaceView view = findViewById(R.id.rubikSurfaceView);
271
      RubikStatePlay play = (RubikStatePlay)RubikState.PLAY.getStateClass();
272
      int scramble = play.getPicker();
273
      view.getPostRender().scrambleObject(scramble);
274
      }
275

  
276
///////////////////////////////////////////////////////////////////////////////////////////////////
277

  
278
    public void Solve(View v)
279
      {
280
      RubikSurfaceView view = findViewById(R.id.rubikSurfaceView);
281
      view.getPostRender().solveObject();
282
      }
283 265
}

Also available in: Unified diff