Added more overloading modules and cleaned up the template some more.
This commit is contained in:
parent
ad3f19896c
commit
2c46ede247
19 changed files with 269 additions and 236 deletions
|
|
@ -1,58 +1,33 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Connect screen module template
|
||||
Connection screen
|
||||
|
||||
Copy this module one level up, to gamesrc/conf/, name it what
|
||||
you want and modify it to your liking.
|
||||
Texts in this module will be shown to the user at login-time.
|
||||
|
||||
Then you set settings.CONNECTION_SCREEN_MODULE to point to your
|
||||
new module.
|
||||
Evennia will look at global string variables (variables defined
|
||||
at the "outermost" scope of this module and use it as the
|
||||
connection screen. If there are more than one, Evennia will
|
||||
randomize which one it displays.
|
||||
|
||||
|
||||
This module holds textual connection screen definitions. All global
|
||||
string variables (only) in this module are read by Evennia and
|
||||
assumed to define a Connection screen.
|
||||
|
||||
The names of the string variables doesn't matter (but names starting
|
||||
with an underscore will be ignored), but each should hold a string
|
||||
defining a connection screen - as seen when first connecting to the
|
||||
game (before having logged in).
|
||||
|
||||
OBS - If there are more than one global string variable in this
|
||||
module, a random one is picked!
|
||||
|
||||
After adding new connection screens to this module you must either
|
||||
reboot or reload the server to make them available.
|
||||
The commands available to the user when the connection screen is shown
|
||||
are defined in commands.default_cmdsets.UnloggedinCmdSet and the
|
||||
screen is read and displayed by the unlogged-in "look" command.
|
||||
|
||||
"""
|
||||
|
||||
# comment this out if wanting to completely remove the default screen
|
||||
from src.commands.connection_screen import DEFAULT_SCREEN
|
||||
from django.conf import settings
|
||||
from evennia import utils
|
||||
|
||||
## uncomment these for showing the name and version
|
||||
# from django.conf import settings
|
||||
# from src.utils import utils
|
||||
CONNECTION_SCREEN = \
|
||||
"""{b=============================================================={n
|
||||
Welcome to {g%s{n, version %s!
|
||||
|
||||
## A copy of the default screen to modify
|
||||
If you have an existing account, connect to it by typing:
|
||||
{wconnect <username> <password>{n
|
||||
If you need to create an account, type (without the <>'s):
|
||||
{wcreate <username> <password>{n
|
||||
|
||||
# CUSTOM_SCREEN = \
|
||||
#"""{b=============================================================={n
|
||||
# Welcome to {g%s{n, version %s!
|
||||
#
|
||||
# If you have an existing account, connect to it by typing:
|
||||
# {wconnect <username> <password>{n
|
||||
# If you need to create an account, type (without the <>'s):
|
||||
# {wcreate <username> <password>{n
|
||||
#
|
||||
# If you have spaces in your username, enclose it in quotes.
|
||||
# Enter {whelp{n for more info. {wlook{n will re-show this screen.
|
||||
#{b=============================================================={n""" \
|
||||
# % (settings.SERVERNAME, utils.get_evennia_version())
|
||||
|
||||
## Minimal header for use with contrib/menu_login.py
|
||||
|
||||
# MENU_SCREEN = \
|
||||
# """{b=============================================================={n
|
||||
# Welcome to {g%s{n, version %s!
|
||||
# {b=============================================================={n""" \
|
||||
# % (settings.SERVERNAME, utils.get_evennia_version())
|
||||
If you have spaces in your username, enclose it in quotes.
|
||||
Enter {whelp{n for more info. {wlook{n will re-show this screen.
|
||||
{b=============================================================={n""" \
|
||||
% (settings.SERVERNAME, utils.get_evennia_version())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue