//
//  A T2 test game: 
//			a left-aligned banner that changes between abs-sized and %-sized width every turn
//

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

startroom: room
   sdesc = "XTads T2 banner test"
   ldesc = "Should show a left-aligned banner that changes between abs-sized and %-sized width every turn"
   turnCount = 0
	statusLine =
		{
		local width = 50;
		local widthSuffix;
		
		turnCount += 1;
		widthSuffix := (turnCount % 2) = 0 ? '' : '%';
		
		"<banner id=custStatusLine align=left width=<<width>><<widthSuffix>> border=yessum>
			banner text <<turnCount>>, width=<<width>><<widthSuffix>>
		</banner>";
		}
;

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