Fixed the webclient to be more "story book" flavored.

This commit is contained in:
Howard Abrams 2025-02-09 21:54:38 -08:00
parent 47ce77abcd
commit fabb5a0d00
6 changed files with 93 additions and 6 deletions

View file

@ -47,8 +47,8 @@ class Character(ObjectParent, DefaultCharacter):
return return
self.msg(f"{victim.key} doesn't have a {to_take}.") self.msg(f"{victim.key} doesn't have a {to_take}.")
# else: else:
# self.msg(f"You don't see a {from_whom}.") self.msg(f"You don't see {from_whom}.")
def at_pre_move(self, destination, **kwargs): def at_pre_move(self, destination, **kwargs):
""" """
@ -56,6 +56,6 @@ class Character(ObjectParent, DefaultCharacter):
False, the move is immediately cancelled. False, the move is immediately cancelled.
""" """
if self.db.is_sitting: if self.db.is_sitting:
self.msg("You need to stand up first.") self.msg("You stand up first...")
return False self.db.is_sitting = False;
return True return True

View file

@ -26,7 +26,7 @@ class Exit(ObjectParent, DefaultExit):
pre_check = traveler.at_pre_move(destination) pre_check = traveler.at_pre_move(destination)
if pre_check: if pre_check:
if self.db.traverse_msg: if self.db.traverse_msg:
traveler.msg(f"\n{self.db.traverse_msg}\n") traveler.msg(f"\n{self.db.traverse_msg}\n\n")
return super().at_traverse(traveler, destination) return super().at_traverse(traveler, destination)
else: else:
return False return False

View file

@ -0,0 +1,87 @@
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Goudy+Bookletter+1911&family=Merienda:wght@300..900&display=swap');
#messagewindow {
background-color: #E3ECDE;
border-color: brown;
border-radius: 8px;
margin-left: auto;
margin-right: auto;
max-width: 900px;
}
div.out {
background-color: transparent;
color: #26201a;
font-family: "Goudy Bookletter 1911", serif;
font-weight: 400;
font-style: normal;
font-size: 21px;
}
input[type=textarea]:focus {
background-color: lightblue;
}
.inputfield {
font-family: "Goudy Bookletter 1911", serif;
font-weight: 400;
font-style: normal;
font-size: 24px;
}
textarea.inputfield {
color: #26201a;
background-color: #E3ECDE;
background-image: url('../../website/images/prompt-icon.png');
background-size: 34px;
background-position: 4px 4px;
background-repeat: no-repeat;
padding-left: 40px;
border-color: brown;
border-radius: 8px;
border: 1px solid #405122;
margin-left: auto;
margin-right: auto;
max-width: 900px;
resize: none;
overflow: auto;
}
textarea.inputfield:focus {
color: #26201a;
background-color: #E3ECDE;
background-image: url('../../website/images/prompt-icon-on.png');
background-size: 34px;
}
.color-014 {
font-weight: bold;
font-size: 24px;
color: #19130d;
}
.color-015 {
font-weight: bold;
color: black;
}
.color-012 {
font-weight: bold;
color: #202080;
}
.sys {
font-style: italic;
color: #005000;
}
.err {
font-style: italic;
color: #800000;
}

View file

@ -57,7 +57,7 @@ a.playbutton {
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
color: #ffffff; color: #ffffff;
font-family: Arial; font-family: "Goudy Bookletter 1911", serif;
font-size: 24px; font-size: 24px;
padding: 14px 37px; padding: 14px 37px;
text-decoration: none; text-decoration: none;

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB