Difference between revisions of "AGIWiki/Display text on screen"

Jump to navigation Jump to search
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 19: Line 19:
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
print("Hello world");
print("Hello world");
</source>
</syntaxhighlight>


Same but using ability to use #message .
Same but using ability to use #message .
Line 28: Line 28:
return();
return();
#message 1 "Hello world"
#message 1 "Hello world"
</source>
</syntaxhighlight>


This time in the #message-part has been put a [[AGIWiki/String|string]]. Note that string s1 has been defined '''before''' using print-command and #message can be also elsewhere within the logic than beneath return-command.
This time in the #message-part has been put a [[AGIWiki/String|string]]. Note that string s1 has been defined '''before''' using print-command and #message can be also elsewhere within the logic than beneath return-command.
Line 38: Line 38:
return();
return();
#message 1 "%s1"
#message 1 "%s1"
</source>
</syntaxhighlight>


=== Print.v ===
=== Print.v ===
Line 52: Line 52:
#message 1 "%s1"
#message 1 "%s1"
#message 2 "Oh hai world"
#message 2 "Oh hai world"
</source>
</syntaxhighlight>


=== Print.at ===
=== Print.at ===
Line 63: Line 63:
return();
return();
#message 2 "Oh hai world"
#message 2 "Oh hai world"
</source>
</syntaxhighlight>


=== Print.at.v ===
=== Print.at.v ===
Line 89: Line 89:


return();
return();
</source>
</syntaxhighlight>


==== AGI Studio ====
==== AGI Studio ====
Line 108: Line 108:
   }
   }
   return();
   return();
</source>
</syntaxhighlight>


However, it will only print empty, yet right size messagebox. Weird, huh.
However, it will only print empty, yet right size messagebox. Weird, huh.
TrustedUser
2,147

edits

Navigation menu