//
//  A T2 test game: 
//  		left 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 left aligned status line, 25% wide on 1st turn, \"previous\" wide after"
   turnCount = 0
	statusLine =
		{
		local width;
		turnCount += 1;
		if (turnCount = 1) {
			width := '25%';
		} else {
			width := 'previous';
		}
		"<banner id=custStatusLine align=left width=<<width>> border>
			banner text <<turnCount>>, width=<<width>>
		</banner>";
		}
;

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