RenJS-V2 icon indicating copy to clipboard operation
RenJS-V2 copied to clipboard

Add back button

Open JohanForngren opened this issue 4 years ago • 2 comments

Would it be possible to add a back button in case the player missed some dialogue and wants to read it again?

Monogatari has this feature: https://monogatari.io/demo/

JohanForngren avatar Sep 14 '21 05:09 JohanForngren

I've wanted to have this kind of feature, or a text log for a while, but with the new GUI, the previous attempts are probably lacking a bit. Currently every time a text and say actions, the text is saved in a log in the TextManager, along with the character name. This is not enough now because the text action have more parameters, like namebox and messagebox.

What I think we need to implement this taks:

  • [ ] Save the say and text task themselves with all parameters in the textLog.
  • [ ] Add button action bindings (can be bind to mouse wheel too?) for going back and forth in the text log:
    • [ ] Pause the game if not paused
    • [ ] Update the text log index
    • [ ] Show text/say action without animation
  • [ ] Add button action binding to continue with the game:
    • [ ] Clear GUI (hide message and name boxes)
    • [ ] Reset text log index
    • [ ] Unpause game

lunafromthemoon avatar Sep 14 '21 08:09 lunafromthemoon

@lunafromthemoon -- I am most likely stating the obvious here, however... The easiest way to accomplish this would be just to store a "history" of completed "screens" (Needed info for regular MessageBox's, Animations, etc) with a currentHistoryIndex value to track where in the history they are currently in. A simple Array<> type would manage that nicely I suspect...

SeanHolt avatar Jan 31 '25 20:01 SeanHolt