Revision c7238c67
Added by Leszek Koltunski almost 2 years ago
src/main/java/org/distorted/screens/RubikScreenPlay.java | ||
---|---|---|
201 | 201 |
@Override |
202 | 202 |
public void onClick(View v) |
203 | 203 |
{ |
204 |
if( act.getControl().isUINotBlocked() && ScreenList.getCurrentScreen()== ScreenList.PLAY )
|
|
204 |
if( obj!=null && act.getControl().isUINotBlocked() && ScreenList.getCurrentScreen()==ScreenList.PLAY )
|
|
205 | 205 |
{ |
206 |
RubikObjectList.setCurrObject(ordinal); |
|
207 |
act.changeObject(ordinal,true); |
|
208 |
if( mMenuPopup!=null ) setupLevelColors(act); |
|
209 |
mMovesController.clearMoves(act); |
|
206 |
if( obj.isFree() ) |
|
207 |
{ |
|
208 |
RubikObjectList.setCurrObject(ordinal); |
|
209 |
act.changeObject(ordinal,true); |
|
210 |
if( mMenuPopup!=null ) setupLevelColors(act); |
|
211 |
mMovesController.clearMoves(act); |
|
212 |
} |
|
213 |
else |
|
214 |
{ |
|
215 |
act.switchToPurchase(ordinal); |
|
216 |
} |
|
210 | 217 |
} |
211 | 218 |
|
212 | 219 |
if( mObjectPopup!=null ) mObjectPopup.dismiss(); |
Also available in: Unified diff
IAP part 5: new 'Purchase' activity.