public bool Inspect() { var changed = false; "[{0}] Name:".F(_index).edit(70, ref _name).nl(ref changed); if ("Share".foldout(ref _shareOptions).nl()) { "Share:".write( "Paste message full with numbers and lost of ' | ' symbols into the first line or drop file into second", 50); CfgData data; if (this.SendReceivePegi("Trigger Group {0} [{1}]".F(_name, _index), "Trigger Groups", out data)) { var tmp = new TriggerGroup(); tmp.Decode(data); if (tmp._index == _index) { Decode(data); Debug.Log("Decoded Trigger Group {0}".F(_name)); } else { Debug.LogError("Pasted trigger group had different index, replacing"); } } pegi.line(); } "Change".select(ref _replacingAuthor, Shortcuts.users.all); if (_replacingAuthor != -1 && _replacingAuthor < Shortcuts.users.all.Count && !Shortcuts.users.all[_replacingAuthor].Equals(authorName) && icon.Replace.ClickConfirm("repTgAu", "Change an author?")) { authorName = Shortcuts.users.all[_replacingAuthor]; } pegi.nl(); "New Variable".edit(80, ref Trigger.searchField); AddTriggerToGroup_PEGI(); _triggers.Nested_Inspect(ref changed); return(changed); }
public override bool Inspect() { var changed = false; if (inspectedItems == -1) { changed |= "{0} : ".F(_index).edit(50, ref _name).nl(); "Share:".write("Paste message full with numbers and lost of ' | ' symbols into the first line or drop file into second", 50); string data; if (this.SendReceivePegi("Trigger Group {0} [{1}]".F(_name, _index), "Trigger Groups", out data)) { var tmp = new TriggerGroup(); tmp.Decode(data); if (tmp._index == _index) { Decode(data); Debug.Log("Decoded Trigger Group {0}".F(_name)); } else { Debug.LogError("Pasted trigger group had different index, replacing"); } } pegi.line(); "New Variable".edit(80, ref Trigger.searchField); AddTriggerToGroup_PEGI(); changed |= _triggers.Nested_Inspect(); } return(changed); }