Esempio n. 1
0
    /// <summary>
    /// ページボタンが押された
    /// </summary>
    /// <param name="point"></param>
    void OnClickPagePoint(PagePointListItemContext point)
    {
        int index = Points.IndexOf(point);

        if (index != m_CurrentIndex)
        {
            ChangeForm(index);
        }
    }
Esempio n. 2
0
    public void SetFormDatas(List <HeroFormListContext> datas, int index)
    {
        FormDatas      = datas;
        m_CurrentIndex = index;
        // ページコントロールの設定
        List <PagePointListItemContext> points = new List <PagePointListItemContext>();

        for (int i = 0; i < datas.Count; ++i)
        {
            var model = new ListItemModel((uint)i);
            PagePointListItemContext point = new PagePointListItemContext(model);
            point.IsSelect = (i == m_CurrentIndex);
            points.Add(point);

            model.OnClicked += () =>
            {
                OnClickPagePoint(point);
            };
        }
        Points = points;

        SetUpButtons();
    }