Skip to content

Commit

Permalink
Added option to change cooldown bar width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
markdwags committed May 16, 2023
1 parent 724352e commit 3cd11ab
Show file tree
Hide file tree
Showing 4 changed files with 680 additions and 393 deletions.
6 changes: 3 additions & 3 deletions Razor/Gumps/Internal/CooldownGump.cs
Expand Up @@ -81,15 +81,15 @@ public CooldownGump() : base(100, 100, -1)
AddImage(80, currentY, cooldown.Value.Icon);
}

AddProgressBar(110, currentY, 110, 28, timeLeft, cooldown.Value.Seconds, Color.Black, backColor, foreColor);
AddLabelCropped(114, currentY, 100, 28, labelHue, $"{cooldown.Key} ({timeLeft}s)");
AddProgressBar(110, currentY, Config.GetInt("CooldownWidth"), Config.GetInt("CooldownHeight"), timeLeft, cooldown.Value.Seconds, Color.Black, backColor, foreColor);
AddLabelCropped(114, currentY, Config.GetInt("CooldownWidth") - 10, Config.GetInt("CooldownHeight"), labelHue, $"{cooldown.Key} ({timeLeft}s)");

if (timeLeft == 0)
{
AddImage(224, currentY + 4, 9009);
}

currentY += 30;
currentY += 2 + Config.GetInt("CooldownHeight");
}
}

Expand Down
3 changes: 3 additions & 0 deletions Razor/UI/Config.cs
Expand Up @@ -338,6 +338,9 @@ public void MakeDefault()
AddProperty("EnableHighlight", false);
AddProperty("DisableScriptStopwatch", false);

AddProperty("CooldownHeight", 28);
AddProperty("CooldownWidth", 110);

Counter.Default();
Filter.DisableAll();
DressList.ClearAll();
Expand Down

0 comments on commit 3cd11ab

Please sign in to comment.