UI (functions)/Textbox Settings: Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "== UI:SetBounds(System.Int32,System.Int32,System.Int32,System.Int32) == Sets the position and size of the dialogue box. === Arguments === * <code>x</code>: The X position of the box * <code>y</code>: The Y position of the box * <code>width</code>: Width of the box * <code>height</code>: Height of the box == UI:ResetBounds == Resets the position and size of the dialogue box. == UI:SetCenter(System.Boolean,System.Boolean) == Sets the centering of the text in the..."
 
Imbion (talk | contribs)
No edit summary
 
Line 1: Line 1:
== UI:SetBounds(System.Int32,System.Int32,System.Int32,System.Int32) ==
== SetBounds ==
 
 
Sets the position and size of the dialogue box.


Sets the position and size of the dialogue box. {{FuncUsage|nmspace=UI|nm=SetBounds|args=x, y, width, height}}


=== Arguments ===
=== Arguments ===
{| class="wikitable"
{{ArgHeader}}
{{ArgRow
|name=x
|type=Integer
|techt=System.Int32
|purp=The X position of the box
}}
{{ArgRow
|name=y
|type=Integer
|techt=System.Int32
|purp=The Y position of the box
}}
{{ArgRow
|name=width
|type=Integer
|techt=System.Int32
|purp=Width of the box
}}
{{ArgRow
|name=height
|type=Integer
|techt=System.Int32
|purp=Height of the box
}}
|}


* <code>x</code>: The X position of the box
== ResetBounds ==
* <code>y</code>: The Y position of the box
* <code>width</code>: Width of the box
* <code>height</code>: Height of the box
 
== UI:ResetBounds ==
 


Resets the position and size of the dialogue box.
Resets the position and size of the dialogue box.


== UI:SetCenter(System.Boolean,System.Boolean) ==
== SetCenter ==
 
 
Sets the centering of the text in the textbox.


Sets the centering of the text in the textbox. {{FuncUsage|nmspace=UI|nm=SetCenter|args=centerH, centerV}}


=== Arguments ===
=== Arguments ===
{| class="wikitable"
{{ArgHeader}}
{{ArgRow
|name=centerH
|type=Boolean
|techt=System.Boolean
|purp=Horizontal centering
}}
{{ArgRow
|name=centerV
|type=Boolean
|techt=System.Boolean
|purp=Vertical centering
}}
|}


* <code>centerH</code>: Horizontal centering
== SetAutoFinish ==
* <code>centerV</code>: Vertical centering
 
== UI:SetAutoFinish(System.Boolean) ==
 
 
Makes the text automatically finish when it shows up.


Makes the text automatically finish when it shows up. {{FuncUsage|nmspace=UI|nm=SetAutoFinish|args=autoFinish}}


=== Arguments ===
=== Arguments ===
 
{| class="wikitable"
* <code>autoFinish</code>: Auto-finishes text if true.
{{ArgHeader}}
{{ArgRow
|name=autoFinish
|type=Boolean
|techt=System.Boolean
|purp=Auto-finishes text if true.
}}
|}

Latest revision as of 04:59, 18 January 2026

SetBounds

Sets the position and size of the dialogue box. Argument order is UI:SetBounds(x, y, width, height).

Arguments

Name Type Technical Type Purpose
x Integer System.Int32 The X position of the box
y Integer System.Int32 The Y position of the box
width Integer System.Int32 Width of the box
height Integer System.Int32 Height of the box

ResetBounds

Resets the position and size of the dialogue box.

SetCenter

Sets the centering of the text in the textbox. Argument order is UI:SetCenter(centerH, centerV).

Arguments

Name Type Technical Type Purpose
centerH Boolean System.Boolean Horizontal centering
centerV Boolean System.Boolean Vertical centering

SetAutoFinish

Makes the text automatically finish when it shows up. Argument order is UI:SetAutoFinish(autoFinish).

Arguments

Name Type Technical Type Purpose
autoFinish Boolean System.Boolean Auto-finishes text if true.