コード例 #1
0
    // ========================================================================== //

    /* private - Other[Find, Calculate] Func
     * 찾기, 계산 등의 비교적 단순 로직         */

    private void ProcSettingView_New()
    {
        EditorGUILayout.HelpBox("String.Format 함수의 인자처럼 사용하시면 됩니다.\n 예) : name_{0}", MessageType.Info);
        GUILayout.Space(20f);

        GUILayout.BeginHorizontal();
        _strNameFormat = EditorGUILayout.TextField("Name Format", _strNameFormat, GUILayout.Width(500f));
        GUILayout.EndHorizontal();

        GUILayout.BeginHorizontal();
        _eFillFormat = (EChangeType)EditorGUILayout.EnumPopup("Fill Format", _eFillFormat);
        GUILayout.EndHorizontal();

        if (_eFillFormat == EChangeType.Number)
        {
            GUILayout.BeginHorizontal();
            _iStartNum = EditorGUILayout.IntField("StartNum", _iStartNum);
            GUILayout.EndHorizontal();
        }
        else if (_eFillFormat == EChangeType.Alphabet_Grade)
        {
            GUILayout.BeginHorizontal();
            _eAlphabetGrade = (EAlphabetGrade)EditorGUILayout.EnumPopup("StartGrade", _eAlphabetGrade);
            GUILayout.EndHorizontal();
        }
    }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public ChangeDesc()
 {
     Type             = EChangeType.Unknown;
     BriefDescription = String.Empty;
     ExtraDescription = new List <string>();
     ChangelistNumber = 0;
     TTPNumbers       = new List <int>();
 }
コード例 #3
0
 private void SetRealValue(double value, EChangeType changeType)
 {
     if (!DSPFunctions.IsZero(Math.Abs(RealValue - value)))
     {
         RealValue = value;
         OnValueChange?.Invoke(changeType);
     }
 }
コード例 #4
0
        static void OnHierarchyChange(EChangeType type, HierarchySnapshot snapshot)
        {
            string log = type.ToString();

            if (snapshot.me != null)
            {
                log += " name:" + snapshot.me.name + ", parent: " + snapshot.me.parent;
            }
            log += " snapshot name: " + snapshot.name + ", parent: " + snapshot.parent;
            Debug.Log(log);
        }
コード例 #5
0
        public override void Execute(EChangeType changeType)
        {
            Debug.Log(changeType);
            var index = _weaponeTypes.IndexOf(_curentWeaponeType);

            if (changeType == EChangeType.Previous)
            {
                if (index - 1 > -1)
                {
                    _curentWeaponeType = _weaponeTypes[index - 1];
                }
            }
            else
            {
                if (index + 1 < _weaponeTypes.Count)
                {
                    _curentWeaponeType = _weaponeTypes[index + 1];
                }
            }

            _onChange?.Invoke(_curentWeaponeType);
        }
コード例 #6
0
 public abstract void Execute(EChangeType changeType);
コード例 #7
0
 public StatusChangedEventArgs(EChangeType p_type)
 {
     Type      = p_type;
     Condition = ECondition.NONE;
 }
コード例 #8
0
 public StatusChangedEventArgs(EChangeType p_type, ECondition p_newCondition)
 {
     BecameUnableToDoAnything = false;
     Type      = p_type;
     Condition = p_newCondition;
 }
コード例 #9
0
ファイル: EventArgs.cs プロジェクト: psryland/rylogic_code
 // Note: many events are available by attaching to the Elements binding list
 public ChartChangedEventArgs(EChangeType ty)
 {
     ChgType = ty;
     Cancel  = false;
 }