You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default scale in San Andreas is roughly 0.48 × 1.12.
62
62
63
-
## Alignment
63
+
###Alignment
64
64
65
65
By default, text is left-aligned. You can change the alignment with `SET_TEXT_CENTRE` or `SET_TEXT_RIGHT_JUSTIFY`:
66
66
@@ -79,7 +79,7 @@ set_text_centre {state} true
79
79
set_text_centre_size {width} 400.0
80
80
```
81
81
82
-
## Text Wrapping
82
+
###Text Wrapping
83
83
84
84
`SET_TEXT_WRAPX` controls where the text wraps to the next line. The value is a screen position (not a width), so a wrap x of `400.0` means the text will wrap when it reaches the `400.0` mark on the screen:
85
85
@@ -89,23 +89,23 @@ set_text_wrapx {width} 400.0
89
89
90
90
If your text is being cut off or wrapping too early, adjusting this value is usually the fix.
91
91
92
-
## Font
92
+
###Font
93
93
94
94
`SET_TEXT_FONT` selects which font to use. The available fonts depend on the game:
95
95
96
96
```sb
97
97
set_text_font {font} 2
98
98
```
99
99
100
-
## Background
100
+
###Background
101
101
102
102
`SET_TEXT_BACKGROUND` adds a dark rectangle behind the text, making it easier to read over busy scenes:
103
103
104
104
```sb
105
105
set_text_background {state} true
106
106
```
107
107
108
-
## Other Options
108
+
###Other Options
109
109
110
110
`SET_TEXT_PROPORTIONAL` enables proportional character spacing, where each character takes up only as much width as it needs. When disabled, all characters occupy the same width:
0 commit comments