pause.rml 710 B

1234567891011121314151617181920212223242526
  1. <rml>
  2. <head>
  3. <title>Quit?</title>
  4. <link type="text/template" href="window.rml" />
  5. <style>
  6. body
  7. {
  8. width: 350dp;
  9. height: 135dp;
  10. margin: auto;
  11. }
  12. div#title_bar div#icon
  13. {
  14. decorator: image( icon-flag );
  15. }
  16. </style>
  17. </head>
  18. <body template="luawindow" onload="Window.OnWindowLoad(document) Game.SetPaused(true)" onunload="Game.SetPaused(false)" onkeydown="if Window.EscapePressed(event) then document:Close() end">
  19. <br />
  20. <p>Are you sure you want to end this game?</p>
  21. <button onclick="Window.LoadMenu('high_score',document) document.context.documents['game_window']:Close()" autofocus>Yes</button>
  22. <button onclick="document:Close()">No!</button>
  23. </body>
  24. </rml>