Revision ad9e8bb3
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/magic/RubikRenderer.java | ||
---|---|---|
204 | 204 |
mSetQuatAccumulated = true; |
205 | 205 |
} |
206 | 206 |
|
207 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
208 |
// PUBLIC API |
|
209 | 207 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
210 | 208 |
// various things are done here delayed, 'after the next render' as not to be done mid-render and |
211 | 209 |
// cause artifacts. |
... | ... | |
328 | 326 |
} |
329 | 327 |
} |
330 | 328 |
|
329 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
330 |
// PUBLIC API |
|
331 | 331 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
332 | 332 |
|
333 | 333 |
public void effectFinished(final long effectID) |
... | ... | |
345 | 345 |
mCanRotate = true; |
346 | 346 |
mCanDrag = true; |
347 | 347 |
mCanUI = true; |
348 |
|
|
349 |
if( i==BaseEffect.Type.SCRAMBLE.ordinal() ) |
|
350 |
{ |
|
351 |
final RubikActivity act = (RubikActivity)mView.getContext(); |
|
352 |
|
|
353 |
act.runOnUiThread(new Runnable() |
|
354 |
{ |
|
355 |
@Override |
|
356 |
public void run() |
|
357 |
{ |
|
358 |
RubikState.switchState( act, RubikState.SOLV); |
|
359 |
} |
|
360 |
}); |
|
361 |
} |
|
348 | 362 |
break; |
349 | 363 |
} |
350 | 364 |
} |
Also available in: Unified diff
Beginnings of the 'Solving' state.