intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Sep 25, 2017 1:54 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Sep 01, 2017 10:21 pm 
Online

Joined: Tue Jul 28, 2015 1:05 pm
Posts: 732
Currently, changing the status line before 'wait for any key' will not update the status line until after the player presses a key.

Is there a way to force it to update? I assume the 'now the left hand status line' command doesn't take effect until the end of a turn, which is after pressing the key, but I don't know off the top of my head how to work around that.

_________________
-My IFDB name is Mathbrush (this was an alternate account I started because I was going to submit my IFComp game anonymously)


Top
 Profile Send private message  
 
PostPosted: Fri Sep 01, 2017 10:53 pm 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 2394
If you have Glulx Entry Points then use the "redraw the status line" phrase. Otherwise just copy its definition into your source.


Top
 Profile Send private message  
 
PostPosted: Fri Sep 01, 2017 11:21 pm 
Online

Joined: Tue Jul 28, 2015 1:05 pm
Posts: 732
Thanks! For future reader's sakes, the necessary code is "To update/redraw the/-- status line: (- DrawStatusLine(); -)."

This was super helpful, thanks.

_________________
-My IFDB name is Mathbrush (this was an alternate account I started because I was going to submit my IFComp game anonymously)


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: craiglocke and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group