fodev.net

FOnline Development => Share Your Work => Topic started by: adumbperson on May 28, 2019, 05:58:58 am

Title: PIPBOY2000 TERMINAL INTERFACE
Post by: adumbperson on May 28, 2019, 05:58:58 am
I thought it would be fun to have an help command describing stuffs...

from client_main.fos
Code: [Select]
bool out_message( string& message, int& sayType )
{

    // Log("sayType:"+sayType+" - message:"+message);

    if( message[ 0 ] == "~" ) {
        string@[]@ words = splitEx(message, " ");

        if( message == "~help" ) {
            Message( "PipBoy2000 UNIFIED OPERATING SYSTEM.\n"+
            " COPYRIGHT 1995-2000 ROBCO INDUSTRIES.\n"+
            "             -TERMINAL INTERFACE-\n"+
            "_________________________________\n"+
            " legend: |"+COLOR_WHITE+" command|"+COLOR_TEXT+"  : description\n"+
            "_________________________________\n"+

            "|"+COLOR_WHITE+" \t~names|"+COLOR_TEXT+"  : reload name colorizer.\n"+
            "|"+COLOR_WHITE+" \t~ignorelist|"+COLOR_TEXT+"  : reload ignore list.\n"+
            "_________________________________\n" );
            return false;
        }
        // ..........

or this way

from FOTEXT.MSG
Code: [Select]
{70070}{}{________________________________
 PipBoy2000 UNIFIED OPERATING SYSTEM.
 COPYRIGHT 1995-2000 ROBCO INDUSTRIES.
              -TERMLINK INTERFACE-
 ________________________________
 legend:
     |0xFFFFFF ~command|0x3CF800  : description
 ________________________________
     |0xFFFFFF ~names|0x3CF800  : reload name colorizer.
     |0xFFFFFF ~ignorelist|0x3CF800  : reload ignore list.
 ________________________________}

from client_main.fos
Code: [Select]
bool out_message( string& message, int& sayType )
{

    // Log("sayType:"+sayType+" - message:"+message);

    if( message[ 0 ] == "~" ) {
        string@[]@ words = splitEx(message, " ");

        if( message == "~help" ) {
            Message( GetMsgStr(TEXTMSG_TEXT, 70070) );
            return false;
        }
        // ..........

(https://i.imgur.com/XBipiSN.png)