#W# Status bar refresh button no longer needed.

This commit is contained in:
WarrentyExpired 2026-08-26 11:15:01 -04:00
parent 26588acf2d
commit df6c920a5a

View file

@ -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, $"<BASEFONT COLOR=#FCCA03>Fame:</BASEFONT> <BASEFONT COLOR=#FFFFFF>{pm.Fame}</BASEFONT>", false, false);
@ -86,17 +80,11 @@ namespace Server.Custom.UI
AddHtml(15, 90, 120, 20, $"<BASEFONT COLOR=#FCCA03>Thirst:</BASEFONT> <BASEFONT COLOR=#FFFFFF>{pm.Thirst}/20</BASEFONT>", false, false);
AddHtml(15, 115, 120, 20, $"<BASEFONT COLOR=#FCCA03>Tithing:</BASEFONT> <BASEFONT COLOR=#FFFFFF>{pm.TithingPoints}</BASEFONT>", false, false);
AddButton(15, 142, 4011, 4012, 1, GumpButtonType.Reply, 0);
AddHtml(50, 143, 80, 20, "<BASEFONT COLOR=#FFFFFF>Refresh</BASEFONT>", 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, $"<BASEFONT COLOR=#FCCA03>Fame:</BASEFONT> <BASEFONT COLOR=#FFFFFF>{pm.Fame}</BASEFONT>", false, false);
AddHtml(110, 12, 110, 20, $"<BASEFONT COLOR=#FCCA03>Karma:</BASEFONT> <BASEFONT COLOR=#FFFFFF>{pm.Karma}</BASEFONT>", false, false);
@ -104,9 +92,7 @@ namespace Server.Custom.UI
AddHtml(315, 12, 110, 20, $"<BASEFONT COLOR=#FCCA03>Thirst:</BASEFONT> <BASEFONT COLOR=#FFFFFF>{pm.Thirst}/20</BASEFONT>", false, false);
AddHtml(410, 12, 110, 20, $"<BASEFONT COLOR=#FCCA03>Tithing:</BASEFONT> <BASEFONT COLOR=#FFFFFF>{pm.TithingPoints}</BASEFONT>", 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);
}
}