From e8b6edb0d84d9a150918466281da9644b260c7ff Mon Sep 17 00:00:00 2001 From: Carl Date: Mon, 1 Jun 2026 16:13:06 +0200 Subject: [PATCH] Added checkbox and toggle options. --- webui.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/webui.py b/webui.py index b47236b..48c6087 100644 --- a/webui.py +++ b/webui.py @@ -73,6 +73,31 @@ def creator_page(): lambda e: create_ai_table(e.value, table_container, ai_slots) ) ) + + # client_start = ui.checkbox("Allow clients to start the game") + checkbox_container = ui.row() + with checkbox_container: + team_game = ui.checkbox("Disciple Game") + clustered_start = ui.checkbox("Clustered Spawns (Disciple games only)") + random_start_research = ui.checkbox("Random Start Research") + score_graphs = ui.checkbox("Score Graphs") + renaming = ui.checkbox("Allow Renaming", value=True) + no_nation_info = ui.checkbox("No Info About Other Nations") + no_cheat_det = ui.checkbox("Disable Anticheat") + no_artifact_rest = ui.checkbox("Disable Artifact Forge Limit") + no_new_ai = ui.checkbox("Disable Becoming AI Controlled") + vwrap = ui.checkbox("North South Wrapping") + hwrap = ui.checkbox("East West Wrapping") + description_container = ui.row() + toggle_container = ui.row() + with toggle_container: + event_rarity = ui.toggle({1: "Common", 2: "Rare"}, value=1) + random_map = ui.toggle([10, 15, 20], value=15) + with description_container: + ui.label("Event Rarity") + # TODO: Fix Padding + ui.label("Provinces per player:") + # TODO: REMOVE THIS it is just for testing ui.button( "Generate String",