I'm just wondering if it's possible to put SugarCube's load game as a button link in a passage instead of the UI?
This is for having a proper title screen with a centered passage containing start and load buttons. The load button would basically function the same as the ui load link.
Comments
But if you want it an actual button:
http://stackoverflow.com/questions/6393827/can-i-nest-a-button-element-inside-an-a-using-html5
But that said, while it certainly worked in everything I just tried it in, it's not formally allowed, and this page raises a good point, that even <button> on its own really should be wrapped in <form>.
Again though, it DOES work, and probably will continue to do so, so while it might not be best practice...
Not unless it's part of an actual
<form>
. The suggestion on that overflow to use a<form>
to make a<button>
act like an<a href=>
is daft (the proper answer would have been something like<button onclick="location.href='http://example.com/'">Visit Website</button>
).I looked at the API, just didn't know you could do that. Thanks!
SaveSystem
wasn't a crazy idea, just not the right place as it turns out). I just didn't want you using a Rube Goldberg machine for something which has simple solution.