Skip to content

Commit

Permalink
- adjusted windows slightly more for quests
Browse files Browse the repository at this point in the history
- manually setting fill of bars to max for default max levels for now, will add that in config info sent to client to handle properly next
  • Loading branch information
mfoltz committed Aug 30, 2024
1 parent be72604 commit c80ac3e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Services/CanvasService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ public static IEnumerator CanvasUpdateLoop() // need to find another component,
{
ExperienceFill.fillAmount = ExperienceProgress;

if (ExperienceLevel == 90) ExperienceFill.fillAmount = 1f;

if (ExperienceText.GetText() != ExperienceLevel.ToString())
{
ExperienceText.ForceSet(ExperienceLevel.ToString());
Expand All @@ -243,6 +245,8 @@ public static IEnumerator CanvasUpdateLoop() // need to find another component,
{
LegacyFill.fillAmount = LegacyProgress;

if (LegacyLevel == 100) LegacyFill.fillAmount = 1f;

if (LegacyHeader.GetText() != LegacyType)
{
if (ShowPrestige && LegacyPrestige != 0)
Expand Down Expand Up @@ -299,6 +303,8 @@ public static IEnumerator CanvasUpdateLoop() // need to find another component,
{
ExpertiseFill.fillAmount = ExpertiseProgress;

if (ExpertiseLevel == 100) ExpertiseFill.fillAmount = 1f;

if (ExpertiseHeader.GetText() != ExpertiseType)
{
if (ShowPrestige && ExpertisePrestige != 0)
Expand Down Expand Up @@ -640,8 +646,8 @@ static void InitializeBars(UICanvasBase canvas)
WeeklyQuestTransform.gameObject.layer = CanvasObject.layer;

// Reduce window widths
DailyQuestTransform.sizeDelta = new Vector2(DailyQuestTransform.sizeDelta.x * 0.5f, DailyQuestTransform.sizeDelta.y);
WeeklyQuestTransform.sizeDelta = new Vector2(WeeklyQuestTransform.sizeDelta.x * 0.5f, WeeklyQuestTransform.sizeDelta.y);
DailyQuestTransform.sizeDelta = new Vector2(DailyQuestTransform.sizeDelta.x * 0.7f, DailyQuestTransform.sizeDelta.y);
WeeklyQuestTransform.sizeDelta = new Vector2(WeeklyQuestTransform.sizeDelta.x * 0.7f, WeeklyQuestTransform.sizeDelta.y);

//Core.Log.LogInfo($"DailyQuestTransform: {DailyQuestTransform.position.x},{DailyQuestTransform.position.y},{DailyQuestTransform.position.z}");

Expand Down

0 comments on commit c80ac3e

Please sign in to comment.