UI (functions)/Speaker Settings: Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "== UI:SetSe(System.String,System.Int32) == Sets the speaker sound effect and speak frames played in the TextDialogue functions. === Arguments === * <code>newSe</code>: The sound effect of the box * <code>speakTime</code>: The amount of frames to wait between each sound effect === Example === <pre> UI:SetSe("Battle/_UNK_DUN_Water_Drop", 3) </pre> == UI:SetSe(System.String) == Sets the speaker sound effect played in the TextDialogue functions. === Arguments =..."
 
Imbion (talk | contribs)
No edit summary
 
Line 1: Line 1:
== UI:SetSe(System.String,System.Int32) ==
== SetSe ==
 
 
Sets the speaker sound effect and speak frames played in the TextDialogue functions.


Sets the speaker sound effect and speak frames played in the TextDialogue functions.{{FuncUsage|nmspace=UI|nm=SetSe|args=soundE, speakTime}}


=== Arguments ===
=== Arguments ===
 
{|class="wikitable"
* <code>newSe</code>: The sound effect of the box
{{ArgHeader}}
* <code>speakTime</code>: The amount of frames to wait between each sound effect
{{ArgRow
|name=soundE
|type=String
|techt=System.String
|purp=The sound effect of the box
}}
|-
{{ArgRow
|name=speakTime
|type=Integer
|techt=System.Int32
|purp=The amount of frames to wait between each sound effect. Optional.
}}
|}


=== Example ===
=== Example ===
Line 15: Line 26:


UI:SetSe("Battle/_UNK_DUN_Water_Drop", 3)
UI:SetSe("Battle/_UNK_DUN_Water_Drop", 3)
</pre>
== UI:SetSe(System.String) ==
Sets the speaker sound effect played in the TextDialogue functions.
=== Arguments ===
* <code>newSe</code>: The sound effect of the box
=== Example ===
<pre>
UI:SetSe("Menu/Unknown-3")
UI:SetSe("Menu/Unknown-3")


</pre>
</pre>


== UI:SetSpeakTime(System.Int32) ==
== SetSpeakTime ==
 
 
Sets the speak frames played in the TextDialogue functions.


Sets the speak frames played in the TextDialogue functions. {{FuncUsage|nmspace=UI|nm=SetSpeakTime|args=speakTime}}


=== Arguments ===
=== Arguments ===
 
{|class="wikitable"
* <code>speakTime</code>: The amount of frames to wait between each sound effect
{{ArgHeader}}
{{ArgRow
|name=speakTime
|type=Integer
|techt=System.Int32
|purp=The amount of frames to wait between each sound effect
}}
|}


=== Example ===
=== Example ===
Line 54: Line 53:
</pre>
</pre>


== UI:ResetSe ==
== ResetSe ==
 


Resets to the default speaker sound effect and speaker frames.
Resets to the default speaker sound effect and speaker frames.


== UI:SetSpeakerLoc(System.Int32,System.Int32) ==
== SetSpeakerLoc ==
 
 
Sets the position of the speaker in a dialogue box.


Sets the position of the speaker in a dialogue box. {{FuncUsage|nmspace=UI|nm=SetSpeakerLoc|args=x, y}}


=== Arguments ===
=== Arguments ===
{|class="wikitable"
{{ArgHeader}}
{{ArgRow
|name=x
|type=Integer
|techt=System.Int32
|purp=The X position
}}
{{ArgRow
|name=y
|type=Integer
|techt=System.Int32
|purp=The Y position
}}
|}


* <code>x</code>: The X position
== ResetSpeakerLoc ==
* <code>y</code>: The Y position
 
== UI:ResetSpeakerLoc ==
 


Resets the position of the speaker in a dialogue box.
Resets the position of the speaker in a dialogue box.


== SetSpeakerEmotion ==


== UI:SetSpeakerEmotion(System.String,System.Boolean) ==
Sets the emotion of the speaker in the dialogue box. {{FuncUsage|nmspace=UI|nm=SetSpeakerEmotion|args=emotion, faceLeft}}
 
 
Sets the emotion of the speaker in the dialogue box.
 


=== Arguments ===
=== Arguments ===
 
{|class="wikitable"
* <code>emo</code>: Emotion to display
{{ArgHeader}}
* <code>reverse</code>: Faces right if false, left if true.
{{ArgRow
|name=emotion
|type=String
|techt=System.String
|purp=Emotion to display
}}
{{ArgRow
|name=faceLeft
|type=Boolean
|techt=System.Boolean
|purp=Faces right if false, left if true.
}}
|}

Latest revision as of 11:42, 18 January 2026

SetSe

Sets the speaker sound effect and speak frames played in the TextDialogue functions.Argument order is UI:SetSe(soundE, speakTime).

Arguments

Name Type Technical Type Purpose
soundE String System.String The sound effect of the box
speakTime Integer System.Int32 The amount of frames to wait between each sound effect. Optional.

Example


UI:SetSe("Battle/_UNK_DUN_Water_Drop", 3)
UI:SetSe("Menu/Unknown-3")

SetSpeakTime

Sets the speak frames played in the TextDialogue functions. Argument order is UI:SetSpeakTime(speakTime).

Arguments

Name Type Technical Type Purpose
speakTime Integer System.Int32 The amount of frames to wait between each sound effect

Example


UI:SetSpeakTime(10)

ResetSe

Resets to the default speaker sound effect and speaker frames.

SetSpeakerLoc

Sets the position of the speaker in a dialogue box. Argument order is UI:SetSpeakerLoc(x, y).

Arguments

Name Type Technical Type Purpose
x Integer System.Int32 The X position
y Integer System.Int32 The Y position

ResetSpeakerLoc

Resets the position of the speaker in a dialogue box.

SetSpeakerEmotion

Sets the emotion of the speaker in the dialogue box. Argument order is UI:SetSpeakerEmotion(emotion, faceLeft).

Arguments

Name Type Technical Type Purpose
emotion String System.String Emotion to display
faceLeft Boolean System.Boolean Faces right if false, left if true.