示例#1
0
        public static void ShowAt(UIComponent component)
        {
            if (instance == null)
            {
                instance = UIView.GetAView().AddUIComponent(typeof(UIQuickMenuPopUp)) as UIQuickMenuPopUp;
                instance.relativePosition += new Vector3(-200, -450);

                // UIView.PushModal(instance);
            }
            instance.Show(true);

            // show update notice
            if (!YetAnotherToolbar.instance.shownUpdateNoticeFlag)
            {
                YetAnotherToolbar.instance.shownUpdateNoticeFlag = true;
                // show update notice
                if (!Settings.disableUpdateNotice && (ModInfo.updateNoticeDate > Settings.lastUpdateNotice))
                {
                    UIUpdateNoticePopUp.ShowAt();
                    Settings.lastUpdateNotice = ModInfo.updateNoticeDate;
                    XMLUtils.SaveSettings();
                }
            }
        }