예제 #1
0
        public virtual void Initialize(GUIBase_Layout layout, string rootName, float fadeInTime, float fadeOutTime)
        {
            m_Root           = GuiBaseUtils.FindLayoutWidget <GUIBase_Widget>(layout, rootName);
            m_Root.FadeAlpha = Alpha;

            m_FadeInTime  = fadeInTime;
            m_FadeOutTime = fadeOutTime;
        }
예제 #2
0
    // GUIOVERLAY INTERFACE

    protected override void OnViewInit()
    {
        m_Label       = GuiBaseUtils.FindLayoutWidget <GUIBase_Label>(Layout, "GUIBase_Label");
        m_VersionInfo = GuiBaseUtils.FindLayoutWidget <GUIBase_Label>(Layout, "Version_Label");

        m_DefaultMessage = m_Label.GetText();

        // anchor news bar to the bottom of the screen
        Transform trans    = Layout.transform;
        Vector3   position = trans.position;

        position.y     = Screen.height - Layout.PlatformSize.y * Layout.LayoutScale.y;
        trans.position = position;
    }
예제 #3
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);
    }