Class TooltipSection
A single section for a tooltip that contains a title and some content, can be wrapped by line or foldable.
Inheritance
System.Object
TooltipSection
Assembly: Eco.Gameplay.dll
public class TooltipSection : Object, IBsonSerializable
Constructors
Declaration
public TooltipSection(LocString content)
Parameters
Declaration
public TooltipSection(LocString title, LocString content, bool allowLineWrapping = false, bool isFoldable = false)
Parameters
Type |
Name |
Description |
LocString |
title |
|
LocString |
content |
|
System.Boolean |
allowLineWrapping |
|
System.Boolean |
isFoldable |
|
Properties
Declaration
public bool AllowLineWrapping { get; }
Property Value
Type |
Description |
System.Boolean |
|
Content
Declaration
public LocString Content { get; }
Property Value
Declaration
public bool Empty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsFoldable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public LocString Title { get; }
Property Value
Methods
Declaration
public static TooltipSection Cast(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Declaration
public TooltipSection MakeFoldable()
Returns
Declaration
public static TooltipSection SectionLoc(string content)
Parameters
Type |
Name |
Description |
System.String |
content |
|
Returns
Declaration
public static TooltipSection SectionLoc(string title, string content)
Parameters
Type |
Name |
Description |
System.String |
title |
|
System.String |
content |
|
Returns
Declaration
public BSONArray ToBson()
Returns
Declaration
public TooltipSection WithLineWrapping()
Returns
Operators
Declaration
public static explicit operator TooltipSection(LocString locStr)
Parameters
Returns
Declaration
public static explicit operator TooltipSection(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
Declaration
public static implicit operator LocString(TooltipSection section)
Parameters
Returns
Implements
Extension Methods