<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OpenDialogue</id>
	<title>OpenDialogue - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OpenDialogue"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OpenDialogue&amp;action=history"/>
	<updated>2026-04-16T12:08:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=OpenDialogue&amp;diff=841&amp;oldid=prev</id>
		<title>Tayfunwiki at 17:31, 4 January 2024</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OpenDialogue&amp;diff=841&amp;oldid=prev"/>
		<updated>2024-01-04T17:31:14Z</updated>

		<summary type="html">&lt;p&gt;&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 13:31, 4 January 2024&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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:Dialogue Node.png|thumb|You can also start a dialog with the Dialogue Node.]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&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;== &amp;lt;code&amp;gt;OpenDialogue&amp;lt;/code&amp;gt; Method in DialogueManager Class ==&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;== &amp;lt;code&amp;gt;OpenDialogue&amp;lt;/code&amp;gt; Method in DialogueManager Class ==&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>Tayfunwiki</name></author>
	</entry>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=OpenDialogue&amp;diff=825&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;OpenDialogue&lt;/code&gt; Method in DialogueManager Class ==  === Overview === The &lt;code&gt;OpenDialogue&lt;/code&gt; method in the DialogueManager class is responsible for initiating a dialogue with specified parameters. It is essential for creating dynamic and interactive dialogues within the game.  === Description ===  * Parameters: ** &lt;code&gt;title&lt;/code&gt; (string): The title of the dialogue. ** &lt;code&gt;content&lt;/code&gt; (string): The content or body of the dialogue. ** &lt;code&gt;time...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OpenDialogue&amp;diff=825&amp;oldid=prev"/>
		<updated>2024-01-04T15:21:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;OpenDialogue&amp;lt;/code&amp;gt; Method in DialogueManager Class ==  === Overview === The &amp;lt;code&amp;gt;OpenDialogue&amp;lt;/code&amp;gt; method in the DialogueManager class is responsible for initiating a dialogue with specified parameters. It is essential for creating dynamic and interactive dialogues within the game.  === Description ===  * Parameters: ** &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; (string): The title of the dialogue. ** &amp;lt;code&amp;gt;content&amp;lt;/code&amp;gt; (string): The content or body of the dialogue. ** &amp;lt;code&amp;gt;time...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;lt;code&amp;gt;OpenDialogue&amp;lt;/code&amp;gt; Method in DialogueManager Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;OpenDialogue&amp;lt;/code&amp;gt; method in the DialogueManager class is responsible for initiating a dialogue with specified parameters. It is essential for creating dynamic and interactive dialogues within the game.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Parameters:&lt;br /&gt;
** &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; (string): The title of the dialogue.&lt;br /&gt;
** &amp;lt;code&amp;gt;content&amp;lt;/code&amp;gt; (string): The content or body of the dialogue.&lt;br /&gt;
** &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt; (float, optional): The duration for which the dialogue window remains open. The window automatically closes after this time elapses.&lt;br /&gt;
** &amp;lt;code&amp;gt;onUpdate&amp;lt;/code&amp;gt; (Action&amp;lt;float&amp;gt;, optional): An optional callback that is invoked with the remaining time.&lt;br /&gt;
** &amp;lt;code&amp;gt;isSchemeDialog&amp;lt;/code&amp;gt; (bool, optional): Indicates whether the dialogue is part of a node flow or standalone.&lt;br /&gt;
* Return Type: &amp;lt;code&amp;gt;Dialogue&amp;lt;/code&amp;gt;&lt;br /&gt;
** Returns the newly opened dialogue instance.&lt;br /&gt;
* Functionality:&lt;br /&gt;
** Creates a new &amp;lt;code&amp;gt;DialoguePanel&amp;lt;/code&amp;gt; instance for displaying the dialogue.&lt;br /&gt;
** Configures the panel with the provided title, content, and other parameters.&lt;br /&gt;
** Manages the visibility and duration of the dialogue panel.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This method is used to open dialogues in various scenarios within the game, such as character interactions, narrative progression, or player choices. The method's flexibility allows for a wide range of dialogue presentations.&lt;br /&gt;
&lt;br /&gt;
=== Example of Usage ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public class DialogueTrigger : MonoBehaviour {&lt;br /&gt;
    public void TriggerDialogue() {&lt;br /&gt;
        // Open a dialogue with a title and content&lt;br /&gt;
        var dialogue = DialogueManager.OpenDialogue(&lt;br /&gt;
            &amp;quot;Greetings&amp;quot;, &lt;br /&gt;
            &amp;quot;Welcome to the realm of Eldoria!&amp;quot;, &lt;br /&gt;
            10f); // Dialogue with a 10-second duration&lt;br /&gt;
&lt;br /&gt;
        // Add choices to the dialogue&lt;br /&gt;
        dialogue.AddChoice(&amp;quot;Explore&amp;quot;, ExploreEldoria)&lt;br /&gt;
               .AddChoice(&amp;quot;Leave&amp;quot;, LeaveEldoria);&lt;br /&gt;
&lt;br /&gt;
        // Subscribe to the onTimeout event&lt;br /&gt;
        dialogue.onTimeout += () =&amp;gt; Debug.Log(&amp;quot;Dialogue timed out.&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void ExploreEldoria() {&lt;br /&gt;
        Debug.Log(&amp;quot;Chose to explore Eldoria.&amp;quot;);&lt;br /&gt;
        // Additional logic for exploring Eldoria&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void LeaveEldoria() {&lt;br /&gt;
        Debug.Log(&amp;quot;Chose to leave Eldoria.&amp;quot;);&lt;br /&gt;
        // Additional logic for leaving Eldoria&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description: ====&lt;br /&gt;
&lt;br /&gt;
* OpenDialogue: Initiates a dialogue with the title &amp;quot;Greetings&amp;quot; and the message &amp;quot;Welcome to the realm of Eldoria!&amp;quot;.&lt;br /&gt;
* AddChoice: Two choices are added to the dialogue:&lt;br /&gt;
** &amp;quot;Explore&amp;quot;: Calls the &amp;lt;code&amp;gt;ExploreEldoria&amp;lt;/code&amp;gt; method when selected.&lt;br /&gt;
** &amp;quot;Leave&amp;quot;: Calls the &amp;lt;code&amp;gt;LeaveEldoria&amp;lt;/code&amp;gt; method when selected.&lt;br /&gt;
* onTimeout Event: An event handler is added to log a message when the dialogue times out after 10 seconds.&lt;br /&gt;
&lt;br /&gt;
==== Remarks ====&lt;br /&gt;
&lt;br /&gt;
* This example shows how to create a dialogue with choices, allowing players to interact and make selections.&lt;br /&gt;
* The &amp;lt;code&amp;gt;onTimeout&amp;lt;/code&amp;gt; event ensures that actions can be taken if the dialogue closes automatically after a certain duration.&lt;br /&gt;
* This approach is effective for creating engaging and interactive dialogues in the game, providing players with choices that can lead to different outcomes or actions.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;Dialogue&amp;lt;/code&amp;gt; Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Dialogue&amp;lt;/code&amp;gt; class represents an individual dialogue with various functionalities, including adding choices and managing its visibility.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Functionalities:&lt;br /&gt;
** Show/Hide/Close: Controls the visibility of the dialogue.&lt;br /&gt;
** AddChoice: Adds interactive choices to the dialogue with various configurations.&lt;br /&gt;
** Event Handling: Includes events like &amp;lt;code&amp;gt;onTimeout&amp;lt;/code&amp;gt; for handling dialogue-specific actions.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
Used to manage individual dialogues, the &amp;lt;code&amp;gt;Dialogue&amp;lt;/code&amp;gt; class allows for intricate control over the dialogue's presentation and interactivity within the game.&lt;br /&gt;
&lt;br /&gt;
=== Example of Adding Choices ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
Dialogue dialogue = DialogueManager.OpenDialogue(&amp;quot;Question&amp;quot;, &amp;quot;What will you do?&amp;quot;);&lt;br /&gt;
dialogue.AddChoice(&amp;quot;Accept&amp;quot;, () =&amp;gt; Debug.Log(&amp;quot;Accepted&amp;quot;))&lt;br /&gt;
       .AddChoice(&amp;quot;Decline&amp;quot;, () =&amp;gt; Debug.Log(&amp;quot;Declined&amp;quot;));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In this example, a new dialogue is created with two choices, each triggering a different action when selected. This allows for interactive and dynamic dialogue experiences.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;Dialogue&amp;lt;/code&amp;gt; class is integral for creating rich and engaging dialogue interactions in the game.&lt;br /&gt;
* Its ability to handle different dialogue configurations makes it adaptable for various narrative and gameplay scenarios.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>