mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 13:19:02 +00:00
update hp/exp/mp text colors
This commit is contained in:
parent
89569979b3
commit
b819f9c372
2 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ class StatsActivity : BaseActivity<ActivityStatsBinding, StatsViewModel>() {
|
|||
binding.mpBar.visibility = View.GONE
|
||||
} else {
|
||||
binding.mpBar.ovalSize = ((height / 2) - 46)
|
||||
binding.mpBar.setBarColor(R.color.mp_bar_color)
|
||||
binding.mpBar.setBarColor(R.color.mpColor)
|
||||
binding.mpBar.setPercentageValues(stats.mp?.toInt() ?: 0, stats.maxMP ?: 0)
|
||||
binding.mpBar.animateProgress()
|
||||
}
|
||||
|
|
@ -61,8 +61,8 @@ class StatsActivity : BaseActivity<ActivityStatsBinding, StatsViewModel>() {
|
|||
}
|
||||
|
||||
private fun updateStatViews(stats: Stats) {
|
||||
binding.hpStatValue.setStatValue(stats.maxHealth ?: 0, stats.hp?.toInt() ?: 0, HabiticaIconsHelper.imageOfHeartLightBg(), R.color.hpColor)
|
||||
binding.expStatValue.setStatValue(stats.toNextLevel ?: 0, stats.exp?.toInt() ?: 0, HabiticaIconsHelper.imageOfExperience(), R.color.xpColor)
|
||||
binding.hpStatValue.setStatValue(stats.maxHealth ?: 0, stats.hp?.toInt() ?: 0, HabiticaIconsHelper.imageOfHeartLightBg(), R.color.hp_bar_color)
|
||||
binding.expStatValue.setStatValue(stats.toNextLevel ?: 0, stats.exp?.toInt() ?: 0, HabiticaIconsHelper.imageOfExperience(), R.color.exp_bar_color)
|
||||
if (stats.lvl ?: 0 < 10) {
|
||||
binding.mpStatValue.visibility = View.GONE
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
android:id="@+id/max_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:autoSizeMaxTextSize="6sp"
|
||||
android:autoSizeMinTextSize="4sp"
|
||||
android:autoSizeTextType="uniform"
|
||||
|
|
|
|||
Loading…
Reference in a new issue