Show / Hide Table of Contents

Class TooltipUtil

Inheritance
System.Object
TooltipUtil
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public static class TooltipUtil : Object

Methods

AppendList(StringBuilder, LocString, IEnumerable<ILinkable>, Boolean, Boolean)

Declaration
public static StringBuilder AppendList(this StringBuilder s, LocString title, IEnumerable<ILinkable> list, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Text.StringBuilder s
LocString title
System.Collections.Generic.IEnumerable<ILinkable> list
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
System.Text.StringBuilder

AppendList(StringBuilder, LocString, IEnumerable<LocString>, Boolean, Boolean)

Declaration
public static StringBuilder AppendList(this StringBuilder s, LocString title, IEnumerable<LocString> list, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Text.StringBuilder s
LocString title
System.Collections.Generic.IEnumerable<LocString> list
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
System.Text.StringBuilder

AppendList(StringBuilder, LocString, IEnumerable<String>, Boolean, Boolean)

Declaration
public static StringBuilder AppendList(this StringBuilder s, LocString title, IEnumerable<string> list, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Text.StringBuilder s
LocString title
System.Collections.Generic.IEnumerable<System.String> list
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
System.Text.StringBuilder

AppendListLoc(StringBuilder, FormattableString, IEnumerable<ILinkable>, Boolean, Boolean)

Declaration
public static StringBuilder AppendListLoc(this StringBuilder s, FormattableString title, IEnumerable<ILinkable> list, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Text.StringBuilder s
System.FormattableString title
System.Collections.Generic.IEnumerable<ILinkable> list
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
System.Text.StringBuilder

AppendListLoc(StringBuilder, FormattableString, IEnumerable<String>, Boolean, Boolean)

Declaration
public static StringBuilder AppendListLoc(this StringBuilder s, FormattableString title, IEnumerable<string> list, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Text.StringBuilder s
System.FormattableString title
System.Collections.Generic.IEnumerable<System.String> list
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
System.Text.StringBuilder

CommaList(IEnumerable<ILinkable>)

Declaration
public static LocString CommaList(this IEnumerable<ILinkable> phrases)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ILinkable> phrases
Returns
Type Description
LocString

ListOrSingleLine(IEnumerable<LocString>)

Declaration
public static LocString ListOrSingleLine(this IEnumerable<LocString> strings)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<LocString> strings
Returns
Type Description
LocString

MakeInlineFoldoutListLoc(IEnumerable<ILinkable>, LocString, Boolean, Boolean)

Declaration
public static LocString MakeInlineFoldoutListLoc(this IEnumerable<ILinkable> list, LocString title, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ILinkable> list
LocString title
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
LocString

MakeList(IEnumerable<LocString>, LocString, Boolean, Boolean)

Declaration
public static LocString MakeList(this IEnumerable<LocString> strings, LocString title, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<LocString> strings
LocString title
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
LocString

MakeListLoc(IEnumerable<ILinkable>, FormattableString, Boolean, Boolean)

Declaration
public static LocString MakeListLoc(this IEnumerable<ILinkable> strings, FormattableString title, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ILinkable> strings
System.FormattableString title
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
LocString

MakeListLoc(IEnumerable<LocString>, FormattableString, Boolean, Boolean)

Declaration
public static LocString MakeListLoc(this IEnumerable<LocString> strings, FormattableString title, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<LocString> strings
System.FormattableString title
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
LocString

MakeListLoc(IEnumerable<String>, FormattableString, Boolean, Boolean)

Declaration
public static LocString MakeListLoc(this IEnumerable<string> strings, FormattableString title, bool showEmptyLists = true, bool appendNewLine = true)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> strings
System.FormattableString title
System.Boolean showEmptyLists
System.Boolean appendNewLine
Returns
Type Description
LocString

MakeTooltipSectionFoldOut(LocString, IEnumerable<LocString>, LocString, TooltipOrigin)

Declaration
public static TooltipSection MakeTooltipSectionFoldOut(LocString title, IEnumerable<LocString> items, LocString nounSingular, TooltipOrigin origin)
Parameters
Type Name Description
LocString title
System.Collections.Generic.IEnumerable<LocString> items
LocString nounSingular
TooltipOrigin origin
Returns
Type Description
TooltipSection

MakeTooltipSectionLoc(IEnumerable<ILinkable>, FormattableString)

Declaration
public static TooltipSection MakeTooltipSectionLoc(this IEnumerable<ILinkable> strings, FormattableString title)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ILinkable> strings
System.FormattableString title
Returns
Type Description
TooltipSection

MakeTooltipSectionNewlineList(LocString, IEnumerable<LocString>)

Declaration
public static TooltipSection MakeTooltipSectionNewlineList(LocString title, IEnumerable<LocString> items)
Parameters
Type Name Description
LocString title
System.Collections.Generic.IEnumerable<LocString> items
Returns
Type Description
TooltipSection

People(Int32)

Declaration
public static string People(int count)
Parameters
Type Name Description
System.Int32 count
Returns
Type Description
System.String
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾