Is there a call for "on dialog "X" finished"?
Or just a way to stop everything until the dialogue is finished
If you want to stop everything else while a dialogue is running, you will have to base your game logic around some kind of boolean variable. This variable should be set to "true" on the Dialogue_StartDialogue function and to false on the Dialogue_End function. (lines 5 and 127)
If said variable is true, stop all other game logic, disable behaviors, etc., depending on how your game is made.