I’m having a play around with glulx windows and graphics for a new project (hitherto I’ve only really used the z-machine format) and I’m running into some behaviour that’s mystifying me.
Originally, figure display was working in the Windows IDE but not in Quixe, but I found a thread talking about the script that needs to be run manually to fix that – which is mildly annoying (part of which was needing to install Python) but manageable. (It’d be nice if Inform could be told to run a script to do some extra things before/after the release process, either via script or via IDE setting.)
The unsolved half of the above is that while the Windows IDE interpreter displays the figure centred, Quixe shows it left-aligned. The I7 phrase used for display was
display figure-name centered, via “Glulx Image Centering by Emily Short”.
Looking at the HTML output, there appears to be two things going wrong – the first is that it’s outputting
<span> tags for the user-style set by the extension on both sides of the image but not actually surrounding the image. The second problem is that there’s no CSS styling that’s causing either of those things to actually be centered (the image itself only has the
Would this work better in a graphics window, or is there something else that can be done to solve this? (I would prefer to get this working without a graphics window, unless it’s possible to show and hide a graphics window without disturbing the text in the main window, and/or to display text in a graphics window.)
I had some other problems but during the course of typing this message I managed to find workarounds.
(As an aside, along the way I’ve found a fairly serious issue in the Public Library version of “Title Page by Jon Ingold”; I’ll send a fix to github soon.)