Glulx Status Window Control

version 1/100630 by Erik Temple

  • Home page
  • Beginning
  • Previous



  • Section - Replacement of library's Glulx status line routines

    Include (-

    [ VM_StatusLineHeight hgt;
        if (gg_statuswin == 0) return;
        if (hgt == statuswin_cursize) return;
        glk_window_set_arrangement(glk_window_get_parent(gg_statuswin), statuswin_pos, hgt, 0);
        statuswin_cursize = hgt;
    ];

    [ VM_MoveCursorInStatusLine line column;
    if (gg_statuswin == 0) return;
    glk_set_window(gg_statuswin);
    if (line == 0) { line = 1; column = 1; }
    glk_window_move_cursor(gg_statuswin, column-1, line-1);
    statuswin_current=1;
    ];

    -) instead of "Status Line" in "Glulx.i6t".


    Glulx Status Window Control ends here.