main_menu.rml 930 B

123456789101112131415161718192021222324252627282930313233
  1. <rml>
  2. <head>
  3. <title>Main Menu</title>
  4. <link type="text/template" href="window.rml" />
  5. <style>
  6. body
  7. {
  8. width: 300px;
  9. height: 225px;
  10. margin: auto;
  11. }
  12. div#title_bar div#icon
  13. {
  14. icon-image-s: 179px 230px;
  15. icon-image-t: 152px 191px;
  16. }
  17. </style>
  18. <script>
  19. def CloseLogo():
  20. if document.context:
  21. document.context.documents['logo'].Close()
  22. </script>
  23. </head>
  24. <body template="pywindow" onload="OnWindowLoad(self); document.context.LoadDocument('data/logo.rml').Show()" onunload="CloseLogo()">
  25. <button onclick="document.context.LoadDocument('data/start_game.rml').Show(); document.Close()">Start Game</button><br />
  26. <button onclick="LoadMenu('high_score')">High Scores</button><br />
  27. <button onclick="LoadMenu('options')">Options</button><br />
  28. <button onclick="LoadMenu('help')">Help</button><br />
  29. <button onclick="import game;game.Shutdown()">Exit</button>
  30. </body>
  31. </rml>