Glimmr Automap

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Toggling zoom

    Graphic zoom toggling is an action out of world applying to nothing. Understand "zoom" as graphic zoom toggling when glulx graphics is supported.

    Carry out graphic zoom toggling:
        if the map viewport is g-unpresent:
            try opening the map window;
        if the map viewport is g-present:
            if current zoom level of the map-renderer < the number of entries of the zoom-level set of the associated tileset of the map-renderer:
                increase current zoom level of the map-renderer by 1;
            otherwise:
                now current zoom level of the map-renderer is 1;
        otherwise:
            say "[map-window-failed-to-open]";
        rule succeeds.
            
    Report graphic zoom toggling when glulx graphics is supported:
        unless the command is mouse-generated:
            say "[zoomed-in-or-out]"