mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Rewrote and rename "dialog_box" to "message_box"
Added support for '\n' control character to create_message_window. Fix the playback of the speech sound file for the death screen.
This commit is contained in:
@@ -717,12 +717,13 @@ optional argument:
|
||||
- sets a floating text for a town on the world map when hovering the cursor over the player's marker
|
||||
- areaID: the ID number of the town from city.txt
|
||||
|
||||
> int sfall_func1("dialog_box", string text1)
|
||||
> int sfall_func2("dialog_box", string text1, string text2)
|
||||
> int sfall_func3("dialog_box", string text1, string text2, string text3)
|
||||
- creates a dialog box with text and returns the result of pressing the button: 0 - No, 1 - Yes
|
||||
- text1/text2/text3: corresponding text in the dialog box for the first, second, and third lines
|
||||
> int sfall_func4("message_box", string message, int flags, int color1, int color2)
|
||||
- creates a dialog box with text and returns the result of pressing the button: 0 - No, 1 - Yes/Done
|
||||
- returns -1 if for some reason the dialog box cannot be created
|
||||
- message: the text in the dialog box. Use the \n control character to move text to a new line (example: "Hello\nWorld!")
|
||||
optional arguments:
|
||||
- flags: mode flags (see DIALOGOUT_* constants in define_extra.h). Pass -1 to skip setting the flags (default flags are DIALOGOUT_NORMAL|DIALOGOUT_YESNO)
|
||||
- color1/2: the color index in Fallout palette. color1 sets the text color for the first line, and color2 for all subsequent lines of text (default color is 145)
|
||||
|
||||
------------------------
|
||||
------ MORE INFO -------
|
||||
|
||||
Reference in New Issue
Block a user