Revision 314e9ff0
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/screens/RubikScreenPlay.java | ||
---|---|---|
273 | 273 |
|
274 | 274 |
for(int object=0; object<numObjects; object++) |
275 | 275 |
{ |
276 |
final RubikObject robject = RubikObjectList.getObject(object);
|
|
277 |
int icons = robject==null ? 0 : robject.getIconID();
|
|
276 |
final int ordinal = object;
|
|
277 |
final RubikObject rObject = RubikObjectList.getObject(object);
|
|
278 | 278 |
int row = object/NUM_COLUMNS; |
279 |
final int ordinal = robject==null ? 0 : robject.getOrdinal(); |
|
280 |
|
|
281 | 279 |
ImageButton button = new ImageButton(act); |
282 |
button.setBackgroundResource(icons); |
|
280 |
if( rObject!=null ) rObject.setIconTo(button); |
|
281 |
|
|
283 | 282 |
button.setOnClickListener( new View.OnClickListener() |
284 | 283 |
{ |
285 | 284 |
@Override |
Also available in: Unified diff
Refactor RubikObject in preparation for creating RubikObjects from DownloadedObjects.