Skip to content

Commit

Permalink
hotfix for displaying choices (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbc2016 authored Jan 22, 2024
1 parent 61acd7e commit eeeb343
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/game/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def invited_group_chat(
]

choose_during_chatting = f"""【系统】你要发言吗? <select-box shape="card"
columns="3" type="checkbox" options=
type="checkbox" item-width="auto" options=
'
{json.dumps(["是", "否", "结束邀请对话"])}'
select-once></select-box>"""
Expand Down Expand Up @@ -98,7 +98,7 @@ def invited_group_chat(

choose_role_story = f"""【系统】:需要以哪位角色的视角生成一段完整故事吗?: <select-box
shape="card"
columns="10" type="checkbox" options=
item-width="auto" type="checkbox" options=
'{json.dumps(invited_names + ["跳过"])}'
select-once></select-box>"""

Expand Down Expand Up @@ -201,7 +201,7 @@ def one_on_one_loop(customers, player, uid):
]

choose_after_meal = f"""【系统】接下来你会说些什么吗?
<select-box shape="card" columns="1" type="checkbox" options=
<select-box shape="card" item-width="auto" type="checkbox" options=
'{json.dumps(["感谢您的今天来我们这里消费。这里是赠送的果盘,"
"请您享用。还有什么是我能为您做的呢?",
"感谢您的光顾。(结束与该顾客的当天对话)", "自定义输入"])}'
Expand Down Expand Up @@ -258,7 +258,7 @@ def invite_customers(customers, uid):
]

choose_available_customers = f"""【系统】今天就没有更多顾客了,您明天有什么邀请计划吗?:
<select-box shape="card columns="4" type="checkbox" options=
<select-box shape="card" type="checkbox" item-width="auto" options=
'{json.dumps(available_customers)}' select-once
submit-text="确定"></select-box>"""

Expand Down
2 changes: 1 addition & 1 deletion examples/game/ruled_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def cook(self):
]

choose_ingredient = f"""请选择需要的食材: <select-box shape="card"
type="checkbox" item-width="1000"
type="checkbox" item-width="auto"
options='{json.dumps(ingredients_list)}' select-once
submit-text="确定"></select-box>"""

Expand Down

0 comments on commit eeeb343

Please sign in to comment.