//
//  A T2 test game: 
//  		top aligned banner 
// 		status line mode
//			% 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, 25% tall on 1st turn, \"previous\" tall after"
   turnCount = 0
	statusLine =
		{
		local height;
		turnCount += 1;
		if (turnCount = 1) {
			height := '25%';
		} 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+";
}
