Revision b62eb334
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/movingglow/MovingGlowRenderer.java | ||
---|---|---|
139 | 139 |
|
140 | 140 |
private void makeGlow(int leaf) |
141 | 141 |
{ |
142 |
//android.util.Log.e("glow", "glowing: "+leaf); |
|
143 |
|
|
144 | 142 |
mGlowing = leaf; |
145 | 143 |
mLeafEffects[leaf].apply(mGlow[leaf]); |
146 | 144 |
} |
... | ... | |
152 | 150 |
{ |
153 | 151 |
switch(em) |
154 | 152 |
{ |
155 |
case EFFECT_FINISHED: //android.util.Log.e("glow", "effectMessage FINISHED"); |
|
153 |
case EFFECT_FINISHED: mLeafEffects[mGlowing].abortById(effectID); |
|
154 |
|
|
156 | 155 |
int glowing = mGlowing+1; |
157 | 156 |
if( glowing>=NUM_LEAVES ) glowing = 0; |
158 | 157 |
makeGlow(glowing); |
159 | 158 |
break; |
160 |
default: //android.util.Log.e("glow", "effectMessage REMOVED"); |
|
161 |
break; |
|
162 | 159 |
} |
163 | 160 |
} |
164 | 161 |
|
Also available in: Unified diff
Many things.
1) make the Dynamic.setDuration() able to be called AFTER the Dynamic has already been run. (and rename it to 'makeRunNowFor()' )
2) remove the automatic removal of zero Effects from EffectQueues.
3) adjust several Apps to cope with 2)
4) add post-rotation to Rubik (still not finished)