Class TooltipUtil
Inheritance
System.Object
TooltipUtil
Assembly: Eco.Gameplay.dll
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
Declaration
public static LocString ListOrSingleLine(this IEnumerable<LocString> strings)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<LocString> |
strings |
|
Returns
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
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
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
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
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
Declaration
public static TooltipSection MakeTooltipSectionFoldOut(LocString title, IEnumerable<LocString> items, LocString nounSingular, TooltipOrigin origin)
Parameters
Returns
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
Declaration
public static TooltipSection MakeTooltipSectionNewlineList(LocString title, IEnumerable<LocString> items)
Parameters
Type |
Name |
Description |
LocString |
title |
|
System.Collections.Generic.IEnumerable<LocString> |
items |
|
Returns
Declaration
public static string People(int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
Returns
Type |
Description |
System.String |
|