jaynabonne wrote:
You typically want to output the css block in an InitUserInterface function. That is called by the Quest engine at startup and when loading a saved game - though there is a current bug with that in the web player, as OurJud can attest to.
jaynabonne wrote:Or in the editor, you can click the Filter button at the bottom left and select "Show Library Elements". Then look for the Functions group and search down within it for InitUserInterface (ah, if only alphabetical!).
<function name="InitUserInterface">
OutputTextNoBr ("
<css><![CDATA[
<style type="text/css">
body {font-size: 50px;}
</style>
]]></css>
")
</function>
Failed to load game.
The following errors occurred:
Invalid XML: 'Element' is an invalid XmlNodeType.
<function name="InitUserInterface">
<![CDATA[
OutputTextNoBr ("<css><style type=\"text/css\"> body {font-size: 50px;} </style></css>")
]]>
</function>OutputTextNoBr(game.css)jaynabonne wrote:"OurJud"
Am I missing something, or isn't that what the little search box at the top of the left pane is for?
Well, there you go! I never even noticed before.Much easier.