Menu

Inserting messages in LAC's scrollable, cockpit "SystemMessage" Panel

bbosen
2020-06-02
2023-02-19
  • bbosen

    bbosen - 2020-06-02

    At any time during a mission, developers can trigger display of a brief text message in LAC's "SystemMessage" Panel (the three-line, scrolling text instrument at the lower left side of LAC's cockpit panel).

    Here is a little block of code that does this:

       sprintf (SystemMessageBufferA, "DANGER, WILL ROBINSON!");
       NewSystemMessageNeedsScrolling = true;
    

    Those two lines of code will cause the message "DANGER, WILL ROBINSON!" to be displayed in the bottom line of the three-line display. Prior lines will be scrolled upward as necessary, and the uppermost of the three lines will be lost.

    Mission developers wishing to display messages to the user can use this technique at any appropriate point within their mission logic.

     

    Last edit: bbosen 2023-02-19
  • bbosen

    bbosen - 2023-02-19

    Note that text to be displayed in the SystemMessage Panel as described above must always use upper-case letters like the example "DANGER, WILL ROBINSON!".

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.