Text prompt
Appearance
| This article or section is incomplete. It doesn't have all of the necessary core information on this topic. Please help the SRB2 Wiki by finishing this article. |
SRB2 allows for text prompts, to display text. In vanilla, this is used for the Tutorial. A prompt is created using SOC
Format
A Prompt section in a SOC consists of two elements: a header and page blocks.
Header
Promptdefines the number of the prompt. (NOTE: This number should not go beyond 291)NumPagesdefines the number of pages that the prompt will have. This number should match the number of page blocks that will follow afterwards.
Page blocks
Pagedefines the number of the page. This line starts a page block.TagThe text to use to call this promptNameThe Name to display for this promptIconThe Icon for this promptIconAlignShould the icon be on the left or right?LinesHow many lines of text space to givePageTextThe actual text to displayHideHudTODOPicModeTODOPicToLoopTODO
NumberOfPicssets the number of pictures that exist in the page. If a page consists of multiple pictures, the game will cycle through them one by one, like a slideshow. Each picture is shown for a specific duration before moving on to the next one, until all pictures have been shown.- The next section of the page block defines the parameters for each picture defined in
NumberOfPics. The names of the parameters depend on the picture number – for each picture number i, there are five parameters:PiciName,PiciHires,PiciDuration,PiciXCoordandPiciYCord. Below the parameters are explained using picture 1 as an example.Pic1Nameis the lump name of the picture used in the page. The lump referenced must be in Doom Graphics Format; otherwise the game will crash.Pic1Hiresdefines whether the picture is in high resolution (if set totrueor 1) or not (if set tofalseor 0). Picture placement is based on a 320×200 resolution base screen. A high resolution picture has double the width and height of a normal resolution picture. For example, if a normal resolution picture were to cover up the entire screen, its size would be 320×200. A high resolution version of the picture would be 640×400.Pic1Durationis the amount of time the individual picture will stay on the screen, measured in tics. Remember that 35 tics = 1 second. After the duration is over, either the next picture will be displayed, or the page ends if there is none. Note that the total length of the page is based not just on the sum of the individual picture durations, but also on the time it takes to display the page's text. The page will end either after all pictures have been displayed or a few seconds after the text has finished displaying, whatever comes first.Pic1XCoordis the X-axis, or horizontal, position of the picture on the screen, measured in pixels. Note that positioning is based on a 320×200 resolution base screen. If the picture's X coordinate is 10, it will be placed 10 pixels to the right of the left border on a 320×200 screen. For higher screen resolutions, the sizes and positions are scaled proportionally, e.g., on a 640×400 screen a picture with an X coordinate of 10 will be placed 20 pixels to the right.Pic1YCoordis the Y-axis, or vertical, position of the picture on the screen, measured in pixels.MetaPageTODOTextSpeedHow quickly to display the textTimeToNextHow long to wait before automatically moving to the next page
| SOC | [view] | |
| General | Clear • MainCfg
| |
| Objects | Object • State • Sound • Sprite2 • SpriteInfo • Sprite2Info • Freeslot
| |
| Unlockable content | Emblem • ExtraEmblem • Unlockable • ConditionSet
| |
| Miscellaneous | Wipes • Character • Level • Cutscene / Scene • Prompt • Menu • HudItem
| |
| Related links | Actions • Constants • Custom Object tutorial | |