Difference between revisions of "Area 51"
Jump to navigation
Jump to search
(→setupMapSymbolFont: Moved here from Manual:Mapper_Functions) |
(Correct header levels) |
||
Line 8: | Line 8: | ||
− | + | =Basic Essential Functions= | |
:These functions are generic functions used in normal scripting. These deal with mainly everyday things, like sending stuff and echoing to the screen. | :These functions are generic functions used in normal scripting. These deal with mainly everyday things, like sending stuff and echoing to the screen. | ||
− | + | =Database Functions= | |
:A collection of functions for helping deal with the database. | :A collection of functions for helping deal with the database. | ||
− | + | =Date/Time Functions= | |
: A collection of functions for handling date & time. | : A collection of functions for handling date & time. | ||
− | + | =File System Functions= | |
: A collection of functions for interacting with the file system. | : A collection of functions for interacting with the file system. | ||
− | + | =Mapper Functions= | |
: A collection of functions that manipulate the mapper and its related features. | : A collection of functions that manipulate the mapper and its related features. | ||
Line 45: | Line 45: | ||
{{note}} pending, not yet available. | {{note}} pending, not yet available. | ||
− | + | =Miscellaneous Functions= | |
: Miscellaneous functions. | : Miscellaneous functions. | ||
− | + | =Scripting Object Functions= | |
: A collection of arrows that manipulate Mudlets scripting objects - triggers, aliases, and so forth. | : A collection of arrows that manipulate Mudlets scripting objects - triggers, aliases, and so forth. | ||
− | + | =Networking Functions= | |
: A collection of functions for managing networking. | : A collection of functions for managing networking. | ||
− | + | =String Functions= | |
: These functions are used to manipulate strings. | : These functions are used to manipulate strings. | ||
− | + | =Table Functions= | |
: These functions are used to manipulate tables. Through them you can add to tables, remove values, check if a value is present in the table, check the size of a table, and more. | : These functions are used to manipulate tables. Through them you can add to tables, remove values, check if a value is present in the table, check the size of a table, and more. | ||
− | + | =Text to Speech Functions= | |
: These functions are used to create sound from written words. Check out our [[Special:MyLanguage/Manual:Text-to-Speech|Text-To-Speech Manual]] for more detail on how this all works together. | : These functions are used to create sound from written words. Check out our [[Special:MyLanguage/Manual:Text-to-Speech|Text-To-Speech Manual]] for more detail on how this all works together. | ||
− | + | =UI Functions= | |
: These functions are used to construct custom user GUIs. They deal mainly with miniconsole/label/gauge creation and manipulation as well as displaying or formatting information on the screen. | : These functions are used to construct custom user GUIs. They deal mainly with miniconsole/label/gauge creation and manipulation as well as displaying or formatting information on the screen. |
Revision as of 10:53, 11 June 2021
This page is for the development of documentation for Lua API functions that are currently being worked on. Ideally the entries here can be created in the same format as will be eventually used in Lua Functions and its sub-sites.
Please use the Area_51_documentation/Template to add new entries in the sections below.
The following headings reflect those present in the main Wiki area of the Lua API functions. It is suggested that new entries are added so as to maintain a sorted alphabetical order under the appropriate heading.
Basic Essential Functions
- These functions are generic functions used in normal scripting. These deal with mainly everyday things, like sending stuff and echoing to the screen.
Database Functions
- A collection of functions for helping deal with the database.
Date/Time Functions
- A collection of functions for handling date & time.
File System Functions
- A collection of functions for interacting with the file system.
Mapper Functions
- A collection of functions that manipulate the mapper and its related features.
setupMapSymbolFont
- setupMapSymbolFont(fontName[, onlyUseThisFont[, scalingFactor]])
- configures the font used for symbols in the (2D) map.
- See also: mapSymbolFontInfo()
- Parameters
- fontName one of:
- - a string that is the family name of the font to use;
- - the empty string "" to reset to the default {which is "Bitstream Vera Sans Mono"};
- - a Lua nil as a placeholder to not change this parameter but still allow a following one to be modified.
- onlyUseThisFont (optional) one of:
- - a Lua boolean true to require Mudlet to use graphemes (character) only from the selected font. Should a requested grapheme not be included in the selected font then the font replacement character (�) might be used instead; note that under some circumstances it is possible that the OS (or Mudlet) provided color Emoji Font may still be used but that cannot be guaranteed across all OS platforms that Mudlet might be run on;
- - a Lua boolean false to allow Mudlet to get a different glyph for a particular grapheme from the most suitable other font found in the system should there not be a glyph for it in the requested font. This is the default unless previously changed by this function or by the corresponding checkbox in the Profile Preferences dialogue for the profile concerned;
- - a Lua nil as a placeholder to not change this parameter but still allow the following one to be modified.
- scalingFactor (optional): a floating point value in the range 0.5 to 2.0 (default 1.0) that can be used to tweak the rectangular space that each different room symbol is scaled to fit inside; this might be useful should the range of characters used to make the room symbols be consistently under- or over-sized.
- Returns
- true on success
- nil and an error message on failure. As the symbol font details are stored in the (binary) map file rather than the profile then this function will not work until a map is loaded (or initialised, by activating a map window).
Note: pending, not yet available.
Miscellaneous Functions
- Miscellaneous functions.
Scripting Object Functions
- A collection of arrows that manipulate Mudlets scripting objects - triggers, aliases, and so forth.
Networking Functions
- A collection of functions for managing networking.
String Functions
- These functions are used to manipulate strings.
Table Functions
- These functions are used to manipulate tables. Through them you can add to tables, remove values, check if a value is present in the table, check the size of a table, and more.
Text to Speech Functions
- These functions are used to create sound from written words. Check out our Text-To-Speech Manual for more detail on how this all works together.
UI Functions
- These functions are used to construct custom user GUIs. They deal mainly with miniconsole/label/gauge creation and manipulation as well as displaying or formatting information on the screen.