Open my2iu opened 6 years ago
Links are actually generated by the TADS code, not the VM. You can get the TADS code to generate links by returning SYSINFO_ICLASS_HTML
for SYSINFO_INTERP_CLASS
in osgen3.c. This causes the TADS code to output full HTML though, which requires HTML banner parsing, which I haven't got around to implementing yet.
The ALT tags seem related to the flag html_allow_alt
in the output code, but I don't have any proper examples to dig into this properly to see if that's actually the case. I'll need to generate an example manually maybe.
I redid scrolling and the save/restore UI. So that leaves the ALT tags and the anchor links, which probably require a proper htmlTADS implementation, which I don't have time to do.
There are several problems in the current implementation. If there is time, please take a look.
In my opinion, it should be in the following way:
The command should generate a save file *.sav and offer to download it.
The command should open the file upload dialog. The restore will be from the uploaded file *.sav.
The command should save the game in the LocalStorage with "qwerty".
The command should restore the game with the name "qwerty" from LocalStorage. It will be very convenient. We will be able to receive files for transfer between devices, and also save the game in the browser.