Esempio n. 1
0
    void Start()
    {
        //FoundationオブジェクトからGameObject類を取得する
        for (int i = 0; i < 6; i++)
        {
            Transform _ft = Foundation[i].transform;

            Name[i]         = _ft.GetChild(0).gameObject;
            HighScore[i]    = _ft.GetChild(1).gameObject;
            PlayTime[i]     = _ft.GetChild(2).gameObject;
            CharaConfirm[i] = _ft.GetChild(3).gameObject;

            charaName[i]      = Name[i].GetComponent <CharaName>();
            charaHighScore[i] = HighScore[i].GetComponent <CharaHighScore>();
            charaPlayTime[i]  = PlayTime[i].GetComponent <CharaPlayTime>();
            charaConfirm[i]   = CharaConfirm[i].GetComponent <CharaConfirm>();
        }

        charaPageNext     = CharaNextPage.GetComponent <CharaPageNext>();
        charaPagePrevious = CharaPreviousPage.GetComponent <CharaPagePrevious>();
        nowPage           = NowPage.GetComponent <NowPage>();

        //ページャーのインスタンスを取得する
        CharaPager pager = CharaPager.Instance;

        //ページを1ページ目にしておく。
        pager.CurrentPageNumber = 0;

        //ページャーが更新されたらPagerUpatedが読まれるようにする
        m_Unsubscriber = pager.Subscribe(PagerUpdated);

        //キャラクターリストを描画
        DrawCharacterList();
    }
Esempio n. 2
0
 private void ExecuteDeleteUICommand(BookUI parameter)
 {
     if (MessageBox.Show("정말 이 영역을 지우시겠습니까?", "Memories", MessageBoxButton.YesNo, MessageBoxImage.Warning)
         == MessageBoxResult.Yes)
     {
         NowPage.PageControls.Remove(parameter);
         PageControls = NowPage.ToUIElementCollection();
     }
 }
Esempio n. 3
0
        private void ExecuteDrawEndCommand(Rectangle rect)
        {
            _newUI.GetPropertyFromRectangle(rect);
            NowPage.PageControls.Add(_newUI);
            PageControls = NowPage.ToUIElementCollection();
            _newUI       = null;

            _eventAggregator.GetEvent <DrawControlEndedEvent>().Publish();
        }
 public MusicListView(List <Music> data, MainWindow m, NowPage n)
 {
     InitializeComponent();
     mw      = m;
     np      = n;
     Loaded += delegate {
         CreatItems(data);
     };
 }
Esempio n. 5
0
        private void NowPageChanged()
        {
            _eventAggregator.GetEvent <RichTextBoxSelectedEvent>().Publish(null);

            if (NowPage == null)
            {
                IsEditPage   = false;
                Background   = null;
                PageControls = null;
            }
            else
            {
                IsEditPage   = true;
                Background   = NowPage.Background;
                PageControls = NowPage.ToUIElementCollection();
                IsDraw       = false;
                _newUI       = null;
            }
        }