:: StoryCaptionWidgets [widget nobr]

<<widget "userButton">>
	<<set _Pass = passage()>>
	/* Must use link so spacebar shortcut will work. */
	/* Don't remove these spans, it will break things. */
	<<if _Pass != "End Week">>
		<<if _Pass == "Main">>
			<strong>
				<div id="endWeekButton"><<link "END WEEK">><<run endWeek()>><</link>> @@.cyan;[Ent]@@</div>
			</strong>
			<<if $rulesAssistantAuto == 1 && DefaultRulesError()>>
				<div>@@.yellow;WARNING: Rules Assistant has rules with errors!@@</div>
			<</if>>
		<<else>>
			<strong><div id="nextButton">
			<<if $nextButton != " ">>
				<<link "$nextButton">>
					<<goto $nextLink>>
				<</link>> @@.cyan;[Space]@@
			<</if>>
			</div></strong>
		<</if>>
	<</if>>
<</widget>>

src/gui/storyCaptionWidgets.tw