Skip to content

Game.UI.Editor.ItemPicker`1

Assembly: Game
Namespace: Game.UI.Editor

Type: class public

Base: Game.UI.Widgets.Widget
Implements: Game.UI.Widgets.IWidget, Colossal.UI.Binding.IJsonWritable, Game.UI.Widgets.IVisibleWidget, Game.UI.Widgets.IDisableCallback, Game.UI.Editor.IItemPicker

Code

public class ItemPicker<T> : Game.UI.Widgets.Widget, Game.UI.Widgets.IWidget, Colossal.UI.Binding.IJsonWritable, Game.UI.Widgets.IVisibleWidget, Game.UI.Widgets.IDisableCallback, Game.UI.Editor.IItemPicker
{
    private System.Int32 m_Length;
    private System.Int32 m_SelectedIndex;
    private System.Int32 m_ColumnCount;
    private System.Int32 m_StartIndex;
    private System.Collections.Generic.List<T> m_VisibleItems;
    private Game.UI.Editor.ItemPicker<T> <adapter>k__BackingField;
    private Game.UI.Widgets.FlexLayout <flex>k__BackingField;
    private System.Boolean <hasImages>k__BackingField;
    private System.Boolean <hasFavorites>k__BackingField;
    private System.Int32 <visibleStartIndex>k__BackingField;
    private System.Int32 <visibleEndIndex>k__BackingField;
    private System.Boolean <selectOnFocus>k__BackingField;

    public Game.UI.Editor.ItemPicker<T> adapter { get; set; }
    public Game.UI.Widgets.FlexLayout flex { get; set; }
    public System.Int32 selectedIndex { get; set; }
    public System.Boolean hasImages { get; set; }
    public System.Boolean hasFavorites { get; set; }
    public System.Int32 visibleStartIndex { get; set; }
    public System.Int32 visibleEndIndex { get; set; }
    public System.Boolean selectOnFocus { get; set; }
    public System.String propertiesTypeName { get; }

    public ItemPicker`1();

    public System.Void SetFavorite(System.Int32 index, System.Boolean favorite);
    protected virtual Game.UI.Widgets.WidgetChanges Update();
    protected virtual System.Void WriteProperties(Colossal.UI.Binding.IJsonWriter writer);
}

Fields

  • private System.Int32 m_Length
private System.Int32 m_Length;
  • private System.Int32 m_SelectedIndex
private System.Int32 m_SelectedIndex;
  • private System.Int32 m_ColumnCount
private System.Int32 m_ColumnCount;
  • private System.Int32 m_StartIndex
private System.Int32 m_StartIndex;
  • private System.Collections.Generic.List<T> m_VisibleItems
private System.Collections.Generic.List<T> m_VisibleItems;
  • private Game.UI.Editor.ItemPicker<T> <adapter>k__BackingField
private Game.UI.Editor.ItemPicker<T> <adapter>k__BackingField;
  • private Game.UI.Widgets.FlexLayout <flex>k__BackingField
private Game.UI.Widgets.FlexLayout <flex>k__BackingField;
  • private System.Boolean <hasImages>k__BackingField
private System.Boolean <hasImages>k__BackingField;
  • private System.Boolean <hasFavorites>k__BackingField
private System.Boolean <hasFavorites>k__BackingField;
  • private System.Int32 <visibleStartIndex>k__BackingField
private System.Int32 <visibleStartIndex>k__BackingField;
  • private System.Int32 <visibleEndIndex>k__BackingField
private System.Int32 <visibleEndIndex>k__BackingField;
  • private System.Boolean <selectOnFocus>k__BackingField
private System.Boolean <selectOnFocus>k__BackingField;

Properties

  • public Game.UI.Editor.ItemPicker<T> adapter { get; set }
public Game.UI.Editor.ItemPicker<T> adapter { get; set; }
  • public Game.UI.Widgets.FlexLayout flex { get; set }
public Game.UI.Widgets.FlexLayout flex { get; set; }
  • public System.Int32 selectedIndex { get; set }
public System.Int32 selectedIndex { get; set; }
  • public System.Boolean hasImages { get; set }
public System.Boolean hasImages { get; set; }
  • public System.Boolean hasFavorites { get; set }
public System.Boolean hasFavorites { get; set; }
  • public System.Int32 visibleStartIndex { get; set }
public System.Int32 visibleStartIndex { get; set; }
  • public System.Int32 visibleEndIndex { get; set }
public System.Int32 visibleEndIndex { get; set; }
  • public System.Boolean selectOnFocus { get; set }
public System.Boolean selectOnFocus { get; set; }
  • public System.String propertiesTypeName { get }
public System.String propertiesTypeName { get; }

Constructors

  • public ItemPicker1()`
public ItemPicker`1();

Methods

  • public SetFavorite(System.Int32 index, System.Boolean favorite) : System.Void
public System.Void SetFavorite(System.Int32 index, System.Boolean favorite);
  • protected virtual Update() : Game.UI.Widgets.WidgetChanges
protected virtual Game.UI.Widgets.WidgetChanges Update();
  • protected virtual WriteProperties(Colossal.UI.Binding.IJsonWriter writer) : System.Void
protected virtual System.Void WriteProperties(Colossal.UI.Binding.IJsonWriter writer);

Nested types

  • Game.UI.Editor.ItemPicker<T>