Difference between revisions of "Chat box"
From Unofficial QEdit Wiki Guide
m (→Syntax) |
LunarFuror (Talk | contribs) (→Values of windowed options.) |
||
Line 21: | Line 21: | ||
* ''T_STR'' = Text string what you want your message to say goes here. | * ''T_STR'' = Text string what you want your message to say goes here. | ||
+ | ** See list of [[Special characters]] | ||
==Use== | ==Use== |
Latest revision as of 14:08, 9 April 2021
Syntax
Syntax: chat_box T_DWORD1, T_DWORD2, T_DWORD3, T_DWORD4, T_DWORD5, T_STR
- T_DWORD1 = Left, right screen position where the top left corner of chat box will appear on screen. (00000000 is the top left corner of the screen.)
- T_DWORD2 = Up, down screen position where the top left corner of chat box will appear on screen. (00000000 is the top left corner of the screen.)
- T_DWORD3 = Chat box width. Ending margin of the chat box. (Word wrap will kick in if you run over your end margin.)
- T_DWORD4 = Chat box hight. Columns of the chat box.
- T_DWORD5 = Windowed options.
Values of windowed options.
00000000 = Windowed white window message style.
00000001 = Windowed chat box style.
00000002 = Not windowed will display text with no underlay.
- T_STR = Text string what you want your message to say goes here.
- See list of Special characters
Use
Used to display a text message in a chat box at the screen location, in the box size, and the box windowed option type that are defined by the T_DWORD(s) of the opcode.
Note: To close the chat box use winend.
Example
100: chat_box 00000000, 00000000, 0000001E, 0000005, 00000001, This<cr>is<cr>a<cr>chat_box<cr>test. //Displays a chat_box_message.
winend //Closes the chat_box message.
ret