//Supply part this leads to as parameter public void Reading(ConversationPart NextPart) { ContinueButton.SetActive(true); Choice1.SetActive(false); Choice2.SetActive(false); ContinueFunc = NextPart; }
//Call this to use the new style for conversations //Use the 2 parts this could lead to as parameters public void Choosing(ConversationPart Choice1Part, ConversationPart Choice2Part) { Choice1.SetActive(true); Choice2.SetActive(true); ContinueButton.SetActive(false); Choice1Func = Choice1Part; Choice2Func = Choice2Part; }
private void SetupConversationPart(ActivatedContentContext ctx, ConversationPart part) { // Setup getter part._subjectField.Loader(subject => _contentManager.Get(part.Record.SubjectId)); // Setup setter part._subjectField.Setter(subject => { part.Record.SubjectId = subject == null ? 0 : subject.Id; return subject; }); }
public void OnClickOption2() { if (Choice2Func != null) { ConversationPart tempFunc = Choice2Func; Choice1Func = null; Choice2Func = null; tempFunc(); } else { //for old system ChooseOption2(); } }
public Node(int windowNumber) { ConPart = new ConversationPart(windowNumber); WindowID = windowNumber; if (options == null) { var enumAsStringArray = Enum.GetValues(typeof(Expressions)); options = new string[enumAsStringArray.Length]; for (int i = 0; i < enumAsStringArray.Length; i++) { options[i] = enumAsStringArray.GetValue(i).ToString(); } } }
public void OnClickOption1() { if (Choice1Func != null) { //Debug.Log("not null"); ConversationPart tempFunc = Choice1Func; Choice1Func = null; Choice2Func = null; tempFunc(); } else { //for old system ChooseOption1(); } }
public void OnClickContinue() { ContinueButton.SetActive(false); ContinueText.text = "Continue"; ContinueText.fontSize = 90; if (ContinueFunc != null) { ConversationPart tempFunc = ContinueFunc; ContinueFunc = null; tempFunc(); } else { //for old system Continue(); } }
private void SetMessagesRead(BuildDisplayContext ctx, ConversationPart part) { if (ctx.DisplayType != "Detail") return; var user = _workContextAccessor.GetContext().CurrentUser; if (user == null) return; // Get all messages of the conversation where the target is current user var messages = _conversationService .GetUnreadMessagesQuery(user.Id, part.Id); // Set all to read foreach (var message in messages.List()) { message.IsRead = true; } }
public ConversationNode(Vector2 _position, float _width, float _height, GUIStyle _nodeStyle, GUIStyle _selectedNodeStyle, GUIStyle _inPointStyle, GUIStyle _outPointStyle, Action <ConnectionPoint> _onClickInPoint, Action <ConnectionPoint> _onClickOutPoint, Action <Node> _onRemoveNodeAction) : base(_position, _width, _height, _nodeStyle, _selectedNodeStyle, _inPointStyle, _outPointStyle, _onClickInPoint, _onClickOutPoint, _onRemoveNodeAction) { m_part = new ConversationPart(); }