Project

General

Profile

« Previous | Next » 

Revision b2a1b787

Added by Leszek Koltunski about 2 years ago

inc num of stars on each first record
up version name to 1.11.4

View differences:

build.gradle
15 15
        applicationId "org.distorted.magic"
16 16
        minSdkVersion 21
17 17
        targetSdkVersion 31
18
        versionCode 61
19
        versionName "1.11.3"
18
        versionCode 62
19
        versionName "1.11.4"
20 20
    }
21 21

  
22 22
    buildTypes {
src/main/java/org/distorted/main/RubikObjectLibInterface.java
22 22
import com.google.firebase.analytics.FirebaseAnalytics;
23 23
import com.google.firebase.crashlytics.FirebaseCrashlytics;
24 24

  
25
import org.distorted.library.main.DistortedScreen;
26 25
import org.distorted.library.message.EffectMessageSender;
27 26

  
28 27
import org.distorted.external.RubikNetwork;
......
36 35
import org.distorted.external.RubikScores;
37 36
import org.distorted.objects.RubikObject;
38 37
import org.distorted.objects.RubikObjectList;
39
import org.distorted.overlays.DataStars;
40 38
import org.distorted.overlays.ListenerOverlay;
41
import org.distorted.overlays.OverlayStars;
42 39
import org.distorted.screens.RubikScreenPlay;
43 40
import org.distorted.screens.RubikScreenReady;
44 41
import org.distorted.screens.RubikScreenSolver;
......
450 447

  
451 448
      switch(mIsNewRecord)
452 449
        {
453
        case RECORD_FIRST  : /*
454
                             // temporarily switch off the 'stars' animation
455
                             RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
450
        case RECORD_FIRST  : RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
456 451
                             int level = play.getLevel();
457 452
                             RubikScores scores = RubikScores.getInstance();
458
                             int totStars = scores.getNumStars();
459 453
                             int newStars = RubikObjectList.computeNumStars(level);
460
                             DistortedScreen screen = act.getScreen();
461

  
462
                             OverlayStars stars = new OverlayStars();
463
                             DataStars data  = new DataStars(totStars,newStars,act.getResources());
464
                             stars.startOverlay(screen,this,data);
454
                             scores.changeNumStars(newStars);
455
                             RubikDialogNewRecord d1 = new RubikDialogNewRecord();
456
                             d1.setArguments(bundle);
457
                             d1.show( act.getSupportFragmentManager(), RubikDialogNewRecord.getDialogTag() );
465 458
                             break;
466
                             */
467 459
        case RECORD_NEW    : RubikDialogNewRecord d2 = new RubikDialogNewRecord();
468 460
                             d2.setArguments(bundle);
469 461
                             d2.show( act.getSupportFragmentManager(), RubikDialogNewRecord.getDialogTag() );

Also available in: Unified diff