Thanks Liam for double checking me on this. Yes, it works after the ClearScreen function is run (I run that every time you enter a new room). However, you are correct that it does reset to the standard layout after it gets loaded from a save (predictably because the start up script doesn't run). I'll look into this.
Edit: Nailed it! I knew that some function had to initiate before the game could load, whether it was from the start script or from somewhere else. Turns out I was right. The function "InitInterface" (presumably short for "Initiate Interface") is the code which runs the setup for the whole interface section (don't you love the obvious!) I have this code set up as a .js file:
function setUI() {
elm1 = document.getElementById("gameBorder");
elm1.style.width = "100%";
elm1.style.border = "none";
elm2 = document.getElementById("gameContent");
elm2.style.width = "96%";
elm2.style.padding = "20px 2% 0px 2%";
elm3 = document.getElementById("status");
elm3.style.width = "100%";
elm3.style.position = "relative";
elm3.style.border = "none";
}
Essentially this just changes various attributes of the html and css to make the page percentage based. Useful if you're implementing this into a website, as I am (woot <object> tag). Then I just went into the InitInterface function, went all the way to the bottom after it's done setting everything up and added this:
NOTE: If you use this .js code, it's intended for a total fill, 100% of whatever tag/window it is in and it also assumes there are no side panels. If you are using side panels or want different percentage fill you'll need to set up the percentages differently.
request (RunScript, "setUI")
It works like a charm no matter if it's loaded fresh or from a save. Thanks again for pointing that out Liam!