mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 00:35:21 +01:00
Update HighScoreEntryActivity and ProgressionScreen functionality
This commit is contained in:
parent
1980f15a46
commit
1eb79a6611
2 changed files with 2 additions and 6 deletions
|
@ -1,17 +1,13 @@
|
|||
package com.mintris
|
||||
|
||||
import android.app.Activity
|
||||
import android.graphics.Color
|
||||
import android.os.Bundle
|
||||
import android.widget.Button
|
||||
import android.widget.EditText
|
||||
import android.widget.TextView
|
||||
import android.view.View
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import com.mintris.databinding.HighScoreEntryBinding
|
||||
import com.mintris.model.HighScore
|
||||
import com.mintris.model.HighScoreManager
|
||||
import com.mintris.model.PlayerProgressionManager
|
||||
import android.graphics.Color
|
||||
|
||||
class HighScoreEntryActivity : AppCompatActivity() {
|
||||
private lateinit var binding: HighScoreEntryBinding
|
||||
|
|
|
@ -99,7 +99,7 @@ class ProgressionScreen @JvmOverloads constructor(
|
|||
|
||||
// Animate the XP gain after a short delay
|
||||
postDelayed({
|
||||
xpProgressBar.animateXPGain(xpGained, playerLevel, currentXP, xpForNextLevel)
|
||||
xpProgressBar.animateXPGain(playerLevel, currentXP, xpForNextLevel)
|
||||
}, 1000) // Increased delay to 1 second for better visual flow
|
||||
|
||||
// If there are new rewards, show them with animation after XP bar animation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue