//
//  A T2 test game: 
//		a bottom-aligned banner that flips border on/off every turn
//

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

startroom: room
   sdesc = "XTads T2 banner test"
   ldesc = "Should show a bottom-aligned banner that flips border on/off every turn"
   turnCount = 0
	statusLine =
		{
		local height = 50;
		local border;
		
		turnCount += 1;
		border := (turnCount % 2) = 0 ? '' : 'border';
		
		"<banner id=custStatusLine align=bottom height=<<height>> <<border>>>
			banner text <<turnCount>>, height=<<height>>, <<border>>
		</banner>";
		}
;

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