12/28/2023 0 Comments Mudlet string functions![]() (Optional) A floating point number for the absolute coordinate to use or the relative amount to move the label in "room coordinates" along the Z-axis, if omitted the label is not moved in the z-axis at all. with mo or AreaName as string containing the map label.Ī floating point number for the absolute coordinate to use or the relative amount to move the label in "room coordinates" along the X-axis.Ī floating point number for the absolute coordinate to use or the relative amount to move the label in "room coordinates" along the Y-axis. All labels will have a unique ID number but there may be more than one text labels with a non-empty text string only the first matching one will be moved by this function and image labels also have no text and will match the empty string. Label ID as number (which will be 0 or greater) or the LabelText on a text label. See ParametersĪrea ID as number or AreaName as string containing the map label. When moving a label to given coordinates this is the position that the top-left corner of the label will be positioned at since the space allocated to a particular room on the map is ± 0.5 around the integer value of its x and y coordinates this means for a label which has a size of 1.0 x 1,0 (w x h) to position it centrally in the space for a single room at the coordinates (x, y, z) it should be positioned at (x - 0.5, y + 0.5, z). Re-positions a map label within an area in the 2D mapper, in a similar manner as the moveRoom() function does for rooms and their custom exit lines. ![]() moveMapLabel, PR #6014 open moveMapLabel(areaID/Name, labeID/Text, coordX/deltaX, coordY/deltaY) or nil and an error message on failure.Īs 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 initialized, by activating a map window).scalingFactor - a floating point number between 0.50 and 2.00 which modifies the size of the symbols somewhat though the extremes are likely to be unsatisfactory because some of the particular symbols may be too small (and be less visible at smaller zoom levels) or too large (and be clipped by the edges of the room rectangle or circle).Note that this may not affect the use of Color Emoji glyphs that are automatically used in some OSes but that behavior does vary across the range of operating systems that Mudlet can be run on. Should this be true and the specified font does not have the required glyph then the replacement character (typically something like �) could be used instead. onlyUseThisFont - a boolean indicating whether glyphs from just the fontName font are to be used or if there is not a glyph for the required grapheme ( character) then a glyph from the most suitable different font will be substituted instead.fontName - a string of the family name of the font specified.either a table of information about the configuration of the font used for symbols in the (2D) map, the elements are:.mapSymbolFontInfo, PR #4038 closed mapSymbolFontInfo() See also: setupMapSymbolFont() Mapper Functions A collection of functions that manipulate the mapper and its related features. File System Functions A collection of functions for interacting with the file system. ![]() Date/Time Functions A collection of functions for handling date & time. Database Functions A collection of functions for helping deal with the database. These deal with mainly everyday things, like sending stuff and echoing to the screen. It is suggested that new entries are added so as to maintain a sorted alphabetical order under the appropriate heading.īasic Essential Functions These functions are generic functions used in normal scripting. The following headings reflect those present in the main Wiki area of the Lua API functions. ![]() Note that this ought to be removed once the article is moved to the main wiki area! Which would refer to a link within the current (in this case Area 51) section. the main Wiki area) need to include the section details before the '#' character in the link identifier on the left side of the '|' divider between the identifier and the display text. Links to other functions or parts in other sections (i.e. Please use the Area_51/Template to add new entries in the sections below. Ideally the entries here can be created in the same format as will be eventually used in Lua Functions and its sub-sites. This page is for the development of documentation for Lua API functions that are currently being worked on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |