diff --git a/typeclasses/characters.py b/typeclasses/characters.py index bc9a461..f5a21f4 100644 --- a/typeclasses/characters.py +++ b/typeclasses/characters.py @@ -47,8 +47,8 @@ class Character(ObjectParent, DefaultCharacter): return self.msg(f"{victim.key} doesn't have a {to_take}.") - # else: - # self.msg(f"You don't see a {from_whom}.") + else: + self.msg(f"You don't see {from_whom}.") def at_pre_move(self, destination, **kwargs): """ @@ -56,6 +56,6 @@ class Character(ObjectParent, DefaultCharacter): False, the move is immediately cancelled. """ if self.db.is_sitting: - self.msg("You need to stand up first.") - return False + self.msg("You stand up first...") + self.db.is_sitting = False; return True diff --git a/typeclasses/exits.py b/typeclasses/exits.py index 3ab3d1b..8e3b476 100644 --- a/typeclasses/exits.py +++ b/typeclasses/exits.py @@ -26,7 +26,7 @@ class Exit(ObjectParent, DefaultExit): pre_check = traveler.at_pre_move(destination) if pre_check: 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) else: return False diff --git a/web/static/webclient/css/custom.css b/web/static/webclient/css/custom.css new file mode 100644 index 0000000..cfa5d4a --- /dev/null +++ b/web/static/webclient/css/custom.css @@ -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; +} diff --git a/web/static/website/css/moss-styles.css b/web/static/website/css/moss-styles.css index 07f8c73..d7a528e 100644 --- a/web/static/website/css/moss-styles.css +++ b/web/static/website/css/moss-styles.css @@ -57,7 +57,7 @@ a.playbutton { display: inline-block; cursor: pointer; color: #ffffff; - font-family: Arial; + font-family: "Goudy Bookletter 1911", serif; font-size: 24px; padding: 14px 37px; text-decoration: none; diff --git a/web/static/website/images/prompt-icon-on.png b/web/static/website/images/prompt-icon-on.png new file mode 100644 index 0000000..4fa93f4 Binary files /dev/null and b/web/static/website/images/prompt-icon-on.png differ diff --git a/web/static/website/images/prompt-icon.png b/web/static/website/images/prompt-icon.png new file mode 100644 index 0000000..46ed97b Binary files /dev/null and b/web/static/website/images/prompt-icon.png differ