Show / Hide Table of Contents

Class SearchAndSelectItem

Inheritance
System.Object
SearchAndSelectItem
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Items.SearchAndSelect
Assembly: Eco.Gameplay.dll
Syntax
public class SearchAndSelectItem : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged

Constructors

SearchAndSelectItem()

Declaration
public SearchAndSelectItem()

SearchAndSelectItem(String, String, Boolean)

Declaration
public SearchAndSelectItem(string searchTag, string searchTitle, bool limitQuantityTo1)
Parameters
Type Name Description
System.String searchTag
System.String searchTitle
System.Boolean limitQuantityTo1

Properties

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

Item

Declaration
[NewTooltipChildren]
public Item Item { get; }
Property Value
Type Description
Item

LimitQuantityTo1

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

OnSelectionChanged

Declaration
public ThreadSafeAction OnSelectionChanged { get; }
Property Value
Type Description
ThreadSafeAction

SearchTag

Declaration
public string SearchTag { get; }
Property Value
Type Description
System.String

SearchTitle

Declaration
public string SearchTitle { get; set; }
Property Value
Type Description
System.String

Stack

Declaration
public ItemStack Stack { get; set; }
Property Value
Type Description
ItemStack

Methods

OnClick(Player)

Declaration
public void OnClick(Player player)
Parameters
Type Name Description
Player player

ReplaceStack(Player, Int32, Int32)

Declaration
public void ReplaceStack(Player player, int itemTypeID, int count)
Parameters
Type Name Description
Player player
System.Int32 itemTypeID
System.Int32 count

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged

Extension Methods

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