Class TypeTooltipExtensions
Inheritance
System.Object
TypeTooltipExtensions
Namespace: Eco.Gameplay.Systems.TextLinks
Assembly: Eco.Gameplay.dll
Syntax
public static class TypeTooltipExtensions : Object
Methods
UILink(Type, Int32, Nullable<LocString>)
Generates a UILink for target type.
Declaration
public static LocString UILink(this Type type, int controllerID = -1, Nullable<LocString> displayText = null)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Int32 | controllerID | |
System.Nullable<LocString> | displayText |
Returns
Type | Description |
---|---|
LocString |
Remarks
Assign the ID of the controller if linking an object of the type, or leave empty if linking the type itself.
UILinkGeneric(Object)
Generates a UILink for target object.
Declaration
public static LocString UILinkGeneric(this object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
LocString |
Remarks
Automatically determines the way it should be linked based on its type and implemented interfaces.