//
//  A T2 test game: 
//  		top aligned banner 
// 		status line mode
//			abs. sized on 1st turn, "previous" sized after
//

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

startroom: room
   sdesc = "XTads T2 banner test"
   ldesc = "Should show a top aligned status line, 100 pts tall on 1st turn, \"previous\" sized after"
   turnCount = 0
	statusLine =
		{
		local height;
		turnCount += 1;
		//local cycleCount := (turnCount % 4);
		if (turnCount = 1) {
			height := '100';
		} else {
			height := 'previous';
		}
		"<banner id=custStatusLine align=top height=<<height>> border>
			banner text <<turnCount>>, height=<<height>>
		</banner>";
		}
;

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