Difference between revisions of "MessageBox"

Jump to navigation Jump to search
17 bytes added ,  15:42, 12 August 2008
m
no edit summary
imported>Vswe
m (Added Search Terms)
imported>Quetzilla
m
Line 15: Line 15:


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.


== Displaying Variables ==
== Displaying Variables ==
{{MessageFormatting}}
{{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==  
Anonymous user

Navigation menu