예제 #1
0
    // ------
    protected override void OnViewInit()
    {
        base.OnViewInit();

        m_AcceptButton = GuiBaseUtils.GetButton(Layout, "Accept_Button");
        GuiBaseUtils.RegisterButtonDelegate(Layout, "Back_Button", null, OnCloseButton);
        GuiBaseUtils.RegisterButtonDelegate(Layout, "Accept_Button", null, OnAcceptButton);
        m_CostWidgets = new GuiShopFunds(GuiBaseUtils.PrepareSprite(Layout, "Cost_Sprite"));
    }
예제 #2
0
    // ------
    protected override void OnViewInit()
    {
        base.OnViewInit();

        m_Caption_Label = GuiBaseUtils.PrepareLabel(Layout, "Caption_Label");
        m_BigThumbnail  = GuiBaseUtils.PrepareSprite(Layout, "BigThumbnail");
        GuiBaseUtils.RegisterButtonDelegate(Layout, "Back_Button", null, OnCloseButton);
        GuiBaseUtils.RegisterButtonDelegate(Layout, "Accept_Button", null, OnAcceptButton);
        //m_Sale_Label	= GuiBaseUtils.PrepareLabel(Layout, "Sale_Label");
        m_Cost = new GuiShopFunds(GuiBaseUtils.PrepareSprite(Layout, "Cost_Sprite"));
    }
예제 #3
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);
	}
예제 #4
0
    protected override void OnViewInit()
    {
        GUIBase_Pivot pivot = MFGuiManager.Instance.GetPivot("ShopPopups");

        m_ScreenLayout = pivot.GetLayout("Buy_Layout");

        base.OnViewInit();

        m_Caption_Label = GuiBaseUtils.PrepareLabel(m_ScreenLayout, "Caption_Label");
        GuiBaseUtils.RegisterButtonDelegate(m_ScreenLayout, "Back_Button", null, OnCloseButton);
        GuiBaseUtils.RegisterButtonDelegate(m_ScreenLayout, "Accept_Button", null, OnAcceptButton);
        m_SaleRoot   = GetWidget("SaleRoot");
        m_Sale_Label = GuiBaseUtils.PrepareLabel(m_ScreenLayout, "Sale_Label");
        m_Cost       = new GuiShopFunds(GuiBaseUtils.PrepareSprite(m_ScreenLayout, "Cost_Sprite"));
    }
예제 #5
0
    public void InitGui()
    {
        GUIBase_Pivot pivot = MFGuiManager.Instance.GetPivot("EquipMenu");

        m_Layout       = pivot.GetLayout("Main_Layout");
        m_Equip_Button = GuiBaseUtils.RegisterButtonDelegate(m_Layout, "Equip_Button", null, OnEquipButton);
        m_Equip_Label  = GuiBaseUtils.PrepareLabel(m_Layout, "Equip_Label");

        m_Buy_Button = GuiBaseUtils.RegisterButtonDelegate(m_Layout, "Buy_Button", null, OnBuyButton);
        m_Cost       = new GuiShopFunds(GuiBaseUtils.PrepareSprite(m_Layout, "Cost_Sprite"));

        m_ItemScroller.InitGui();
        m_ItemScroller.RegisterOnSelectionDelegate(OnSelectionChange);

        m_IsInitialized = true;
    }
예제 #6
0
    public void InitGui(GUIBase_Layout Layout)
    {
        m_Layout = Layout;

        m_NameLabel = GuiBaseUtils.PrepareLabel(Layout, NAME_LABEL);
        //m_PictureSprite		= GuiBaseUtils.PrepareSprite(Layout, PICTURE_SPRITE);
        m_Cost           = new GuiShopFunds(GuiBaseUtils.PrepareSprite(Layout, COST_SPRITE));
        m_CostBeforeSale = GuiBaseUtils.PrepareLabel(Layout, COST_BEFORE_SALE);

        m_DescArea       = GuiBaseUtils.PrepareTextArea(Layout, DESCR_LABEL);
        m_OwnedSprite    = GuiBaseUtils.PrepareSprite(Layout, OWNED_SPRITE);
        m_Sale           = GuiBaseUtils.FindLayoutWidget <GUIBase_Widget>(Layout, WIDGET_SALE);
        m_SaleLabel      = GuiBaseUtils.PrepareLabel(Layout, SALE_LABEL);
        m_SpecInfoLabel  = GuiBaseUtils.PrepareLabel(Layout, SPEC_INFO_LABEL);
        m_IAP_Widget     = GuiBaseUtils.FindLayoutWidget <GUIBase_Widget>(Layout, WIDGET_IAP);
        m_IAP_Cost_Label = GuiBaseUtils.PrepareLabel(Layout, IAP_COST);
    }