Graphic Links

version 2 by Jeff Sheets

  • Home page
  • Beginning
  • Previous



  • Part 4b (for use with Graphical Window Sprites by Erik Temple)

    To set a graphlink identified as (newlinkid - a sprite) from (gleft - a number) by (gtop - a number) to (gright - a number) by (gbottom - a number) as (linkaction - some text):
        if there is a linkid of newlinkid in the Table of Graphlink Glulx Replacement Commands:
            choose row with linkid of newlinkid in the Table of Graphlink Glulx Replacement Commands;
            change p-top entry to gtop;
            change p-bottom entry to gbottom;
            change p-left entry to gleft;
            change p-right entry to gright;
            change replacement entry to linkaction;
        otherwise if the number of blank rows in the Table of Graphlink Glulx Replacement Commands is greater than 0:
            choose a blank row in the Table of Graphlink Glulx Replacement Commands;
            change linkid entry to newlinkid;
            change p-top entry to gtop;
            change p-bottom entry to gbottom;
            change p-left entry to gleft;
            change p-right entry to gright;
            change replacement entry to linkaction.

    To clear the graphlink identified as (dellinkid - a sprite):
        if there is a linkid of dellinkid in the Table of Graphlink Glulx Replacement Commands:
            choose row with linkid of dellinkid in the Table of Graphlink Glulx Replacement Commands;
            blank out the whole row.

    Table of Graphlink Glulx Replacement Commands
    linkid  p-top  p-bottom  p-left  p-right  replacement  
    sprite  a number  a number  a number  a number  some text  
    with 25 blank rows  


    Graphic Links ends here.