Skip to content

Commit ccd1a65

Browse files
fix ap text correct
1 parent 5e65c35 commit ccd1a65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nekoyume/Assets/_Scripts/UI/Module/Currency/ActionPoint.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ private void UpdateDailyBonusSlider(bool useAnimation)
197197

198198
private void OnSliderChange()
199199
{
200-
var current = ((int)sliderAnimator.Value).ToString("N0", CultureInfo.CurrentCulture);
201-
var max = ((int)sliderAnimator.MaxValue).ToString("N0", CultureInfo.CurrentCulture);
200+
var current = ((int)_currentActionPoint).ToString("N0", CultureInfo.CurrentCulture);
201+
var max = DailyReward.ActionPointMax.ToString("N0", CultureInfo.CurrentCulture);
202202
text.text = $"{current}/{max}";
203203
}
204204

@@ -238,7 +238,7 @@ public void ShowMaterialNavigationPopup()
238238
var apStoneCount = Game.Game.instance.States.CurrentAvatarState.inventory
239239
.GetUsableItemCount(CostType.ApPotion, blockIndex);
240240

241-
var itemCountText = $"{sliderAnimator.Value}/{sliderAnimator.MaxValue}";
241+
var itemCountText = $"{_currentActionPoint}/{DailyReward.ActionPointMax}";
242242
var blockRange = (long)dailyBonus.sliderAnimator.Value;
243243
var maxBlockRange = (long)dailyBonus.sliderAnimator.MaxValue;
244244
var isInteractable = IsInteractableMaterial(); // 이 경우 버튼 자체를 비활성화

0 commit comments

Comments
 (0)