<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sleague.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=The_dialog_object</id>
	<title>The dialog object - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sleague.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=The_dialog_object"/>
	<link rel="alternate" type="text/html" href="https://sleague.civfanatics.com/index.php?title=The_dialog_object&amp;action=history"/>
	<updated>2026-06-29T23:23:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://sleague.civfanatics.com/index.php?title=The_dialog_object&amp;diff=5110&amp;oldid=prev</id>
		<title>Prof. Garfield: Added to category lua resources</title>
		<link rel="alternate" type="text/html" href="https://sleague.civfanatics.com/index.php?title=The_dialog_object&amp;diff=5110&amp;oldid=prev"/>
		<updated>2019-01-26T20:15:59Z</updated>

		<summary type="html">&lt;p&gt;Added to category lua resources&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 20:15, 26 January 2019&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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: Resources]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lua &lt;/ins&gt;Resources]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;Back To [[TOTPP Functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;Back To [[TOTPP Functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Prof. Garfield</name></author>
	</entry>
	<entry>
		<id>https://sleague.civfanatics.com/index.php?title=The_dialog_object&amp;diff=5007&amp;oldid=prev</id>
		<title>Prof. Garfield: Created Page</title>
		<link rel="alternate" type="text/html" href="https://sleague.civfanatics.com/index.php?title=The_dialog_object&amp;diff=5007&amp;oldid=prev"/>
		<updated>2019-01-01T23:06:57Z</updated>

		<summary type="html">&lt;p&gt;Created Page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category: Resources]]&lt;br /&gt;
Back To [[TOTPP Functions]]&lt;br /&gt;
&lt;br /&gt;
[[dialog.title|title]] (get/set)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog.title -&amp;gt; string&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the title of the dialog.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[dialog.width|width]] (get/set)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog.width -&amp;gt; integer&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the width of the dialog.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[dialog.height|height]] (get/set)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog.height -&amp;gt; integer&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the height of the dialog. Normally this does not need to be set, since the height is automatically calculated from the height of the items.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[dialog|addText]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog:addText(string)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adds a static text string to the dialog.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[dialog|addOption]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog:addOption(string, id)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adds a selectable option to the dialog, with label given by `string`. `id` is an integer value returned by dialog:show if this option was selected. Can not be used in conjunction with dialog:addCheckbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[dialog|addCheckbox]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog:addCheckbox(string, id, initial=false)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adds a checkbox to the dialog, with label given by `string`. `id` is an integer value that can be used in dialog:getCheckboxState to retrieve the state after calling dialog:show. `initial` is an optional boolean parameter, if set to `true` the checkbox will be checked initially. Can not be used in conjunction with dialog:addOption.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[dialog|getCheckboxState]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog:getCheckboxState(id) -&amp;gt; boolean&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the state of the checkbox identified by `id` after dialog:show has been called.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[dialog|show]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dialog:show() -&amp;gt; integer&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Renders the dialog on screen. If this is an option dialog, returns the id of the selected option (see dialog:addOption). If this is a checkbox dialog, returns 0 if OK was pressed, -1 if Exit was pressed. Use dialog:getCheckboxState to query the individual checkboxes.  This method can only be called once per dialog. It will return an error if invoked a second time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
dialog = civ.ui.createDialog()&lt;br /&gt;
&lt;br /&gt;
dialog.title = &amp;quot;My first dialog&amp;quot;&lt;br /&gt;
&lt;br /&gt;
dialog.width = 250&lt;br /&gt;
&lt;br /&gt;
dialog:addOption(&amp;quot;Foo&amp;quot;, 1)&lt;br /&gt;
&lt;br /&gt;
dialog:addOption(&amp;quot;Bar&amp;quot;, 2)&lt;br /&gt;
&lt;br /&gt;
dialog:show()&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Prof. Garfield</name></author>
	</entry>
</feed>