From 4c9b1e328a95d1da8b481e20da5f38fb75983768 Mon Sep 17 00:00:00 2001 From: Stephen Deaton Date: Tue, 18 Jun 2024 13:22:44 -0400 Subject: [PATCH] tryting to get logic to work --- PyGame/practice/dropdwn.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PyGame/practice/dropdwn.py b/PyGame/practice/dropdwn.py index e2a1c63..65488d6 100644 --- a/PyGame/practice/dropdwn.py +++ b/PyGame/practice/dropdwn.py @@ -9,7 +9,8 @@ import random win_width = 600 win_height = 480 win_bg_color = (0, 0, 0) -dice_results = [] +dice_results = [4, 6, 8, 10, 12,20] +dice_count = [ 0, 1] def roll_dice(): print("Type of dice: D", side_dropdown.getSelected()) @@ -31,10 +32,12 @@ side_dropdown = Dropdown( choices=[ 'D4', 'D6', + 'D8', + 'D10', 'D12', 'D20', ], - borderRadius=3, colour=pygame.Color(200, 200, 200), values=[4, 6, 12, 20], direction='down', textHAlign='left' + borderRadius=3, colour=pygame.Color(200, 200, 200), values=[4, 6, 8, 10, 12, 20], direction='down', textHAlign='left' ) numdice_dropdown = Dropdown(