Skip to content

GeneratedScrollPanel

Graydon edited this page Mar 21, 2017 · 7 revisions

public abstract class GeneratedScrollPanel

Base Class: GeneratedPanel

Fields

private UIScrollablePanel m_ScrollablePanel
public UIComponent m_OptionsBar
public UITextureAtlas m_DefaultInfoTooltipAtlas
private string m_Category
protected int m_SelectedIndex
private int m_LastSelectedIndex
private int m_ObjectIndex
protected UIComponent m_PathsOptionPanel
protected UIComponent m_RoadsOptionPanel
protected UIComponent m_ZoningOptionPanel
protected UIComponent m_DistrictOptionPanel
protected UIComponent m_TracksOptionPanel
protected UIComponent m_TunnelsOptionPanel
private static string kPlaceableItemTemplate

Properties

public string category { set; }
public IList<UIComponent> childComponents { get; }
public Service service { get; }
public UIVerticalAlignment buttonsAlignment { get; }
protected UIComponent roadsOptionPanel { get; }
protected UIComponent pathsOptionPanel { get; }
protected UIComponent tracksOptionPanel { get; }
protected UIComponent tunnelsOptionPanel { get; }
protected UIComponent zoningOptionPanel { get; }
protected UIComponent districtOptionPanel { get; }
public int selectedIndex { get; set; }

Constructors

static GeneratedScrollPanel()

Methods

protected bool IsCategoryValid(string target, bool ignore)
public void RefreshPanel()
protected void Awake()
private void ResetTools()
private void SelectByIndex(int value)
protected int ItemsGenericSort(PrefabInfo a, PrefabInfo b)
protected int ItemsTypeSort(PrefabInfo a, PrefabInfo b)
protected int ItemsTypeReverseSort(PrefabInfo a, PrefabInfo b)
protected void OnVisibilityChanged(UIComponent comp, bool isVisible)
protected void OnMouseUp(UIComponent comp, UIMouseEventParameter p)
protected void OnShow()
protected void OnHide()
protected void OnButtonClicked(UIComponent comp)
protected void OnClick(UIComponent comp, UIMouseEventParameter p)
private void ShowSelectedIndex()
protected UIButton SpawnEntry(string name, string tooltip, string thumbnail, UITextureAtlas atlas, UIComponent tooltipBox, bool enabled)
protected UIButton CreateButton(string name, string tooltip, string baseIconName, int index)
protected UIButton CreateButton(string name, string tooltip, string baseIconName, int index, UIComponent tooltipBox)
protected UIButton CreateButton(string name, string tooltip, string baseIconName, int index, UITextureAtlas atlas, UIComponent tooltipBox, bool enabled)
private void Update()
private void UpdateNoMoneyOrAlreadyPlacedNotification()
protected void Start()
protected bool IsPlacementRelevant(NetInfo info)
protected bool IsPlacementRelevant(BuildingInfo info)
protected bool IsPlacementRelevant(TransportInfo info)
protected bool IsPlacementRelevant(TreeInfo info)
protected bool IsPlacementRelevant(PropInfo info)
protected bool IsServiceValid(PrefabInfo info)
protected bool IsServiceValid(BuildingInfo info)
protected bool IsServiceValid(NetInfo info)
protected bool IsServiceValid(PropInfo info)
protected bool IsServiceValid(TreeInfo info)
protected bool IsServiceValid(TransportInfo info)
private bool FilterWonders(AssetFilter filter, BuildingInfo info)
private PoolList<PrefabInfo> CollectAssets(AssetFilter filter, Comparison<PrefabInfo> comparison, bool ignoreCategories)
private void CreateAssetItem(PrefabInfo info)
public void PopulateAssets()
public void PopulateAssets(AssetFilter filter)
public void PopulateAssets(AssetFilter filter, Comparison<PrefabInfo> comparison)
public void PopulateAssets(AssetFilter filter, Comparison<PrefabInfo> comparison, bool ignoreCategories)
public void OnTooltipEnter(UIComponent comp, UIMouseEventParameter p)
public void OnTooltipHover(UIComponent comp, UIMouseEventParameter p)

Clone this wiki locally