Project

General

Profile

« Previous | Next » 

Revision 7e8750c9

Added by Leszek Koltunski 2 months ago

progress with configurable stickers

View differences:

src/main/java/org/distorted/objectlib/main/ObjectPreRender.java
60 60
  private float mFinishAngle, mAvgSpeed;
61 61
  private long mScrambleStartTime, mScrambleEndTime;
62 62
  private int mIconMode;
63
  private float mTextureBorders, mTextureCorners;
63 64

  
64 65
  // debugging only
65 66
  private long mAddRotationTime;
......
389 390
  private void repaintPuzzleFaceNow()
390 391
    {
391 392
    mRepaintPuzzleFace = false;
392
    if( mNewObject!=null ) mNewObject.repaintPuzzleFace(mCubit,mFace,mNewColor);
393
    if( mNewObject!=null ) mNewObject.repaintPuzzleFace(mCubit,mFace,mNewColor,mTextureBorders,mTextureCorners);
393 394
    }
394 395

  
395 396
///////////////////////////////////////////////////////////////////////////////////////////////////
......
472 473

  
473 474
///////////////////////////////////////////////////////////////////////////////////////////////////
474 475

  
475
  public void repaintPuzzleFace(int cubit, int face, int newColor)
476
  public void repaintPuzzleFace(int cubit, int face, int newColor, float borders, float corners)
476 477
    {
477 478
    mRepaintPuzzleFace = true;
478 479

  
479 480
    mCubit    = cubit;
480 481
    mFace     = face;
481 482
    mNewColor = newColor;
483
    mTextureBorders = borders;
484
    mTextureCorners = corners;
482 485
    }
483 486

  
484 487
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff