Files
abysmal-isle/Scripts/Scripts-master/Games/Bomberman/Base/ContextMenus.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

56 lines
1.1 KiB
C#

using System;
using Server;
using Server.ContextMenus;
using Server.Gumps;
using Server.Items;
namespace Solaris.BoardGames
{
public class ViewBoardGameScoresEntry : ContextMenuEntry
{
Mobile _From;
BoardGameControlItem _ControlItem;
//3006239 = "View events"
public ViewBoardGameScoresEntry( Mobile from, BoardGameControlItem controlitem, int index ) : base( 6239, index )
{
_From = from;
_ControlItem = controlitem;
}
public override void OnClick()
{
if ( _ControlItem == null || _ControlItem.Deleted )
{
return;
}
_From.SendGump( new BoardGameScoresGump( _From, _ControlItem ) );
}
}
public class ResetBoardGameScoresEntry : ContextMenuEntry
{
Mobile _From;
BoardGameControlItem _ControlItem;
//3006162 = "Reset Game"
public ResetBoardGameScoresEntry( Mobile from, BoardGameControlItem controlitem, int index ) : base( 6162, index )
{
_From = from;
_ControlItem = controlitem;
}
public override void OnClick()
{
if ( _ControlItem == null || _ControlItem.Deleted )
{
return;
}
_From.SendGump( new ConfirmResetGameScoreGump( _From, _ControlItem ) );
}
}
}