Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Content.Client.ContextMenu.UI
|
||||
/// If this entry has a sub-menu, it also shows a little ">" icon on the right.
|
||||
/// </summary>
|
||||
[GenerateTypedNameReferences]
|
||||
[Virtual]
|
||||
public partial class ContextMenuElement : ContainerButton
|
||||
{
|
||||
public const string StyleClassContextMenuButton = "contextMenuButton";
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Client.ContextMenu.UI
|
||||
/// The base context-menu pop-up window used for both the entity and verb menus.
|
||||
/// </summary>
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class ContextMenuPopup : Popup
|
||||
public sealed partial class ContextMenuPopup : Popup
|
||||
{
|
||||
public const string StyleClassContextMenuPopup = "contextMenuPopup";
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Content.Client.ContextMenu.UI
|
||||
|
||||
UserInterfaceManager.ModalRoot.AddChild(this);
|
||||
MenuBody.OnChildRemoved += ctrl => _presenter.OnRemoveElement(this, ctrl);
|
||||
|
||||
|
||||
if (ParentElement != null)
|
||||
{
|
||||
DebugTools.Assert(ParentElement.SubMenu == null);
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace Content.Client.ContextMenu.UI
|
||||
/// <remarks>
|
||||
/// This largely involves setting up timers to open and close sub-menus when hovering over other menu elements.
|
||||
/// </remarks>
|
||||
[Virtual]
|
||||
public class ContextMenuPresenter : IDisposable
|
||||
{
|
||||
public static readonly TimeSpan HoverDelay = TimeSpan.FromSeconds(0.2);
|
||||
@@ -179,7 +180,7 @@ namespace Content.Client.ContextMenu.UI
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes event subscriptions when an element is removed from a menu,
|
||||
/// Removes event subscriptions when an element is removed from a menu,
|
||||
/// </summary>
|
||||
public void OnRemoveElement(ContextMenuPopup menu, Control control)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Client.ContextMenu.UI
|
||||
{
|
||||
public partial class EntityMenuElement : ContextMenuElement
|
||||
public sealed partial class EntityMenuElement : ContextMenuElement
|
||||
{
|
||||
public const string StyleClassEntityMenuCountText = "contextMenuCount";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user