Compare commits

...
2 Commits
Author SHA1 Message Date
carl fac0b12c21 Added TODO comments. 2026-06-02 17:16:19 +02:00
carl fe53cba904 Fixed nation id being captured too late. 2026-06-02 17:14:04 +02:00
+5 -2
View File
@@ -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
),
)