Skip to content

Commit

Permalink
Potential bug fix for buff gump, some minor cleanup and updated versi…
Browse files Browse the repository at this point in the history
…on history
  • Loading branch information
bittiez committed Feb 7, 2024
1 parent 6236b4f commit c07f548
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/ClassicUO.Client/Game/GameObjects/Views/ItemView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@

#endregion

using System;
using System.Collections.Generic;
using ClassicUO.Assets;
using ClassicUO.Configuration;
using ClassicUO.Game.Data;
using ClassicUO.Game.Managers;
using ClassicUO.Game.Scenes;
using ClassicUO.IO;
using ClassicUO.Assets;
using ClassicUO.Renderer;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using MathHelper = ClassicUO.Utility.MathHelper;

namespace ClassicUO.Game.GameObjects
Expand Down
15 changes: 9 additions & 6 deletions src/ClassicUO.Client/Game/UI/Gumps/ImprovedBuffGump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ public ImprovedBuffGump() : base(0, 0)

public void AddBuff(BuffIcon icon)
{
CoolDownBar coolDownBar = new CoolDownBar(TimeSpan.FromMilliseconds(icon.Timer - Time.Ticks), icon.Title.Replace("<br>", " "), ProfileManager.CurrentProfile.ImprovedBuffBarHue, 0, 0, icon.Graphic, icon.Type, true);
coolDownBar.SetTooltip(icon.Text);
BuffBarManager.AddCoolDownBar(coolDownBar, _direction, _box);
_box.Add(coolDownBar);
if (icon != null)
{
CoolDownBar coolDownBar = new CoolDownBar(TimeSpan.FromMilliseconds(icon.Timer - Time.Ticks), icon.Title.Replace("<br>", " "), ProfileManager.CurrentProfile.ImprovedBuffBarHue, 0, 0, icon.Graphic, icon.Type, true);
coolDownBar.SetTooltip(icon.Text);
BuffBarManager.AddCoolDownBar(coolDownBar, _direction, _box);
_box.Add(coolDownBar);
}
}

public void RemoveBuff(BuffIconType graphic)
Expand Down Expand Up @@ -105,12 +108,12 @@ private void BuildGump()

_box = new DataBox(0, 0, Width, HEIGHT);



Add(_background);
Add(_button);
Add(_box);

BuffBarManager.Clear();
if (World.Player != null)
{
Expand Down
4 changes: 4 additions & 0 deletions src/ClassicUO.Client/Game/UI/Gumps/VersionHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ namespace ClassicUO.Game.UI.Gumps
internal class VersionHistory : Gump
{
private static string[] updateTexts = {
"/c[white][3.21.0]/cd\n" +
"- A few bug fixes\n" +
"- A few fixes from CUO",

"/c[white][3.20.0]/cd\n" +
"- Being frozen wont cancel auto follow\n" +
"- Fix from CUO for buffs\n" +
Expand Down

0 comments on commit c07f548

Please sign in to comment.