Both sides previous revisionPrevious revision | |
custom:text.dat [2023/10/27 19:10] – [text.dat file] Mention that text.dat is CP437 (not UTF-8) digital man | custom:text.dat [2024/10/29 00:42] (current) – [Customization Methods] Add more details about bbs.text and system.text additions digital man |
---|
- The [[util:Baja]] ''REVERT_TEXT'' or [[custom:JavaScript]] ''bbs.revert_text'' function may be used to revert to the original set of text strings loaded from the ''text.dat'' file upon initialization | - The [[util:Baja]] ''REVERT_TEXT'' or [[custom:JavaScript]] ''bbs.revert_text'' function may be used to revert to the original set of text strings loaded from the ''text.dat'' file upon initialization |
| |
The current ''text.dat'' strings may be obtained (e.g. for display purposes) using the [[custom:JavaScript]] ''bbs.text'' function. The caller must pass the number of the text string they wish to obtain. | The current ''text.dat'' strings may be obtained (e.g. for display purposes) using the [[custom:JavaScript]] ''bbs.text()'' or ''system.text()'' functions. The caller must pass the 1-based index or ID of the text string they wish to obtain. |
| |
All of the ''text.dat'' names and numbers can be found in: | All of the ''text.dat'' IDs and index numbers can be found in: |
- The [[custom:JavaScript]] load file: ''[[dir:exec]]/load/[[https://gitlab.synchro.net/sbbs/sbbs/-/blob/master/exec/load/text.js|text.js]]'' | - The [[custom:JavaScript]] load file: ''[[dir:exec]]/load/[[https://gitlab.synchro.net/sbbs/sbbs/-/blob/master/exec/load/text.js|text.js]]'' |
| - Properties of the JavaScript ''bbs.text'' or ''system.text'' functions (no need to require/load the ''text.js'' file) |
- The C header file: ''[[https://gitlab.synchro.net/sbbs/sbbs/-/blob/master/src/sbbs3/text.h]]'' | - The C header file: ''[[https://gitlab.synchro.net/sbbs/sbbs/-/blob/master/src/sbbs3/text.h]]'' |
| |