//
//  A T2 test game: 
//  		top aligned banner 
// 		status line mode
//			sized to contents
//			varying number of lines in banner
//

#include <adv.t>
#include <std.t>

startroom: room
   sdesc = "XTads T2 banner test"
   ldesc = "Should show a top aligned status line with varying number of lines"
   turnCount = 0
	statusLine =
		{
		local numLines = 1 + (turnCount % 5);
		local li;
		turnCount += 1;
		"<banner id=custStatusLine align='top'>";
		for (li := 0; li < numLines; li++) 
			{		
			"Line <<li + 1>><br>";
			}
		"</banner>";
		}
;

replace commonInit: function
{
    // turn on html mode
    "\H+";
}
