mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update api docs
This commit is contained in:
parent
f88abfe38c
commit
305bbe4d5e
7 changed files with 24 additions and 11 deletions
|
|
@ -205,6 +205,19 @@ Up requirements to Django 4.0+, Twisted 22+, Python 3.9 or 3.10
|
|||
- Make setting `MAX_NR_CHARACTERS` interact better with the new settings above.
|
||||
- Allow `$search` funcparser func to search tags and to accept kwargs for more
|
||||
powerful searches passed into the regular search functions.
|
||||
- `spawner.spawn` and linked methods now has a kwarg `protfunc_raise_errors`
|
||||
(default True) to disable strict errors on malformed/not-found protfuncs
|
||||
- Improve search performance when having many DB-based prototypes via caching.
|
||||
- Remove the `return_parents` kwarg of `evennia.prototypes.spawner.spawn` since it
|
||||
was inefficient and unused.
|
||||
- Made all id fields BigAutoField for all databases. (owllex)
|
||||
- `EvForm` refactored. New `literals` mapping, for literal mappings into the
|
||||
main template (e.g. for single-character replacements).
|
||||
- `EvForm` `cells` kwarg now accepts `EvCells` with custom formatting options
|
||||
(mainly for custom align/valign). `EvCells` now makes use of `utils.justify`.
|
||||
- `utils.justify` now supports `align="a"` (absolute alignments. This keeps
|
||||
the given left indent but crops/fills to the width. Used in EvCells.
|
||||
- `EvTable` now supports passing `EvColumn`s as a list directly, (`EvTable(table=[colA,colB])`)
|
||||
|
||||
## Evennia 0.9.5
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
# EvForm
|
||||
|
||||
[Docstring in evennia/utils/evform.py](api:evennia.utils.evform)
|
||||
[Docstring in evennia/utils/evform.py](evennia.utils.evform)
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
# EvTable
|
||||
|
||||
[Docstring in evennia/utils/evtable.py](api:evennia.utils.evtable)
|
||||
[Docstring in evennia/utils/evtable.py](evennia.utils.evtable)
|
||||
|
|
@ -41,7 +41,7 @@ COLOR_XTERM256_EXTRA_FG = color_markups.CURLY_COLOR_XTERM256_EXTRA_FG
|
|||
COLOR_XTERM256_EXTRA_BG = color_markups.CURLY_COLOR_XTERM256_EXTRA_BG
|
||||
COLOR_XTERM256_EXTRA_GFG = color_markups.CURLY_COLOR_XTERM256_EXTRA_GFG
|
||||
COLOR_XTERM256_EXTRA_GBG = color_markups.CURLY_COLOR_XTERM256_EXTRA_GBG
|
||||
COLOR_ANSI_BRIGHT_BG_EXTRA_MAP = color_markups.CURLY_COLOR_ANSI_BRIGHT_BG_EXTRA_MAP
|
||||
COLOR_ANSI_XTERM256_BRIGHT_BG_EXTRA_MAP = color_markups.CURLY_COLOR_ANSI_XTERM256_BRIGHT_BG_EXTRA_MAP
|
||||
```
|
||||
|
||||
To add the `%c-` "mux/mush" style, add the following to your settings file, then
|
||||
|
|
@ -54,7 +54,7 @@ COLOR_XTERM256_EXTRA_FG = color_markups.MUX_COLOR_XTERM256_EXTRA_FG
|
|||
COLOR_XTERM256_EXTRA_BG = color_markups.MUX_COLOR_XTERM256_EXTRA_BG
|
||||
COLOR_XTERM256_EXTRA_GFG = color_markups.MUX_COLOR_XTERM256_EXTRA_GFG
|
||||
COLOR_XTERM256_EXTRA_GBG = color_markups.MUX_COLOR_XTERM256_EXTRA_GBG
|
||||
COLOR_ANSI_BRIGHT_BGS_EXTRA_MAP = color_markups.CURLY_COLOR_ANSI_BRIGHT_BGS_EXTRA_MAP
|
||||
COLOR_ANSI_XTERM256_BRIGHT_BG_EXTRA_MAP = color_markups.MUX_COLOR_ANSI_XTERM256_BRIGHT_BG_EXTRA_MAP
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Custom gametime
|
||||
# Custom gameime
|
||||
|
||||
Contrib by vlgeoff, 2017 - based on Griatch's core original
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ combine if you want to echo some message to the user after the cooldown ends.
|
|||
|
||||
## The Cooldown Contrib
|
||||
|
||||
The [Cooldown contrib](Contribs/Contrib-Cooldowns) is a ready-made solution for
|
||||
The [Cooldown contrib](../Contribs/Contrib-Cooldowns.md) is a ready-made solution for
|
||||
command cooldowns you can use. It implements a _handler_ on the object to
|
||||
conveniently manage and store the cooldowns in a similar manner exemplified in
|
||||
this tutorial.
|
||||
|
|
@ -73,7 +73,7 @@ forgotten.
|
|||
## Persistent cooldown
|
||||
|
||||
To make a cooldown _persistent_ (so it survives a server reload), just
|
||||
use the same technique, but use [Attributes](Attributes) (that is, `.db` instead
|
||||
use the same technique, but use [Attributes](../Components/Attributes.md) (that is, `.db` instead
|
||||
of `.ndb` storage to save the last-cast time.
|
||||
|
||||
## Make a cooldown-aware command parent
|
||||
|
|
|
|||
|
|
@ -320,8 +320,10 @@ ATTRIBUTE_STORED_MODEL_RENAME = [
|
|||
(("players", "playerdb"), ("accounts", "accountdb")),
|
||||
(("typeclasses", "defaultplayer"), ("typeclasses", "defaultaccount")),
|
||||
]
|
||||
# Default type of autofield (required by Django)
|
||||
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
|
||||
# Default type of autofield (required by Django), which defines the type of
|
||||
# primary key fields for all tables. This type is guaranteed to be at least a
|
||||
# 64-bit integer.
|
||||
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
||||
|
||||
######################################################################
|
||||
# Evennia webclient options
|
||||
|
|
@ -604,8 +606,6 @@ OPTIONS_ACCOUNT_DEFAULT = {
|
|||
"footer_text_color": ("Text inside Footer Lines.", "Color", "n"),
|
||||
"footer_fill": ("Fill for Footer Lines.", "Text", "="),
|
||||
"column_names_color": ("Table column header text.", "Color", "w"),
|
||||
"help_category_color": ("Help category names.", "Color", "n"),
|
||||
"help_entry_color": ("Help entry names.", "Color", "n"),
|
||||
"timezone": ("Timezone for dates.", "Timezone", "UTC"),
|
||||
}
|
||||
# Modules holding Option classes, responsible for serializing the option and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue