<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://sciwiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Leveraging_The_Text_Resources_Further</id>
	<title>Leveraging The Text Resources Further - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://sciwiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Leveraging_The_Text_Resources_Further"/>
	<link rel="alternate" type="text/html" href="http://sciwiki.sierrahelp.com/index.php?title=Leveraging_The_Text_Resources_Further&amp;action=history"/>
	<updated>2026-09-23T18:28:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>http://sciwiki.sierrahelp.com/index.php?title=Leveraging_The_Text_Resources_Further&amp;diff=10039&amp;oldid=prev</id>
		<title>Andrew Branscom at 00:34, 23 February 2016</title>
		<link rel="alternate" type="text/html" href="http://sciwiki.sierrahelp.com/index.php?title=Leveraging_The_Text_Resources_Further&amp;diff=10039&amp;oldid=prev"/>
		<updated>2016-02-23T00:34:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:34, 23 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot; &gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Print(0 22 #button 888 1)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Print(0 22 #button 888 1)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;TemplateGameFixes&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Template Game Fixes&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Syntax]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Syntax]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://sciwiki.sierrahelp.com/index.php?title=Leveraging_The_Text_Resources_Further&amp;diff=7317&amp;oldid=prev</id>
		<title>Jeremiah Nellis: Created page with &quot;You can move all your #title &amp; #button text descriptions used in Print() statements:  In controls.sc, in the Print() procedure change the &#039;(case #button&#039; section: &lt;div class=&quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sciwiki.sierrahelp.com/index.php?title=Leveraging_The_Text_Resources_Further&amp;diff=7317&amp;oldid=prev"/>
		<updated>2013-12-10T23:28:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;You can move all your #title &amp;amp; #button text descriptions used in Print() statements:  In controls.sc, in the Print() procedure change the &amp;#039;(case #button&amp;#039; section: &amp;lt;div class=&amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You can move all your #title &amp;amp; #button text descriptions used in Print() statements:&lt;br /&gt;
&lt;br /&gt;
In controls.sc, in the Print() procedure change the &amp;#039;(case #button&amp;#039; section:&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;&lt;br /&gt;
			(case #button&lt;br /&gt;
		    	= hButtons[buttonCnt] (DButton:new())&lt;br /&gt;
		    	&lt;br /&gt;
				(if(&amp;gt;= Abs(params[+ paramCnt 1]) 0 and &amp;lt;= Abs(params[+ paramCnt 1]) 999)	&lt;br /&gt;
					(send hButtons[buttonCnt]:&lt;br /&gt;
						text(Format(&amp;quot;%s&amp;quot; params[+ paramCnt 1] params[+ paramCnt 2]))&lt;br /&gt;
						value(params[+ paramCnt 3])&lt;br /&gt;
						setSize()&lt;br /&gt;
			    	)	&lt;br /&gt;
					= paramCnt + paramCnt 3&lt;br /&gt;
				)(else&lt;br /&gt;
					(send hButtons[buttonCnt]:&lt;br /&gt;
						text(params[++paramCnt])&lt;br /&gt;
						value(params[++paramCnt])&lt;br /&gt;
						setSize()&lt;br /&gt;
			    	)&lt;br /&gt;
				)		    	&lt;br /&gt;
		    	= btnsWidth (+ btnsWidth (+ (send hButtons[buttonCnt]:nsRight) 4))&lt;br /&gt;
		    	++buttonCnt&lt;br /&gt;
			)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
And the &amp;#039;(case #title&amp;#039; section:&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;&lt;br /&gt;
			(case #title&lt;br /&gt;
				++paramCnt&lt;br /&gt;
&lt;br /&gt;
				(if(&amp;gt;= Abs(params[paramCnt]) 0 and &amp;lt;= Abs(params[paramCnt]) 999)&lt;br /&gt;
					Format(&amp;quot;%s&amp;quot; params[paramCnt] params[+ paramCnt 1])&lt;br /&gt;
					++paramCnt&lt;br /&gt;
				)(else&lt;br /&gt;
					(send hDialog:text(params[paramCnt]))&lt;br /&gt;
			       )&lt;br /&gt;
			)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Now, you can use either technique - specify a static string or a text resource like this:&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;&lt;br /&gt;
   Print(&amp;quot;Hello there&amp;quot; #title 999 1)    //  999 is the text resource holding our title text&lt;br /&gt;
   Print(&amp;quot;Hello there&amp;quot; #title &amp;quot;Greetings&amp;quot;)   // the original way of specifying a title still works too&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Same with buttons:&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;&lt;br /&gt;
   Print(&amp;quot;Make a selection&amp;quot; #button 888 2)   // 888 is the text resource holding our button text&lt;br /&gt;
   Print(&amp;quot;Make a selection&amp;quot; #button &amp;quot;OK&amp;quot;)    // the original way of specifying text for buttons still works&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Of course, if you are this heap-bound, you&amp;#039;d have the actual text of your Print statement to be in a text resource too, so a more realistic example would be something like this:&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;&lt;br /&gt;
  Print(0 15 #title 999 1)&lt;br /&gt;
  Print(0 22 #button 888 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Category:TemplateGameFixes]]&lt;br /&gt;
[[Category:Syntax]]&lt;/div&gt;</summary>
		<author><name>Jeremiah Nellis</name></author>
	</entry>
</feed>