Show / Hide Table of Contents

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
Implements
IBsonSerializable
Namespace: Eco.Gameplay.Systems.NewTooltip
Assembly: Eco.Gameplay.dll
Syntax
public class TooltipSection : Object, IBsonSerializable

Constructors

TooltipSection(LocString)

Declaration
public TooltipSection(LocString content)
Parameters
Type Name Description
LocString content

TooltipSection(LocString, LocString, Boolean, Boolean)

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

AllowLineWrapping

Declaration
public bool AllowLineWrapping { get; }
Property Value
Type Description
System.Boolean

Content

Declaration
public LocString Content { get; }
Property Value
Type Description
LocString

Empty

Declaration
public bool Empty { get; }
Property Value
Type Description
System.Boolean

IsFoldable

Declaration
public bool IsFoldable { get; }
Property Value
Type Description
System.Boolean

Title

Declaration
public LocString Title { get; }
Property Value
Type Description
LocString

Methods

Cast(Object)

Casts value to TooltipSection (if possible).

Declaration
public static TooltipSection Cast(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
TooltipSection

MakeFoldable()

Declaration
public TooltipSection MakeFoldable()
Returns
Type Description
TooltipSection

SectionLoc(String)

Declaration
public static TooltipSection SectionLoc(string content)
Parameters
Type Name Description
System.String content
Returns
Type Description
TooltipSection

SectionLoc(String, String)

Declaration
public static TooltipSection SectionLoc(string title, string content)
Parameters
Type Name Description
System.String title
System.String content
Returns
Type Description
TooltipSection

ToBson()

Declaration
public BSONArray ToBson()
Returns
Type Description
BSONArray

WithLineWrapping()

Declaration
public TooltipSection WithLineWrapping()
Returns
Type Description
TooltipSection

Operators

Explicit(LocString to TooltipSection)

Declaration
public static explicit operator TooltipSection(LocString locStr)
Parameters
Type Name Description
LocString locStr
Returns
Type Description
TooltipSection

Explicit(String to TooltipSection)

Declaration
public static explicit operator TooltipSection(string str)
Parameters
Type Name Description
System.String str
Returns
Type Description
TooltipSection

Implicit(TooltipSection to LocString)

Declaration
public static implicit operator LocString(TooltipSection section)
Parameters
Type Name Description
TooltipSection section
Returns
Type Description
LocString

Implements

IBsonSerializable

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾