public static void DCGameMessage(string msg, bool lf) { //{ Print a standard text message for the game GearHead.} //{ Set the background color to black.} Crt.TextBackground(Crt.Color.Black); //{ If needed, go to the next line.} if (lf) { DCNewMessage(); } //{ Set the text color.} Crt.TextColor(DCTextColor); //{ Set the window to the desired print area, and move to the right pos.} Crt.Window(WDM.RPGMsg_X, WDM.RPGMsg_Y, WDM.RPGMsg_X2, WDM.RPGMsg_Y2); Crt.GotoXY(GM_X, GM_Y); //{call the Delineate procedure to prettyprint it.} Crt.AutoScrollOn(); Delineate(msg, WDM.RPGMsg_WIDTH, GM_X); Crt.AutoScrollOff(); //{Save the current cursor position.} GM_X = Crt.WhereX(); GM_Y = Crt.WhereY(); //{restore the window to its original, full dimensions.} Crt.Window(1, 1, WDM.CON_WIDTH, WDM.CON_HEIGHT); }
public static void DCNewMessage() { //{ Start a new line in the DCMessage area.} Crt.Window(WDM.RPGMsg_X, WDM.RPGMsg_Y, WDM.RPGMsg_X2, WDM.RPGMsg_Y2); Crt.GotoXY(GM_X, GM_Y); Crt.AutoScrollOn(); if (GM_X != 1) { Crt.Write("\n"); } Crt.TextColor(DCBulletColor); Crt.Write("> "); Crt.AutoScrollOff(); //{ Reset the Cursor Pos.} GM_X = Crt.WhereX(); GM_Y = Crt.WhereY(); Crt.Window(1, 1, WDM.CON_WIDTH, WDM.CON_HEIGHT); }