Compare commits
2 Commits
e8b6edb0d8
...
fac0b12c21
| Author | SHA1 | Date | |
|---|---|---|---|
| fac0b12c21 | |||
| fe53cba904 |
7
webui.py
7
webui.py
@@ -142,11 +142,14 @@ def create_ai_table(era, table_container, ai_slots):
|
||||
ui.label(str(nation_id)).classes("w-16")
|
||||
ui.label(nation_name).classes("w-40")
|
||||
ui.label(title).classes("w-64")
|
||||
|
||||
# TODO: Set all button
|
||||
# TODO: Random nations?
|
||||
ui.select(
|
||||
AI_LEVELS,
|
||||
value="Human",
|
||||
on_change=lambda e: set_ai_level(e.value, nation_id, ai_slots),
|
||||
on_change=lambda e, nid=nation_id: set_ai_level(
|
||||
e.value, nid, ai_slots
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user