コード例 #1
0
        //----------------------------------------------------------------------
        public void Setup(string _strTitleText, string _strMessageText, string _strCloseButtonCaption, bool _bShowSpinningWheel = false, Action _closeCallback = null)
        {
            TitleLabel.Text = _strTitleText;

            if (_strMessageText != null)
            {
                MessageLabel.Text = _strMessageText;
                ContentGroup.Clear();
                ContentGroup.AddChild(MessageLabel);
            }

            mCloseButton.Text = _strCloseButtonCaption;
            ShowSpinningWheel = _bShowSpinningWheel;

            mActionsGroup.Clear();
            mActionsGroup.AddChild(mCloseButton);
            mCloseCallback = _closeCallback;
        }
コード例 #2
0
        //----------------------------------------------------------------------
        public void Setup(string _strTitleText, string _strMessageText, string _strConfirmButtonCaption, string _strCloseButtonCaption, Action <bool> _confirmCallback = null)
        {
            TitleLabel.Text = _strTitleText;

            if (_strMessageText != null)
            {
                MessageLabel.Text = _strMessageText;
                ContentGroup.Clear();
                ContentGroup.AddChild(MessageLabel);
            }

            mConfirmButton.Text = _strConfirmButtonCaption;
            mCloseButton.Text   = _strCloseButtonCaption;

            mActionsGroup.Clear();
            mActionsGroup.AddChild(mConfirmButton);
            mActionsGroup.AddChild(mCloseButton);

            mConfirmCallback = _confirmCallback;
        }