Пример #1
0
    private void SetSelectTask()
    {
        buttonsTF.gameObject.SetActive(true);
        actionBtn.gameObject.SetActive(false);
        taskImg.gameObject.SetActive(false);
        missionTF.anchorMin = new Vector2(0, 0.65f);

        selectPool.resetAllTarget();
        List <SelectItem> selects = questItem.selectList;

        foreach (SelectItem item in selects)
        {
            UISelectItem cell = selectPool.getIdleTarget <UISelectItem>();
            cell.SetData(item);
        }
    }
    public void Show(string title, List <string> options, CommonSettings.IntCallBack cb)
    {
        Show();
        //UIPanel uiObject = this.GetComponent<UIPanel>();
        //uiObject.alpha = 1;

        callback = cb;

        //清空
        foreach (var item in currentItems)
        {
            Destroy(item.gameObject);
        }
        currentItems.Clear();
        selectPanel.repositionNow = true;
        titleLabel.text           = title;
        int index = 0;

        foreach (var o in options)
        {
            //MultiSelectBoxItem item = new MultiSelectBoxItem(o, index++, Callback);
            //this.selectPanel.Children.Add(item);
            UISelectItem newItem = (UISelectItem)Instantiate(selectItemInstance);
            currentItems.Add(newItem);
            newItem.Index = index++;
            newItem.SetText(o);
            newItem.gameObject.SetActive(true);

            newItem.transform.parent        = selectPanel.transform;
            newItem.transform.localScale    = new Vector3(1, 1, 1);
            newItem.transform.localPosition = new Vector3(0, 0, 0);
        }
        selectPanel.repositionNow = true;

        //gameObject.SetActive (true);
    }
Пример #3
0
 public bool SortItem(int mode) => default;                // 0x00DF9C70-0x00DF9ED0
 private static bool checkLine(UISelectItem s) => default; // 0x00DFA530-0x00DFA540
Пример #4
0
    }                                                          // 0x00DF98C0-0x00DF9910

    public UISelectItem AddItem(UISelectItem item) => default; // 0x00DF9910-0x00DF9980
Пример #5
0
 public int GetColumnCount() => default;                      // 0x00DF9700-0x00DF9710
 public UISelectItem SetItemEx(UISelectItem item) => default; // 0x00DF9710-0x00DF97D0
Пример #6
0
    }                                    // 0x00DFBC10-0x00DFBD20

    public void SetItemDirty(UISelectItem item)
    {
    }                                                  // 0x00DFBD20-0x00DFBE40
Пример #7
0
 public UISelectorBase FindSelector(int itemId) => default;        // 0x00DFAA10-0x00DFAB50
 public UISelectorBase FindSelector(UISelectItem item) => default; // 0x00DFAB50-0x00DFAB60
Пример #8
0
 public void OnClickSelectBtn(UISelectItem btn)
 {
     DoTask(btn.data.id);
 }