Added checkbox and toggle options.
This commit is contained in:
25
webui.py
25
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",
|
||||
|
||||
Reference in New Issue
Block a user