Glimmr Automap

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Clicking a button

    First automap graphlink rule for the UI-query (this is the query button management rule):
        if the image-ID of the UI-query is the depressed state of UI-query:
            now the image-ID of UI-query is the resting state;
            deactivate the UI-query-explanation;
        otherwise:
            now the image-ID of UI-query is the depressed state;
            if the maximum display-count of UI-query-explanation > 0 and (display-count of UI-query-explanation < maximum display-count of UI-query-explanation) or maximum display-count of UI-query-explanation is 999:
                activate the UI-query-explanation;
                increase the display-count of UI-query-explanation by 1;
        follow the refresh windows rule.

    Automap graphlink rule for a UI-button (called the pressee) when the image-ID of the pressee is not the inactive state of the pressee (this is the activate non-modal UI button rule):
        now the image-ID of the current graphlink is the depressed state of the current graphlink;
        display (image-ID of pressee) in the current window at (origin of pressee);
        [set a graphlink in the current window identified as pressee from (entry 1 of the origin of pressee) by (entry 2 of the origin of the pressee) to (entry 1 of the origin of pressee plus the image-width of the image-ID of pressee) by (entry 2 of the origin of pressee plus the image-height of the image-ID of pressee) as the linked action of the pressee;]
        revert the button after 0.1500 seconds;
        silently try the linked action of the current graphlink.