// ------ protected override void OnViewInit() { base.OnViewInit(); m_Caption_Label = GuiBaseUtils.PrepareLabel(Layout, "Caption_Label"); m_Value_Label = GuiBaseUtils.PrepareLabel(Layout, "Value_Label"); m_AcceptButton = GuiBaseUtils.GetControl<GUIBase_Button>(Layout, "Accept_Button"); m_BigThumbnail = GuiBaseUtils.PrepareSprite(Layout, "BigThumbnail"); GuiBaseUtils.RegisterButtonDelegate(Layout, "Back_Button", null, OnCloseButton); GuiBaseUtils.RegisterButtonDelegate(Layout, "Accept_Button", null, OnAcceptButton); m_Cost = new GuiShopFunds(GuiBaseUtils.PrepareSprite(Layout, "Cost_Sprite")); m_UpgradeIcon = ResearchSupport.Instance.GetNewUpgradeIcon(); m_UpgradeIcon.Relink(m_BigThumbnail.Widget); }
public void ClearSelectedUpgradeIcon() { selectedUpgradeIcon = null; }
public void SetSelectedUpgradeIcon(UpgradeIcon icon) { selectedUpgradeIcon = icon; }
void Awake() { m_UpgradeIcon = GetComponentInChildren <UpgradeIcon>(); m_SellIcon = GetComponentInChildren <SellIcon>(); }
private void Awake() { _upgradeIcon = GetComponentInChildren <UpgradeIcon>(); _sellIcon = GetComponentInChildren <SellIcon>(); }