Difference between revisions of "MessageBox"

494 bytes added ,  00:23, 8 August 2010
no edit summary
imported>Haama
imported>DragoonWraith
 
(10 intermediate revisions by 6 users not shown)
Line 16: Line 16:
This function sends the value -1 to the GetButtonPressed function while the window is still open, until the player selects a button.
This function sends the value -1 to the GetButtonPressed function while the window is still open, until the player selects a button.


 
==Notes==
*For info on how to create working menus see [[MessageBox Tutorial]].
*When creating menus for mods it can be helpful to standardize how information and choices are displayed.  See [[Standard Menu UI]] for some helpful suggestions.


== Displaying Variables ==
== Displaying Variables ==
{{MessageFormating}}
{{MessageFormatting}}
 
====Examples====
 
 
===Examples===


  MessageBox "Var1:% 5.2f / Var2:% 5.2f" Var1 Var2
  MessageBox "Var1:% 5.2f / Var2:% 5.2f" Var1 Var2
'''"Var1:   123.45 / Var2:  -123.45"'''
Displays: '''"Var1:   123.45 / Var2:  -123.45"'''
 
----


  MessageBox "Var1:%05.2f / Var2:%05.2f" Var1 Var2
  MessageBox "Var1:%05.2f / Var2:%05.2f" Var1 Var2
'''"Var1: 00123.45 / Var2:-00123.45"'''
Displays: '''"Var1: 00123.45 / Var2:-00123.45"'''
 
----


  MessageBox "Var1:%+-5.0f / Var2:%+-5.0f" Var1 Var2
  MessageBox "Var1:%+-5.0f / Var2:%+-5.0f" Var1 Var2
'''"Var1:+123   / Var2:-123  "'''
Displays: '''"Var1:+123   / Var2:-123  "'''
 
----


  MessageBox "Var1:% .3e / Var2:% .3e" Var1 Var2
  MessageBox "Var1:% .3e / Var2:% .3e" Var1 Var2
'''"Var1: 1.234E+2 / Var2:-1.234E+2"'''
Displays: '''"Var1: 1.234E+2 / Var2:-1.234E+2"'''


==See Also==  
==See Also==  
[[Message]]<br>
* [[MessageBoxEX]]
[[GetButtonPressed]]  
* [[Message]]
* [[MessageEx]]
* [[PrintToConsole]]
* [[GetButtonPressed]]
* [[MessageBox Tutorial]]
* [[Standard Menu UI]]
 
[[Category:Functions]]
[[Category:Functions (CS)]]
[[Category:Functions (CS 1.0)]]
[[Category:Output Functions]]
[[Category:Output Functions (CS 1.0)]]


[[Category: Functions]]
<!-- Begin Search Terms
[[Category: Miscellaneous Functions]]
message
[[MessageBox Tutorial]]
box
End Search Terms -->