//
//  A T2 test game: 
//			a lhs banner that changes width: 
//				25%, previous, previous, 25%, ...
//

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

startroom: room
   sdesc = "XTads T2 banner test"
   ldesc = "Should show a banner that changes width: 25%, previous, previous, 25%, ..."
   turnCount = 0
	statusLine =
		{
		local cycleLimit = 3;
		local width;
		local cycleCount;
		
		turnCount += 1;
		cycleCount := (turnCount % cycleLimit);
		
		width := (cycleCount = 1 ? '25%' : 'previous');
		
		"<banner id=custStatusLine align=left width=<<width>> border>
			banner text <<turnCount>>, width=<<width>>
		</banner>";
		}
;

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