Cleaned up the connection screen example a little and added utf-8 encoding token at the top.

This commit is contained in:
Griatch 2014-09-20 09:20:38 +02:00
parent 1b44d9b2ed
commit ddc86f2a8b

View file

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" """
Connect screen module template Connect screen module template
@ -12,12 +13,12 @@ new module.
string variables (only) in this module are read by Evennia and string variables (only) in this module are read by Evennia and
assumed to define a Connection screen. assumed to define a Connection screen.
The names of the string variables doesn't matter (except they The names of the string variables doesn't matter (but names starting
shouldn't start with _), but each should hold a string defining a with an underscore will be ignored), but each should hold a string
connection screen - as seen when first connecting to the game defining a connection screen - as seen when first connecting to the
(before having logged in). game (before having logged in).
OBS - If there are more than one string variable viable in this OBS - If there are more than one global string variable in this
module, a random one is picked! module, a random one is picked!
After adding new connection screens to this module you must either After adding new connection screens to this module you must either
@ -25,13 +26,14 @@ new module.
""" """
# comment this out if wanting to completely remove the default screen
from src.commands.connection_screen import DEFAULT_SCREEN from src.commands.connection_screen import DEFAULT_SCREEN
## uncomment these for the name and version ## uncomment these for showing the name and version
# from django.conf import settings # from django.conf import settings
# from src.utils import utils # from src.utils import utils
# # A copy of the default screen to modify ## A copy of the default screen to modify
# CUSTOM_SCREEN = \ # CUSTOM_SCREEN = \
#"""{b=============================================================={n #"""{b=============================================================={n
@ -47,22 +49,7 @@ from src.commands.connection_screen import DEFAULT_SCREEN
#{b=============================================================={n""" \ #{b=============================================================={n""" \
# % (settings.SERVERNAME, utils.get_evennia_version()) # % (settings.SERVERNAME, utils.get_evennia_version())
# # Mux-like alternative screen for contrib/mux_login.py ## Minimal header for use with contrib/menu_login.py
# MUX_SCREEN = \
# """{b=============================================================={n
# Welcome to {g%s{n, version %s!
#
# If you have an existing account, connect to it by typing:
# {wconnect <email> <password>{n
# If you need to create an account, type (without the <>'s):
# {wcreate \"<username>\" <email> <password>{n
#
# Enter {whelp{n for more info. {wlook{n will re-load this screen.
#{b=============================================================={n""" \
# % (settings.SERVERNAME, utils.get_evennia_version())
# # Menu login minimal header for contrib/menu_login.py
# MENU_SCREEN = \ # MENU_SCREEN = \
# """{b=============================================================={n # """{b=============================================================={n