Glimmr Graphic Hyperlinks

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 3a - Clicking Graphlink Rules II (for use without Glimmr Canvas-Based Drawing by Erik Temple)

    Current graphlink is a text variable. [The current graphlink is either text or g-element, depending on whether Glimmr Canvas-Based Drawing is also in use]

    A clicking graphlink rule (this is the default command replacement by graphlinks rule):
        if the click hit a hot link:
            #if utilizing Glimmr debugging;
            say "[>console][GGH]Mouse input received on graphlink '[current graphlink]' in window [italic type][current graphlink window][roman type]: ([current graphlink x], [current graphlink y]).[<]";
            #end if;
            follow the graphlink processing rules;
            rule succeeds;
        otherwise:
            #if utilizing Glimmr debugging;
            say "[>console][GGH]Mouse input received in window [italic type][current graphlink window][roman type] (no link triggered): ([current graphlink x], [current graphlink y]).[<]";
            #end if;
            now glulx replacement command is "".

    The default command replacement by graphlinks rule is listed last in the clicking graphlink rules.