It looks like you're new here. If you want to get involved, click one of these buttons!
$("body").append("<button id='save-sub'>Save/Load</button>");
UISystem.addClickHandler("#save-sub", null, function () { UISystem.buildSaves(); });
$("body").append("<button id='restart-sub'>Restart</button>");
UISystem.addClickHandler("#restart-sub", null, function () { UISystem.buildRestart(); });
$("body").append("<button id='sound-sub'>Sound</button>");
UISystem.addClickHandler("#sound-sub", null, function () { UISystem.buildOptions(); });
Comments
UISystem.build()
static methods had their names altered. The new names follow the formUISystem.buildDialog()
(e.g.UISystem.buildDialogSaves()
).Beyond that, I'm not sure if your above example is your exact code or not, however, you don't need (or really want) three jQuery calls to do (essentially) one thing. You might be better served by something like this: