mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-28 22:33:59 -06:00
ui/curses: use title case in menus
This commit is contained in:
@@ -17,7 +17,7 @@ class ConfirmView(BaseView):
|
|||||||
self.choices: T.List[Choice] = [
|
self.choices: T.List[Choice] = [
|
||||||
Choice(
|
Choice(
|
||||||
keys=list(map(ord, "yY")),
|
keys=list(map(ord, "yY")),
|
||||||
desc=f"[y] Yes",
|
desc=f"[Y] Yes",
|
||||||
callback=self.on_confirm,
|
callback=self.on_confirm,
|
||||||
),
|
),
|
||||||
Choice(
|
Choice(
|
||||||
|
|||||||
@@ -104,11 +104,11 @@ class ChooseCharacterNameView(BaseView):
|
|||||||
self._win.erase()
|
self._win.erase()
|
||||||
self._win.addstr(0, 0, "Choose character name:")
|
self._win.addstr(0, 0, "Choose character name:")
|
||||||
with focus_standout(self._active_widget == 1, self._win):
|
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):
|
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):
|
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._win.refresh()
|
||||||
|
|
||||||
self._text_win.erase()
|
self._text_win.erase()
|
||||||
|
|||||||
@@ -91,13 +91,13 @@ class ChooseCharacterStatsView(BaseView):
|
|||||||
self._win.erase()
|
self._win.erase()
|
||||||
self._win.addstr(0, 0, "Roll character stats:")
|
self._win.addstr(0, 0, "Roll character stats:")
|
||||||
with focus_standout(self._active_widget == 0, self._win):
|
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):
|
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):
|
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):
|
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._win.noutrefresh()
|
||||||
|
|
||||||
self._stats_win.erase()
|
self._stats_win.erase()
|
||||||
|
|||||||
Reference in New Issue
Block a user