mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 22:37:43 +01:00
refactor: seal ContextMenu, DTR
This commit is contained in:
parent
440ec7433c
commit
30d4c8a93d
10 changed files with 11 additions and 11 deletions
|
|
@ -21,7 +21,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[PluginInterface]
|
[PluginInterface]
|
||||||
[InterfaceVersion("1.0")]
|
[InterfaceVersion("1.0")]
|
||||||
public class ContextMenu : IDisposable
|
public sealed class ContextMenu : IDisposable
|
||||||
{
|
{
|
||||||
private const int MaxContextMenuItemsPerContextMenu = 32;
|
private const int MaxContextMenuItemsPerContextMenu = 32;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides data for <see cref="ContextMenuOpenedDelegate"/> methods.
|
/// Provides data for <see cref="ContextMenuOpenedDelegate"/> methods.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public unsafe class ContextMenuOpenedArgs
|
public sealed unsafe class ContextMenuOpenedArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ContextMenuOpenedArgs"/> class.
|
/// Initializes a new instance of the <see cref="ContextMenuOpenedArgs"/> class.
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An item in a context menu with a user defined action.
|
/// An item in a context menu with a user defined action.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CustomContextMenuItem : ContextMenuItem
|
public sealed class CustomContextMenuItem : ContextMenuItem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="CustomContextMenuItem"/> class.
|
/// Initializes a new instance of the <see cref="CustomContextMenuItem"/> class.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides data for <see cref="CustomContextMenuItemSelectedDelegate"/> methods.
|
/// Provides data for <see cref="CustomContextMenuItemSelectedDelegate"/> methods.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CustomContextMenuItemSelectedArgs
|
public sealed class CustomContextMenuItemSelectedArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="CustomContextMenuItemSelectedArgs"/> class.
|
/// Initializes a new instance of the <see cref="CustomContextMenuItemSelectedArgs"/> class.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An item in a context menu that with a specific game action.
|
/// An item in a context menu that with a specific game action.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GameContextMenuItem : ContextMenuItem
|
public sealed class GameContextMenuItem : ContextMenuItem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="GameContextMenuItem"/> class.
|
/// Initializes a new instance of the <see cref="GameContextMenuItem"/> class.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides game object context to a context menu.
|
/// Provides game object context to a context menu.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GameObjectContext
|
public sealed class GameObjectContext
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="GameObjectContext"/> class.
|
/// Initializes a new instance of the <see cref="GameObjectContext"/> class.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides inventory item context to a context menu.
|
/// Provides inventory item context to a context menu.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class InventoryItemContext
|
public sealed class InventoryItemContext
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="InventoryItemContext"/> class.
|
/// Initializes a new instance of the <see cref="InventoryItemContext"/> class.
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An item in a context menu that can open a sub context menu.
|
/// An item in a context menu that can open a sub context menu.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class OpenSubContextMenuItem : ContextMenuItem
|
public sealed class OpenSubContextMenuItem : ContextMenuItem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="OpenSubContextMenuItem"/> class.
|
/// Initializes a new instance of the <see cref="OpenSubContextMenuItem"/> class.
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ namespace Dalamud.Game.Gui.Dtr
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[PluginInterface]
|
[PluginInterface]
|
||||||
[InterfaceVersion("1.0")]
|
[InterfaceVersion("1.0")]
|
||||||
public unsafe class DtrBar : IDisposable
|
public sealed unsafe class DtrBar : IDisposable
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The amount of padding between Server Info UI elements.
|
/// The amount of padding between Server Info UI elements.
|
||||||
|
|
@ -30,7 +30,7 @@ namespace Dalamud.Game.Gui.Dtr
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="DtrBar"/> class.
|
/// Initializes a new instance of the <see cref="DtrBar"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DtrBar()
|
internal DtrBar()
|
||||||
{
|
{
|
||||||
Service<Framework>.Get().Update += this.Update;
|
Service<Framework>.Get().Update += this.Update;
|
||||||
var configuration = Service<DalamudConfiguration>.Get();
|
var configuration = Service<DalamudConfiguration>.Get();
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace Dalamud.Game.Gui.Dtr
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class representing an entry in the server info bar.
|
/// Class representing an entry in the server info bar.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public unsafe class DtrBarEntry : IDisposable
|
public sealed unsafe class DtrBarEntry : IDisposable
|
||||||
{
|
{
|
||||||
private bool shownBacking = true;
|
private bool shownBacking = true;
|
||||||
private SeString? textBacking = null;
|
private SeString? textBacking = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue