示例#1
0
	// ------
	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);
	}
示例#2
0
 public void ClearSelectedUpgradeIcon()
 {
     selectedUpgradeIcon = null;
 }
示例#3
0
 public void SetSelectedUpgradeIcon(UpgradeIcon icon)
 {
     selectedUpgradeIcon = icon;
 }
示例#4
0
 void Awake()
 {
     m_UpgradeIcon = GetComponentInChildren <UpgradeIcon>();
     m_SellIcon    = GetComponentInChildren <SellIcon>();
 }
示例#5
0
 private void Awake()
 {
     _upgradeIcon = GetComponentInChildren <UpgradeIcon>();
     _sellIcon    = GetComponentInChildren <SellIcon>();
 }