Code: Select all
...
imagebutton auto "ui/%s_dialogue.png" action Call("show_history")
label show_history:
$ config.rollback_enabled = False
$ quick_menu = False
window hide
with Dissolve(0.125)
call screen history with Dissolve(0.125)
$ quick_menu = True
window show
with Dissolve(0.125)
$ config.rollback_enabled = True
return
screen history():
tag menu
predict False
modal True
vbox:
*code for generating frame with history here...*
button:
action Return()
background "#FFF"
text "{color=#000}Click here to return to the game."
xsize 1100
1) Instructions to show the screen (calls to the show history screen) are being logged into the rollback feature. So if I rollback after opening and then closing history, I am going to get stuck in the history window and unable to roll back further behind that call. Is there anyway I can prevent calls to the show_history label from being factored into the rollback? Basically make rollback only register dialogue statements (none of which are inside the history label)?
2) For some reason, after I exit the history window, the text automatically progresses from the line it was on before I opened it to the one afterwards. I tested setting the imagebutton action to NullAction() and it wasn't happening there. Any ideas what's causing this?
Thanks!