Next Conversation Shortcut?
Posted: Wed Nov 11, 2020 4:56 pm
I was looking around to see if I could find a "next conversation" shortcut. Is that something that exists?
EDIT:
I was looking through DialogueEditorWindowConversationNodeEditor and I think there is currently no shortcut. I think I can add one, but I'm not sure how to lookup the next conversation from the current conversation going by drop-down selector ordering.
Something like this?
Is this safe?
EDIT:
I was looking through DialogueEditorWindowConversationNodeEditor and I think there is currently no shortcut. I think I can add one, but I'm not sure how to lookup the next conversation from the current conversation going by drop-down selector ordering.
Something like this?
Code: Select all
if (Event.current.keyCode == KeyCode.PageUp)
{
// PageUp canvas:
// PageUpCanvas();
Conversation prevConversation = GetConversationByTitleIndex(GetCurrentConversationIndex() - 1);
if (prevConversation != null) SetCurrentEntry(prevConversation.GetFirstDialogueEntry());
Event.current.Use();
}
if (Event.current.keyCode == KeyCode.PageDown)
{
// PageDown canvas:
// PageDownCanvas();
Conversation nextConversation = GetConversationByTitleIndex(GetCurrentConversationIndex() + 1);
if (nextConversation != null) SetCurrentEntry(nextConversation.GetFirstDialogueEntry());
Event.current.Use();
}
Is this safe?