-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpuntenscherm.py
More file actions
70 lines (65 loc) · 1.58 KB
/
puntenscherm.py
File metadata and controls
70 lines (65 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import invoerdefinitions as d
from objects import *
import drawPlayers as dp
import eindscherm
def reset(playerList):
print("reset")
dp.players = []
dp.pawn_colors = []
dp.cards = []
return dp.get_players(playerList)
def setup():
global puntenScherm, toEnd, goBack
puntenScherm = Screen('punten', {})
puntenScherm.start()
toEnd = Button(None, {
'x': 1000,
'y': 690,
'w': 130,
'h': 50,
'stroke': '205 205 205',
'strokeWeight': 1,
'fill': '67 204 37 255',
'placeholder': 'Einde spel',
'radius': 5,
'textSize': 20,
'rectMode': CENTER,
'textAlign': [CENTER, CENTER],
'textColor': '255 255 255 255',
'font': 'OpenSans-Bold-48.vlw'
})
toEnd.hover.setItems({
'fill': '67 204 37 200',
'w': 135,
'h': 55,
'textSize': 21
})
toEnd.goTo = eindscherm
goBack = Button(None, {
'x': 80,
'y': 690,
'w': 130,
'h': 50,
'stroke': '205 205 205',
'strokeWeight': 1,
'fill': '201 138 38 255',
'placeholder': 'Ga terug',
'radius': 5,
'textSize': 20,
'rectMode': CENTER,
'textAlign': [CENTER, CENTER],
'textColor': '255 255 255 255',
'font': 'OpenSans-Bold-48.vlw'
})
goBack.hover.setItems({
'fill': '201 138 38 200',
'w': 135,
'h': 55,
'textSize': 21
})
puntenScherm.stop()
def draw():
goBack.draw()
rectMode(CORNER)
textAlign(LEFT, BOTTOM)
dp.draw_player_info()