Changed the default login screen to change with settings.SERVERNAME.

This commit is contained in:
Griatch 2014-03-08 23:10:26 +01:00
parent 84dae72dfb
commit 2edea1eace
2 changed files with 17 additions and 9 deletions

View file

@ -25,14 +25,17 @@ new module.
"""
from src.utils import utils
from src.commands.connection_screen import DEFAULT_SCREEN
## uncomment these for the name and version
# from django.conf import settings
# from src.utils import utils
# # A copy of the default screen to modify
# CUSTOM_SCREEN = \
#"""{b=============================================================={n
# Welcome to {gEvennia{n, version %s!
# Welcome to {g%s{n, version %s!
#
# If you have an existing account, connect to it by typing:
# {wconnect <username> <password>{n
@ -41,13 +44,14 @@ from src.commands.connection_screen import DEFAULT_SCREEN
#
# 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""" % utils.get_evennia_version()
#{b=============================================================={n""" \
# % (settings.SERVERNAME, utils.get_evennia_version())
# # Mux-like alternative screen for contrib/mux_login.py
# MUX_SCREEN = \
# """{b=============================================================={n
# Welcome to {gEvennia{n, version %s!
# Welcome to {g%s{n, version %s!
#
# If you have an existing account, connect to it by typing:
# {wconnect <email> <password>{n
@ -55,11 +59,13 @@ from src.commands.connection_screen import DEFAULT_SCREEN
# {wcreate \"<username>\" <email> <password>{n
#
# Enter {whelp{n for more info. {wlook{n will re-load this screen.
#{b=============================================================={n""" % utils.get_evennia_version()
#{b=============================================================={n""" \
# % (settings.SERVERNAME, utils.get_evennia_version())
# # Menu login minimal header for contrib/menu_login.py
# MENU_SCREEN = \
# """{b=============================================================={n
# Welcome to {gEvennnia{n, version %s!
# {b=============================================================={n""" % utils.get_evennia_version()
# Welcome to {g%s{n, version %s!
# {b=============================================================={n""" \
# % (settings.SERVERNAME, utils.get_evennia_version())

View file

@ -3,11 +3,12 @@
# and run from game/gamesrc/world/connection_screens.py.
#
from django.conf import settings
from src.utils import utils
DEFAULT_SCREEN = \
"""{b=============================================================={n
Welcome to {gEvennia{n, version %s!
Welcome to {g%s{n, version %s!
If you have an existing account, connect to it by typing:
{wconnect <username> <password>{n
@ -16,4 +17,5 @@ DEFAULT_SCREEN = \
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""" % utils.get_evennia_version()
{b=============================================================={n""" \
% (settings.SERVERNAME, utils.get_evennia_version())