diff --git a/Scripts/Gumps/StatusBar.cs b/Scripts/Gumps/StatusBar.cs index 34f84da..0e313a1 100644 --- a/Scripts/Gumps/StatusBar.cs +++ b/Scripts/Gumps/StatusBar.cs @@ -39,7 +39,6 @@ namespace Server.Custom.UI { if (gump is StatusBarGump) { - // This line right here is what threw the CS1061 error earlier! isVert = ((StatusBarGump)gump).IsVertical; break; } @@ -57,9 +56,7 @@ namespace Server.Custom.UI private PlayerMobile m_Player; private bool m_IsVertical; - // --- HERE IS THE MISSING PROPERTY THAT FIXES THE CS1061 ERROR --- public bool IsVertical { get { return m_IsVertical; } } - // ---------------------------------------------------------------- public StatusBarGump(PlayerMobile pm, bool isVertical) : base(50, 50) { @@ -75,9 +72,6 @@ namespace Server.Custom.UI if (m_IsVertical) { - // ========================================== - // VERTICAL LAYOUT - // ========================================== AddBackground(0, 0, 150, 175, 9270); AddHtml(15, 15, 120, 20, $"Fame: {pm.Fame}", false, false); @@ -86,17 +80,11 @@ namespace Server.Custom.UI AddHtml(15, 90, 120, 20, $"Thirst: {pm.Thirst}/20", false, false); AddHtml(15, 115, 120, 20, $"Tithing: {pm.TithingPoints}", false, false); - AddButton(15, 142, 4011, 4012, 1, GumpButtonType.Reply, 0); - AddHtml(50, 143, 80, 20, "Refresh", false, false); - AddButton(115, 142, 9720, 9722, 2, GumpButtonType.Reply, 0); } else { - // ========================================== - // HORIZONTAL LAYOUT (Widened for Tithing) - // ========================================== - AddBackground(0, 0, 580, 45, 9270); + AddBackground(0, 0, 550, 45, 9270); AddHtml(15, 12, 110, 20, $"Fame: {pm.Fame}", false, false); AddHtml(110, 12, 110, 20, $"Karma: {pm.Karma}", false, false); @@ -104,9 +92,7 @@ namespace Server.Custom.UI AddHtml(315, 12, 110, 20, $"Thirst: {pm.Thirst}/20", false, false); AddHtml(410, 12, 110, 20, $"Tithing: {pm.TithingPoints}", false, false); - AddButton(525, 12, 4011, 4012, 1, GumpButtonType.Reply, 0); - - AddButton(555, 15, 9720, 9722, 2, GumpButtonType.Reply, 0); + AddButton(525, 15, 9720, 9722, 2, GumpButtonType.Reply, 0); } }