blurymind / YarnClassic

A tool for writing interactive dialogue in games!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug where if you load a node from another node in play mode and then click the title of the current node, it'll send you the editor of the loaded node over and over.

FaultyFunctions opened this issue · comments

Steps to reproduce:

  1. Create two nodes.
  2. Add a link to the second node from the first node.
  3. Click play.
  4. When the second node is loaded, click the title in the editor to enter "preview" mode in the first node.
  5. Observe that it sends you to the second node's editor.
  6. Also observe that this now happens on any node thereafter when you enter preview mode on any nodes.

I'm not really sure how to fix this. I think it's an error in togglePlayMode function when it's being called from togglePreviewMode in app.js.

Right but I guess the bug part is if you exit the second node's editor, and go back to the first node's editor it still sends you back to the second node which I forgot to mention, my bad!
ezgif-5-36f68ba9beb1