Show / Hide Table of Contents

Class VerbCategory

Contains combined name and icon information for a verb category.

Inheritance
System.Object
VerbCategory
Namespace: Content.Shared.Verbs
Assembly: Content.Shared.dll
Syntax
public sealed class VerbCategory : object

Constructors

| Improve this Doc View Source

VerbCategory(String, Nullable<String>, Boolean)

Declaration
public VerbCategory(string text, string? icon, bool iconsOnly = false)
Parameters
Type Name Description
System.String text
System.Nullable<System.String> icon
System.Boolean iconsOnly

Fields

| Improve this Doc View Source

VerbCategory

Declaration
public static readonly VerbCategory
Field Value
Type Description
VerbCategory
| Improve this Doc View Source

VerbCategory

Declaration
public static readonly VerbCategory
Field Value
Type Description
VerbCategory
| Improve this Doc View Source

Admin

Declaration
public static readonly VerbCategory Admin
Field Value
Type Description
VerbCategory
| Improve this Doc View Source

Antag

Declaration
public static readonly VerbCategory Antag
Field Value
Type Description
VerbCategory
| Improve this Doc View Source

Columns

Columns for the grid layout that shows the verbs in this category. If IconsOnly is false, this should very likely be set to 1.

Declaration
public int Columns
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Icon

Declaration
public readonly SpriteSpecifier Icon
Field Value
Type Description
Robust.Shared.Utility.SpriteSpecifier
| Improve this Doc View Source

iconsOnly

Declaration
public static readonly VerbCategory iconsOnly
Field Value
Type Description
VerbCategory
| Improve this Doc View Source

IconsOnly

If true, the members of this verb category will be shown in the context menu as a row of icons without any text.

Declaration
public readonly bool IconsOnly
Field Value
Type Description
System.Boolean
Remarks

For example, the 'Rotate' category simply shows two icons for rotating left and right.

| Improve this Doc View Source

Text

Declaration
public readonly string Text
Field Value
Type Description
System.String
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾