private void OnOKBtnHandler()
        {
            int    paraCount    = _paraNameList.Count;
            string valueListStr = "";

            for (int i = 0; i < paraCount;)
            {
                EditParaItem item = _itemList[i];
                if (item.valueText.text == "")
                {
                    valueListStr += "nil";
                }
                else
                {
                    valueListStr += item.valueText.text;
                }
                i++;
                if (i < paraCount)
                {
                    valueListStr += ",";
                }
            }
            _nodeAttr.SetValue(valueListStr);
            Close();
        }
        private void OnStyleItemClickHandler(int itemIndex)
        {
            int styleId = _itemList[itemIndex].enemyId;

            _nodeAttr.SetValue(styleId);
            Close();
        }
Ejemplo n.º 3
0
        private void OnOKBtnHandler()
        {
            string curValue = _radioItemList[_curSelectedIndex].value;

            _nodeAttr.SetValue(curValue);
            Close();
        }
 private void OnOKBtnHandler()
 {
     if (_curSelectedItemIndex != -1)
     {
         _nodeAttr.SetValue(_typeNameList[_curSelectedItemIndex]);
     }
     Close();
 }
Ejemplo n.º 5
0
        private void OnOkBtnClickHandler()
        {
            string msg;
            string curValue = _inputField.text;

            if (_nodeAttr.IsValueAvailable(curValue, out msg))
            {
                _nodeAttr.SetValue(curValue);

                Close();
            }
            else
            {
            }
        }
Ejemplo n.º 6
0
        private void OnOKBtnHandler()
        {
            int         selectedGroups = 0;
            ReboundItem item;

            for (int i = 0; i < _defaultGroups.Count; i++)
            {
                int group = (int)_defaultGroups[i];
                item = _itemDic[(eReboundBorder)group];
                if (item.toggle.isOn)
                {
                    selectedGroups |= group;
                }
            }
            _nodeAttr.SetValue(selectedGroups.ToString());
            Close();
        }
Ejemplo n.º 7
0
        private void OnOKBtnHandler()
        {
            int resistTypes = 0;
            EliminatedTypesItem item;

            for (int i = 0; i < _defaultTypes.Count; i++)
            {
                int type = (int)_defaultTypes[i];
                item = _itemDic[(eEliminatedTypes)type];
                if (item.toggle.isOn)
                {
                    resistTypes |= type;
                }
            }
            _nodeAttr.SetValue(resistTypes.ToString());
            Close();
        }
        private void OnOKBtnHandler()
        {
            int    totalCount   = _itemList.Count;
            string valueStr     = "";
            bool   isFirstCount = true;

            for (int i = 0; i < totalCount; i++)
            {
                EditItem item = _itemList[i];
                if (item.valueText.text != "" && item.valueText.text != "0")
                {
                    if (!isFirstCount)
                    {
                        valueStr += ",";
                    }
                    isFirstCount = false;
                    valueStr    += (int)item.type + "," + item.valueText.text;
                }
            }
            _nodeAttr.SetValue(valueStr);
            Close();
        }
 private void OnOKBtnHandler()
 {
     _nodeAttr.SetValue(_curBulletId);
     Close();
 }