// ========================================================================== // /* 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(); } }
/// <summary> /// Constructor /// </summary> public ChangeDesc() { Type = EChangeType.Unknown; BriefDescription = String.Empty; ExtraDescription = new List <string>(); ChangelistNumber = 0; TTPNumbers = new List <int>(); }
private void SetRealValue(double value, EChangeType changeType) { if (!DSPFunctions.IsZero(Math.Abs(RealValue - value))) { RealValue = value; OnValueChange?.Invoke(changeType); } }
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); }
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); }
public abstract void Execute(EChangeType changeType);
public StatusChangedEventArgs(EChangeType p_type) { Type = p_type; Condition = ECondition.NONE; }
public StatusChangedEventArgs(EChangeType p_type, ECondition p_newCondition) { BecameUnableToDoAnything = false; Type = p_type; Condition = p_newCondition; }
// Note: many events are available by attaching to the Elements binding list public ChartChangedEventArgs(EChangeType ty) { ChgType = ty; Cancel = false; }