Show / Hide Table of Contents

Class PlayerPopups

Inheritance
System.Object
PlayerPopups
Namespace: Eco.Gameplay.UI
Assembly: Eco.Gameplay.dll
Syntax
public static class PlayerPopups : Object

Methods

ConfirmBox(Player, LocString)

Declaration
public static Task<bool> ConfirmBox(this Player player, LocString message)
Parameters
Type Name Description
Player player
LocString message
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

ConfirmBoxLoc(Player, FormattableString)

Declaration
public static Task<bool> ConfirmBoxLoc(this Player player, FormattableString message)
Parameters
Type Name Description
Player player
System.FormattableString message
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Error(Player, LocString)

Declaration
public static void Error(this Player player, LocString message)
Parameters
Type Name Description
Player player
LocString message

ErrorLoc(Player, FormattableString)

Declaration
public static void ErrorLoc(this Player player, FormattableString message)
Parameters
Type Name Description
Player player
System.FormattableString message

ErrorLocStr(Player, String)

Declaration
public static void ErrorLocStr(this Player player, string message)
Parameters
Type Name Description
Player player
System.String message

InfoBox(Player, LocString)

Declaration
public static void InfoBox(this Player player, LocString message)
Parameters
Type Name Description
Player player
LocString message

InfoBoxLoc(Player, FormattableString)

Declaration
public static void InfoBoxLoc(this Player player, FormattableString message)
Parameters
Type Name Description
Player player
System.FormattableString message

InfoBoxLocStr(Player, String)

Declaration
public static void InfoBoxLocStr(this Player player, string message)
Parameters
Type Name Description
Player player
System.String message

Msg(Player, LocString, NotificationStyle)

Declaration
public static void Msg(this Player player, LocString message, NotificationStyle style)
Parameters
Type Name Description
Player player
LocString message
NotificationStyle style

MsgLoc(Player, FormattableString, NotificationStyle)

Declaration
public static void MsgLoc(this Player player, FormattableString message, NotificationStyle style)
Parameters
Type Name Description
Player player
System.FormattableString message
NotificationStyle style

MsgLocStr(Player, String, NotificationStyle)

Declaration
public static void MsgLocStr(this Player player, string message, NotificationStyle style)
Parameters
Type Name Description
Player player
System.String message
NotificationStyle style

OkBox(Player, LocString)

Declaration
public static void OkBox(this Player player, LocString message)
Parameters
Type Name Description
Player player
LocString message

OkBox(Player, LocString, Boolean)

Declaration
public static Result OkBox(this Player player, LocString message, bool succeeded)
Parameters
Type Name Description
Player player
LocString message
System.Boolean succeeded
Returns
Type Description
Result

OkBoxAwaitable(Player, LocString)

Declaration
public static Task<bool> OkBoxAwaitable(this Player player, LocString message)
Parameters
Type Name Description
Player player
LocString message
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

OkBoxAwaitableLoc(Player, FormattableString)

Declaration
public static Task<bool> OkBoxAwaitableLoc(this Player player, FormattableString message)
Parameters
Type Name Description
Player player
System.FormattableString message
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

OkBoxLoc(Player, FormattableString)

Declaration
public static void OkBoxLoc(this Player player, FormattableString message)
Parameters
Type Name Description
Player player
System.FormattableString message

OkBoxLoc(Player, FormattableString, Boolean)

Declaration
public static Result OkBoxLoc(this Player player, FormattableString message, bool succeeded)
Parameters
Type Name Description
Player player
System.FormattableString message
System.Boolean succeeded
Returns
Type Description
Result

OptionBox(Player, LocString, List<String>)

Shows a dialog with a dropdown.

Declaration
public static Task<int> OptionBox(this Player player, LocString message, List<string> options)
Parameters
Type Name Description
Player player
LocString message

The text to be shown.

System.Collections.Generic.List<System.String> options

Options to be added to the dropdown.

Returns
Type Description
System.Threading.Tasks.Task<System.Int32>

Index of the selected item. -1 if the player cancells the dialog.

PopupSelectFromIndexedOptions(Player, LocString, LocString, LocString, PlayerPopups.NamedSelection[], MultiSelectorPopUpFlags)

Declaration
public static Task<List<object>> PopupSelectFromIndexedOptions(this Player player, LocString title, LocString entryName, LocString entryNamePlural, PlayerPopups.NamedSelection[] options, MultiSelectorPopUpFlags flags)
Parameters
Type Name Description
Player player
LocString title
LocString entryName
LocString entryNamePlural
PlayerPopups.NamedSelection[] options
MultiSelectorPopUpFlags flags
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.List<System.Object>>

PopupSelectFromOptions(Player, LocString, LocString, LocString, IEnumerable<INamed>, IEnumerable<INamed>, MultiSelectorPopUpFlags, Nullable<LocString>)

Declaration
public static Task<List<INamed>> PopupSelectFromOptions(this Player player, LocString title, LocString entryName, LocString entryNamePlural, IEnumerable<INamed> options, IEnumerable<INamed> existingSet, MultiSelectorPopUpFlags flags, Nullable<LocString> subtitle = null)
Parameters
Type Name Description
Player player
LocString title
LocString entryName
LocString entryNamePlural
System.Collections.Generic.IEnumerable<INamed> options
System.Collections.Generic.IEnumerable<INamed> existingSet
MultiSelectorPopUpFlags flags
System.Nullable<LocString> subtitle
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.List<INamed>>

PopupSelectSelectDerivedInstances(Player, LocString, LocString, LocString, Type, IEnumerable<INamed>, Action<List<INamed>>, MultiSelectorPopUpFlags)

Declaration
public static void PopupSelectSelectDerivedInstances(this Player player, LocString title, LocString entryName, LocString entryNamePlural, Type baseType, IEnumerable<INamed> existingSet, Action<List<INamed>> callback, MultiSelectorPopUpFlags flags)
Parameters
Type Name Description
Player player
LocString title
LocString entryName
LocString entryNamePlural
System.Type baseType
System.Collections.Generic.IEnumerable<INamed> existingSet
System.Action<System.Collections.Generic.List<INamed>> callback
MultiSelectorPopUpFlags flags

PopupTypePicker(Player, LocString, Type, Action<List<Type>>)

Declaration
public static void PopupTypePicker(this Player player, LocString title, Type type, Action<List<Type>> callback)
Parameters
Type Name Description
Player player
LocString title
System.Type type
System.Action<System.Collections.Generic.List<System.Type>> callback
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾