Example #1
0
    // === Scripted events ===
    IEnumerator FirstTimePopup()
    {
        PopupEvent p = new PopupEvent(new Rect(Screen.width*.15f, 300, Screen.width*.7f, 400), "Welcome to "+appName+"!", "Begin by exploring the toolbox of useful daily metrics. If you see a that metric that looks useful to you, tap to add it to your checklist.\n\nThe checklist is your custom list of daily reminders. Add anything you want to it – but we recommend starting with the basics. You'll unlock more tools as you level up.");
        yield return StartCoroutine(eventProcessor.DoProcessUI(p));

        ExplainLevelsPopup();
    }
Example #2
0
        public void AddPopupWindow(Control _TargetControl, Control _PopupControl, PopupEvent _PStyle,WindowStyle _WStyle, int _width, int _height,bool _ismouseclickhide)
        {
            PopupContent popup = new PopupContent();
            popup.TargetControl = _TargetControl;
            popup.PopupControl = _PopupControl;
            popup.PType = PopupType.Window;
            popup.PStyle = _PStyle;
            popup.WStyle = _WStyle;
            popup.Width = _width;
            popup.Height = _height;
            popup.IsMCHide = _ismouseclickhide;
            popup.WindowTitle = "";

            _PopupControl.Tag = this;

            if (popup.PStyle == PopupEvent.Click)
            {
                _TargetControl.Click += new EventHandler(_TargetControl_Click);
            }
            else if (popup.PStyle == PopupEvent.Mouse)
            {
                _TargetControl.MouseEnter += new EventHandler(_TargetControl_MouseEnter);
                _TargetControl.MouseLeave += new EventHandler(_TargetControl_MouseLeave);
            }
            else
            {

            }

            popupList.Add(popup);

            _PopupControl.Hide();
        }
Example #3
0
 void ExplainLevelsPopup()
 {
     PopupEvent p = new PopupEvent(new Rect(Screen.width*.15f, 300, Screen.width*.7f, 400), "How does leveling work?", "Every day you will be given random quests to explore different parts of "+appName+". Complete these to develop your Pillars of Awesomeness and unlock more functionality. Check the store or the toolbox often to find new features.");
     eventProcessor.ProcessUIEvent(p);
 }