ui/curses: use title case in menus

This commit is contained in:
rr-
2019-01-13 21:44:26 +01:00
parent d2c06b08bb
commit adc3c7914d
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class ConfirmView(BaseView):
self.choices: T.List[Choice] = [
Choice(
keys=list(map(ord, "yY")),
desc=f"[y] Yes",
desc=f"[Y] Yes",
callback=self.on_confirm,
),
Choice(
@@ -104,11 +104,11 @@ class ChooseCharacterNameView(BaseView):
self._win.erase()
self._win.addstr(0, 0, "Choose character name:")
with focus_standout(self._active_widget == 1, self._win):
self._win.addstr(6, 0, "[F5 ] generate random name")
self._win.addstr(6, 0, "[F5 ] Generate random name")
with focus_standout(self._active_widget == 2, self._win):
self._win.addstr(7, 0, "[F10 ] continue")
self._win.addstr(7, 0, "[F10 ] Continue")
with focus_standout(self._active_widget == 3, self._win):
self._win.addstr(8, 0, "[Esc ] cancel")
self._win.addstr(8, 0, "[Esc ] Cancel")
self._win.refresh()
self._text_win.erase()
@@ -91,13 +91,13 @@ class ChooseCharacterStatsView(BaseView):
self._win.erase()
self._win.addstr(0, 0, "Roll character stats:")
with focus_standout(self._active_widget == 0, self._win):
self._win.addstr(3 + stats_h + 0, 0, "[F5 ] roll")
self._win.addstr(3 + stats_h + 0, 0, "[F5 ] Roll")
with focus_standout(self._active_widget == 1, self._win):
self._win.addstr(3 + stats_h + 1, 0, "[F6 ] unroll")
self._win.addstr(3 + stats_h + 1, 0, "[F6 ] Unroll")
with focus_standout(self._active_widget == 2, self._win):
self._win.addstr(3 + stats_h + 2, 0, "[F10 ] continue")
self._win.addstr(3 + stats_h + 2, 0, "[F10 ] Continue")
with focus_standout(self._active_widget == 3, self._win):
self._win.addstr(3 + stats_h + 3, 0, "[Esc ] cancel")
self._win.addstr(3 + stats_h + 3, 0, "[Esc ] Cancel")
self._win.noutrefresh()
self._stats_win.erase()