Project

General

Profile

« Previous | Next » 

Revision d7e539d0

Added by Leszek Koltunski over 3 years ago

Progress with Play state.

View differences:

src/main/java/org/distorted/states/RubikStatePlay.java
40 40
import org.distorted.main.RubikPreRender;
41 41
import org.distorted.objects.RubikObject;
42 42
import org.distorted.objects.RubikObjectList;
43
import org.distorted.scores.RubikScores;
43 44

  
44 45
import java.util.ArrayList;
45 46

  
......
595 596

  
596 597
    mPlayLayout.removeAllViews();
597 598

  
599
    int realSize= RubikObjectList.getSizeIndex(mObject,mSize);
600
    RubikScores scores = RubikScores.getInstance();
601

  
598 602
    for(int i=0; i<maxLevel; i++)
599 603
      {
600 604
      final int but = i;
......
603 607
      button.setText(levels[i]);
604 608
      button.setTextSize(TypedValue.COMPLEX_UNIT_PX, mMenuTextSize);
605 609

  
610
      int icon = scores.isSolved(mObject, realSize, i) ? R.drawable.ui_solved : R.drawable.ui_notsolved;
611
      button.setCompoundDrawablesWithIntrinsicBounds(icon,0,0,0);
612

  
606 613
      button.setOnClickListener( new View.OnClickListener()
607 614
        {
608 615
        @Override

Also available in: Unified diff