



DrawStatusLine (lines 5743-5803)
Back to List
Browsing parserm.h
5743 #Endif; ! #version_number == 6
5744
5745 #Endif; ! V5
5746
5747 #Endif; ! TARGET_ZCODE
5748
5749 #Ifndef DrawStatusLine;
5750 [ DrawStatusLine width posa posb;
5751 #Ifdef TARGET_GLULX;
5752 ! If we have no status window, we must not try to redraw it.
5753 if (gg_statuswin == 0)
5754 return;
5755 #Endif;
5756
5757 ! If there is no player location, we shouldn't try to draw status window
5758 if (location == nothing || parent(player) == nothing)
5759 return;
5760
5761 StatusLineHeight(gg_statuswin_size);
5762 MoveCursor(1, 1);
5763
5764 width = ScreenWidth();
5765 posa = width-26; posb = width-13;
5766 spaces width;
5767
5768 MoveCursor(1, 2);
5769 if (location == thedark) {
5770 print (name) location;
5771 }
5772 else {
5773 FindVisibilityLevels();
5774 if (visibility_ceiling == location)
5775 print (name) location;
5776 else
5777 print (The) visibility_ceiling;
5778 }
5779
5780 if (sys_statusline_flag && width > 53) {
5781 MoveCursor(1, posa);
5782 print (string) TIME__TX;
5783 LanguageTimeOfDay(sline1, sline2);
5784 }
5785 else {
5786 if (width > 66) {
5787 #Ifndef NO_SCORE;
5788 MoveCursor(1, posa);
5789 print (string) SCORE__TX, sline1;
5790 #Endif;
5791 MoveCursor(1, posb);
5792 print (string) MOVES__TX, sline2;
5793 }
5794 #Ifndef NO_SCORE;
5795 if (width > 53 && width <= 66) {
5796 MoveCursor(1, posb);
5797 print sline1, "/", sline2;
5798 }
5799 #Endif;
5800 }
5801
5802 MainWindow(); ! set_window
5803 ];
Last updated 27 February 2004. The librarian in charge of this page is Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight. Please email any comments, suggestions or corrections to cedenqs@inform-fiction.org.