//
//  A T2 test game: 
//			a banner that changes abs-sized height every turn
//

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

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

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