Revision 988e3d33
Added by Leszek Koltunski about 2 months ago
src/main/java/org/distorted/objects/RubikObject.java | ||
---|---|---|
45 | 45 |
private final int mCategory, mYear; |
46 | 46 |
private final float mDifficulty; |
47 | 47 |
private final String mAuthor; |
48 |
private final boolean mAdjColors; |
|
48 | 49 |
|
49 | 50 |
private boolean mIsFree; |
50 | 51 |
private int mJsonID, mMeshID, mExtrasID; |
... | ... | |
73 | 74 |
mYear = meta.getYearOfInvention(); |
74 | 75 |
mAuthor = meta.getAuthor(); |
75 | 76 |
mIsLocal = false; |
77 |
mAdjColors = meta.supportsAdjustableStickerColors(); |
|
76 | 78 |
|
77 | 79 |
int patternOrdinal = RubikPatternList.getOrdinal(mObjectOrdinal); |
78 | 80 |
mPatterns = RubikPatternList.getPatterns(patternOrdinal); |
... | ... | |
101 | 103 |
mCategory = object.category; |
102 | 104 |
mYear = object.year; |
103 | 105 |
mAuthor = object.author; |
106 |
mAdjColors = object.adjColors; |
|
104 | 107 |
|
105 | 108 |
mPatterns = null; |
106 | 109 |
mExtrasOrdinal = -1; |
... | ... | |
231 | 234 |
return mExtrasVersion; |
232 | 235 |
} |
233 | 236 |
|
237 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
238 |
|
|
239 |
public boolean supportsAdjustableColors() |
|
240 |
{ |
|
241 |
return mAdjColors; |
|
242 |
} |
|
243 |
|
|
234 | 244 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
235 | 245 |
|
236 | 246 |
public void setIconTo(Activity act,ImageButton button) |
Also available in: Unified diff
Objects can support or not changing colors of their stickers.