//
//  A T2 test game.
//

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

startroom: room
   sdesc = "XTads T2 banner test"
   ldesc = "Should show a lhs banner that changes width: (unspecified), (unspecified),  ..."
   turnCount = 0
   widths = [nil, nil, nil]
	statusLine =
		{
		local cycleCount;
		local width;
		local widthAttr;
		
		turnCount += 1;
		cycleCount := ((turnCount - 1) % length(widths)) + 1;
		width := widths[cycleCount];
		if (width = nil) {
			widthAttr := '';
		} else {
			widthAttr := ('width=' + width);
		}
		
		"<banner id=custStatusLine align=left <<widthAttr>> border>
			banner text <<turnCount>>, <<widthAttr>>
		</banner>";
		}
;

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