//
//  A T2 test game: 
//			a banner that changes %-sized width every turn
//

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

startroom: room
   sdesc = "XTads T2 banner test"
   ldesc = "Should show a banner that changes %-sized width every turn"
   turnCount = 0
	statusLine =
		{
		local width;
		local cycleCount;
		turnCount += 1;
		cycleCount := ((turnCount - 1) % 5);
		width := cvtstr(10 + cycleCount * 10) + '%';
		"<banner id=custStatusLine align=left width=<<width>> border>
			banner text <<turnCount>>, width=<<width>>
		</banner>";
		}
;

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